Lines Matching refs:codec
567 pdev = platform_device_alloc("dmic-codec", -1);
666 * load the legacy codec driver
668 static void load_codec_module(struct hda_codec *codec)
674 snd_hdac_codec_modalias(&codec->core, modalias, sizeof(modalias));
676 dev_dbg(&codec->core.dev, "loading %s codec module\n", mod);
685 struct hda_codec *codec;
688 codec = snd_hda_codec_device_init(to_hda_bus(bus), addr, "ehdaudio%dD%d", bus->idx, addr);
689 if (IS_ERR(codec)) {
691 return codec;
694 codec->core.type = HDA_DEV_ASOC;
696 ret = snd_hdac_device_register(&codec->core);
699 put_device(&codec->core.dev);
703 return codec;
707 * Probe the given codec address
718 struct hda_codec *codec;
726 dev_dbg(bus->dev, "codec #%d probed OK: %x\n", addr, res);
734 codec = skl_codec_device_init(bus, addr);
735 if (IS_ERR(codec))
736 return PTR_ERR(codec);
738 hda_codec->codec = codec;
739 dev_set_drvdata(&codec->core.dev, hda_codec);
743 codec->core.type = HDA_DEV_LEGACY;
744 load_codec_module(hda_codec->codec);
748 codec = skl_codec_device_init(bus, addr);
749 return PTR_ERR_OR_ZERO(codec);
760 /* First try to probe all given codec slots */
765 * Some BIOSen give you wrong codec addresses
773 * codec often screws up the controller bus,
791 * The HDMI codec is in GPU so we need to ensure that it is powered
825 /* codec detection */
829 /* create codec instances */
1031 dev_warn(bus->dev, "no nhlt info found, continuing to try to enable HDAudio codec\n");
1131 /* codec removal, invoke bus_device_remove */