• Home
  • Raw
  • Download

Lines Matching refs:vol

53 	unsigned short vol[8];  member
359 unsigned short vol; in aureon_ac97_vol_get() local
363 vol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_vol_get()
364 ucontrol->value.integer.value[0] = 0x1F - (vol & 0x1F); in aureon_ac97_vol_get()
366 ucontrol->value.integer.value[1] = 0x1F - ((vol >> 8) & 0x1F); in aureon_ac97_vol_get()
682 static void wm_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned sh… in wm_set_vol() argument
686 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) { in wm_set_vol()
689 nvol = ((vol % WM_VOL_CNT) * (master % WM_VOL_CNT)) / in wm_set_vol()
761 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() local
762 if (vol > WM_VOL_MAX) in wm_master_vol_put()
763 vol = WM_VOL_MAX; in wm_master_vol_put()
764 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
765 if (vol != spec->master[ch]) { in wm_master_vol_put()
767 spec->master[ch] = vol; in wm_master_vol_put()
770 spec->vol[dac + ch], in wm_master_vol_put()
802 spec->vol[ofs+i] & ~WM_VOL_MUTE; in wm_vol_get()
817 unsigned int vol = ucontrol->value.integer.value[i]; in wm_vol_put() local
818 if (vol > WM_VOL_MAX) in wm_vol_put()
819 vol = WM_VOL_MAX; in wm_vol_put()
820 vol |= spec->vol[ofs+i] & WM_VOL_MUTE; in wm_vol_put()
821 if (vol != spec->vol[ofs+i]) { in wm_vol_put()
822 spec->vol[ofs+i] = vol; in wm_vol_put()
824 wm_set_vol(ice, idx, spec->vol[ofs + i], in wm_vol_put()
856 (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1; in wm_mute_get()
871 int val = (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1; in wm_mute_put()
873 spec->vol[ofs + i] &= ~WM_VOL_MUTE; in wm_mute_put()
874 spec->vol[ofs + i] |= in wm_mute_put()
876 wm_set_vol(ice, ofs + i, spec->vol[ofs + i], in wm_mute_put()
919 spec->vol[dac + i], in wm_master_mute_put()
1032 unsigned short vol; in wm_adc_vol_get() local
1037 vol = wm_get(ice, idx) & 0x1f; in wm_adc_vol_get()
1038 ucontrol->value.integer.value[i] = vol; in wm_adc_vol_get()
2079 wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]); in aureon_resume()
2119 spec->vol[i] = WM_VOL_MUTE; in aureon_init()
2120 wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]); in aureon_init()