• Home
  • Raw
  • Download

Lines Matching refs:vol

67 	unsigned short vol[8];  member
379 unsigned short vol; in aureon_ac97_vol_get() local
383 vol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_vol_get()
384 ucontrol->value.integer.value[0] = 0x1F - (vol & 0x1F); in aureon_ac97_vol_get()
386 ucontrol->value.integer.value[1] = 0x1F - ((vol >> 8) & 0x1F); in aureon_ac97_vol_get()
702 static void wm_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned sh… in wm_set_vol() argument
706 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) { in wm_set_vol()
709 nvol = ((vol % WM_VOL_CNT) * (master % WM_VOL_CNT)) / in wm_set_vol()
781 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() local
782 if (vol > WM_VOL_MAX) in wm_master_vol_put()
783 vol = WM_VOL_MAX; in wm_master_vol_put()
784 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
785 if (vol != spec->master[ch]) { in wm_master_vol_put()
787 spec->master[ch] = vol; in wm_master_vol_put()
790 spec->vol[dac + ch], in wm_master_vol_put()
822 spec->vol[ofs+i] & ~WM_VOL_MUTE; in wm_vol_get()
837 unsigned int vol = ucontrol->value.integer.value[i]; in wm_vol_put() local
838 if (vol > WM_VOL_MAX) in wm_vol_put()
839 vol = WM_VOL_MAX; in wm_vol_put()
840 vol |= spec->vol[ofs+i] & WM_VOL_MUTE; in wm_vol_put()
841 if (vol != spec->vol[ofs+i]) { in wm_vol_put()
842 spec->vol[ofs+i] = vol; in wm_vol_put()
844 wm_set_vol(ice, idx, spec->vol[ofs + i], in wm_vol_put()
876 (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1; in wm_mute_get()
891 int val = (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1; in wm_mute_put()
893 spec->vol[ofs + i] &= ~WM_VOL_MUTE; in wm_mute_put()
894 spec->vol[ofs + i] |= in wm_mute_put()
896 wm_set_vol(ice, ofs + i, spec->vol[ofs + i], in wm_mute_put()
939 spec->vol[dac + i], in wm_master_mute_put()
1052 unsigned short vol; in wm_adc_vol_get() local
1057 vol = wm_get(ice, idx) & 0x1f; in wm_adc_vol_get()
1058 ucontrol->value.integer.value[i] = vol; in wm_adc_vol_get()
2122 wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]); in aureon_resume()
2162 spec->vol[i] = WM_VOL_MUTE; in aureon_init()
2163 wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]); in aureon_init()