ASoC: hdac_hda: add support for HDMI/DP as a HDA codec
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Tue, 29 Oct 2019 13:40:10 +0000 (15:40 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 29 Oct 2019 17:31:50 +0000 (17:31 +0000)
commit608b8c36c37114289e3ea328783161f542fdf71d
treefd5070cbe34a9f65c73081cfc6900401c55e45e6
parent2a2edfbbfee47947dd05f5860c66c0e80ee5e09d
ASoC: hdac_hda: add support for HDMI/DP as a HDA codec

Handle all HDA codecs using same logic, including HDMI/DP.

Call to snd_hda_codec_build_controls() is delayed for HDMI/DP HDA
devices. This is needed to discover the PCM device numbers as
defined in topology.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191029134017.18901-3-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdac_hda.c
sound/soc/codecs/hdac_hda.h