Lines Matching defs:codec
131 * @addr: codec device address
147 * snd_hdac_ext_bus_get_hlink_by_name - get hlink based on codec name
149 * @codec_name: codec name
304 * wait for 521usec for codec to report status
358 static void hdac_ext_codec_link_up(struct hdac_device *codec)
360 const char *devname = dev_name(&codec->dev);
362 snd_hdac_ext_bus_get_hlink_by_name(codec->bus, devname);
365 snd_hdac_ext_bus_link_get(codec->bus, hlink);
368 static void hdac_ext_codec_link_down(struct hdac_device *codec)
370 const char *devname = dev_name(&codec->dev);
372 snd_hdac_ext_bus_get_hlink_by_name(codec->bus, devname);
375 snd_hdac_ext_bus_link_put(codec->bus, hlink);
378 void snd_hdac_ext_bus_link_power(struct hdac_device *codec, bool enable)
380 struct hdac_bus *bus = codec->bus;
381 bool oldstate = test_bit(codec->addr, &bus->codec_powered);
386 snd_hdac_bus_link_power(codec, enable);
389 hdac_ext_codec_link_up(codec);
391 hdac_ext_codec_link_down(codec);