Lines Matching refs:codec

39 	struct hda_codec *codec = beep->codec;  in generate_tone()  local
42 snd_hda_power_up(codec); in generate_tone()
47 snd_hda_codec_write(codec, beep->nid, 0, in generate_tone()
53 snd_hda_power_down(codec); in generate_tone()
156 struct hda_codec *codec = beep->codec; in snd_hda_do_attach() local
166 input_dev->dev.parent = &codec->card->card_dev; in snd_hda_do_attach()
168 input_dev->id.vendor = codec->core.vendor_id >> 16; in snd_hda_do_attach()
169 input_dev->id.product = codec->core.vendor_id & 0xffff; in snd_hda_do_attach()
186 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable) in snd_hda_enable_beep_device() argument
188 struct hda_beep *beep = codec->beep; in snd_hda_enable_beep_device()
216 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) in snd_hda_attach_beep_device() argument
221 if (!snd_hda_get_bool_hint(codec, "beep")) in snd_hda_attach_beep_device()
223 if (codec->beep_mode == HDA_BEEP_MODE_OFF) in snd_hda_attach_beep_device()
230 "card%d/codec#%d/beep0", codec->card->number, codec->addr); in snd_hda_attach_beep_device()
232 snd_hda_codec_write_cache(codec, nid, 0, in snd_hda_attach_beep_device()
236 beep->codec = codec; in snd_hda_attach_beep_device()
237 codec->beep = beep; in snd_hda_attach_beep_device()
245 codec->beep = NULL; in snd_hda_attach_beep_device()
257 void snd_hda_detach_beep_device(struct hda_codec *codec) in snd_hda_detach_beep_device() argument
259 struct hda_beep *beep = codec->beep; in snd_hda_detach_beep_device()
263 codec->beep = NULL; in snd_hda_detach_beep_device()
273 int snd_hda_register_beep_device(struct hda_codec *codec) in snd_hda_register_beep_device() argument
275 struct hda_beep *beep = codec->beep; in snd_hda_register_beep_device()
283 codec_err(codec, "hda_beep: unable to register input device\n"); in snd_hda_register_beep_device()
285 codec->beep = NULL; in snd_hda_register_beep_device()
296 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ctl_has_mute() local
297 return query_amp_caps(codec, get_amp_nid(kcontrol), in ctl_has_mute()
311 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get_beep() local
312 struct hda_beep *beep = codec->beep; in snd_hda_mixer_amp_switch_get_beep()
330 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put_beep() local
331 struct hda_beep *beep = codec->beep; in snd_hda_mixer_amp_switch_put_beep()
342 snd_hda_enable_beep_device(codec, enable); in snd_hda_mixer_amp_switch_put_beep()