OSDN Git Service

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)
commitc7b92395836c3962eedbe6b4f58f9dfb2b2cc921
treef5c9d85470e6a1d25d1792c322d5693f9fd9fdec
parentc8220e87213b23ccb4b58b0048d86e3c4f234c88
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