Re: [PATCH] ASoC: rt1308-sdw: add the default value of register 0xc320

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 5/20/22 04:02, shumingf@xxxxxxxxxxx wrote:
> From: Shuming Fan <shumingf@xxxxxxxxxxx>
> 
> The driver missed the default value of register 0xc320.
> This patch adds that default value to avoid the error messages
> when the driver went to suspend mode already.
> 
> BugLink: https://github.com/thesofproject/linux/issues/3651
> Signed-off-by: Shuming Fan <shumingf@xxxxxxxxxxx>

Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@xxxxxxxxxxxxxxx>

> ---
>  sound/soc/codecs/rt1308-sdw.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/sound/soc/codecs/rt1308-sdw.h b/sound/soc/codecs/rt1308-sdw.h
> index c5ce75666dcc..6668e19d85d4 100644
> --- a/sound/soc/codecs/rt1308-sdw.h
> +++ b/sound/soc/codecs/rt1308-sdw.h
> @@ -140,6 +140,7 @@ static const struct reg_default rt1308_reg_defaults[] = {
>  	{ 0x3008, 0x02 },
>  	{ 0x300a, 0x00 },
>  	{ 0xc003 | (RT1308_DAC_SET << 4), 0x00 },
> +	{ 0xc000 | (RT1308_POWER << 4), 0x00 },
>  	{ 0xc001 | (RT1308_POWER << 4), 0x00 },
>  	{ 0xc002 | (RT1308_POWER << 4), 0x00 },
>  };



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux