]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: SOF: Intel: hda: fix generic hda codec support
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Fri, 29 May 2020 16:03:58 +0000 (19:03 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 29 May 2020 17:18:02 +0000 (18:18 +0100)
commit89d73ccab20a684d8446cea4d8ac6a2608c8d390
tree1a731d568df0aaf6294f3218197e7f7aed0a7c41
parentaf89e7dac521f5e087b6b2706bb0623107f74c83
ASoC: SOF: Intel: hda: fix generic hda codec support

Add support for using generic codec driver with SOF. Generic driver
is used if:
 - snd_sof_intel_hda_common.hda_model="generic" is set, or
 - fallback if no other codec driver is found

The implementation is aligned with snd-hda-intel driver, and fixes audio
support for systems like Acer Swift 3 SF314-57G, on which this issue was
originally reported.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Hui Wang <hui.wang@canonical.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
BugLink: https://github.com/thesofproject/linux/issues/1807
BugLink: https://bugs.launchpad.net/bugs/1877757
Link: https://lore.kernel.org/r/20200529160358.12134-1-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-codec.c