[alsa-devel] [PATCH v1 1/9] ASoC: wm8994: Do not register inapplicable controls for WM1811
Krzysztof Kozlowski
krzk at kernel.org
Thu Sep 19 09:38:32 CEST 2019
On Wed, Sep 18, 2019 at 12:46:26PM +0200, Sylwester Nawrocki wrote:
> In case of WM1811 device there are currently being registered controls
> referring to registers not existing on that device.
> It has been noticed when getting values of "AIF1ADC2 Volume", "AIF1DAC2
> Volume" controls was failing during ALSA state restoring at boot time:
> "amixer: Mixer hw:0 load error: Device or resource busy"
>
> Reading some registers through I2C was failing with EBUSY error and indeed
> those registers were not available according to the datasheet.
>
> To fix this controls not available on WM1811 are moved to a separate array
> and registered only for WM8994 and WM8958.
>
> There are some further differences between WM8994 and WM1811, e.g. registers
> 603h, 604h, 605h, which are not covered in this patch.
>
> Signed-off-by: Sylwester Nawrocki <s.nawrocki at samsung.com>
> ---
> sound/soc/codecs/wm8994.c | 43 +++++++++++++++++++++++----------------
> 1 file changed, 26 insertions(+), 17 deletions(-)
Acked-by: Krzysztof Kozlowski <krzk at kernel.org>
Best regards,
Krzysztof
More information about the Alsa-devel
mailing list