• Home
  • Raw
  • Download

Lines Matching refs:codec

26 	struct hda_codec *codec = beep->codec;  in generate_tone()  local
29 snd_hda_power_up(codec); in generate_tone()
34 snd_hda_codec_write(codec, beep->nid, 0, in generate_tone()
40 snd_hda_power_down(codec); in generate_tone()
124 snd_hda_power_up_pm(beep->codec); in turn_on_beep()
135 snd_hda_power_down_pm(beep->codec); in turn_off_beep()
143 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable) in snd_hda_enable_beep_device() argument
145 struct hda_beep *beep = codec->beep; in snd_hda_enable_beep_device()
189 beep->codec->beep = NULL; in beep_dev_free()
204 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) in snd_hda_attach_beep_device() argument
215 if (!snd_hda_get_bool_hint(codec, "beep")) in snd_hda_attach_beep_device()
217 if (codec->beep_mode == HDA_BEEP_MODE_OFF) in snd_hda_attach_beep_device()
224 "card%d/codec#%d/beep0", codec->card->number, codec->addr); in snd_hda_attach_beep_device()
226 snd_hda_codec_write_cache(codec, nid, 0, in snd_hda_attach_beep_device()
230 beep->codec = codec; in snd_hda_attach_beep_device()
231 codec->beep = beep; in snd_hda_attach_beep_device()
246 input_dev->dev.parent = &codec->card->card_dev; in snd_hda_attach_beep_device()
248 input_dev->id.vendor = codec->core.vendor_id >> 16; in snd_hda_attach_beep_device()
249 input_dev->id.product = codec->core.vendor_id & 0xffff; in snd_hda_attach_beep_device()
259 err = snd_device_new(codec->card, SNDRV_DEV_JACK, beep, &ops); in snd_hda_attach_beep_device()
269 codec->beep = NULL; in snd_hda_attach_beep_device()
278 void snd_hda_detach_beep_device(struct hda_codec *codec) in snd_hda_detach_beep_device() argument
280 if (!codec->bus->shutdown && codec->beep) in snd_hda_detach_beep_device()
281 snd_device_free(codec->card, codec->beep); in snd_hda_detach_beep_device()
287 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ctl_has_mute() local
288 return query_amp_caps(codec, get_amp_nid(kcontrol), in ctl_has_mute()
302 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get_beep() local
303 struct hda_beep *beep = codec->beep; in snd_hda_mixer_amp_switch_get_beep()
325 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put_beep() local
326 struct hda_beep *beep = codec->beep; in snd_hda_mixer_amp_switch_put_beep()
337 snd_hda_enable_beep_device(codec, enable); in snd_hda_mixer_amp_switch_put_beep()