]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: adau1761: Add ADAU1761-as-ADAU1361 compatibility mode
authorRicard Wanderlof <ricardw@axis.com>
Thu, 28 Apr 2022 16:46:35 +0000 (18:46 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 3 May 2022 12:43:35 +0000 (13:43 +0100)
commit7d62ab70b1f4bf3b38a7891d98d0d44205426a8d
treef5c9d85470e6a1d25d1792c322d5693f9fd9fdec
parent6af54bf58d8900fc2847dfd1f2a91fad65ac62bc
ASoC: adau1761: Add ADAU1761-as-ADAU1361 compatibility mode

During probe, determine if the chip is in fact an ADAU1761
even though an ADAU1361 is specified, and perform additional
operations to enable the ADAU1761 to behave as an ADAU1361,
i.e. disregarding the DSP and setting up routing and PM
transparently.

This enables either chip to be mounted when an ADAU1361 is specified.

Signed-off-by: Ricard Wanderlof <ricardw@axis.com>
Link: https://lore.kernel.org/r/alpine.DEB.2.21.2204281841290.5574@lnxricardw1.se.axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/adau1761.c
sound/soc/codecs/adau17x1.c
sound/soc/codecs/adau17x1.h