Lines Matching refs:kcontrol
294 static bool ctl_has_mute(struct snd_kcontrol *kcontrol) in ctl_has_mute() argument
296 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ctl_has_mute()
297 return query_amp_caps(codec, get_amp_nid(kcontrol), in ctl_has_mute()
298 get_amp_direction(kcontrol)) & AC_AMPCAP_MUTE; in ctl_has_mute()
308 int snd_hda_mixer_amp_switch_get_beep(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_switch_get_beep() argument
311 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get_beep()
313 if (beep && (!beep->enabled || !ctl_has_mute(kcontrol))) { in snd_hda_mixer_amp_switch_get_beep()
318 return snd_hda_mixer_amp_switch_get(kcontrol, ucontrol); in snd_hda_mixer_amp_switch_get_beep()
327 int snd_hda_mixer_amp_switch_put_beep(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_switch_put_beep() argument
330 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put_beep()
333 u8 chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_put_beep()
344 if (!ctl_has_mute(kcontrol)) in snd_hda_mixer_amp_switch_put_beep()
346 return snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); in snd_hda_mixer_amp_switch_put_beep()