Re: [PATCH] ALSA: hda/tas2781: reset the amp before component_add

From: Takashi Iwai
Date: Thu Dec 14 2023 - 06:05:38 EST


On Thu, 14 Dec 2023 00:49:20 +0100,
Gergo Koteles wrote:
>
> Calling component_add starts loading the firmware, the callback function
> writes the program to the amplifiers. If the module resets the
> amplifiers after component_add, it happens that one of the amplifiers
> does not work because the reset and program writing are interleaving.
>
> Call tas2781_reset before component_add to ensure reliable
> initialization.
>
> Fixes: 5be27f1e3ec9 ("ALSA: hda/tas2781: Add tas2781 HDA driver")
> CC: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Gergo Koteles <soyer@xxxxxx>

Thanks, applied now.


Takashi