Re: [PATCH] ASoC: pcm186x: Fix device reset-registers trigger value
From: Andrew F. Davis
Date: Thu Nov 15 2018 - 12:08:49 EST
On 11/15/18 11:01 AM, Andreas Dannenberg wrote:
> According to the current device datasheet (TI Lit # SLAS831D, revised
> March 2018) the value written to the device's PAGE register to trigger
> a complete register reset should be 0xfe, not 0xff. So go ahead and
> update to the correct value.
>
> Reported-by: Stephane Le Provost <stephane.leprovost@xxxxxxxxxxxx>
> Tested-by: Stephane Le Provost <stephane.leprovost@xxxxxxxxxxxx>
> Signed-off-by: Andreas Dannenberg <dannenberg@xxxxxx>
> ---
Does 0xff not reset the device? If so then this is not just a typo but a
bug and this patch should have a fixes tag. Either way:
Acked-by: Andrew F. Davis <afd@xxxxxx>
> sound/soc/codecs/pcm186x.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/codecs/pcm186x.h b/sound/soc/codecs/pcm186x.h
> index 2c6ba55bf394..bb3f0c42a1cd 100644
> --- a/sound/soc/codecs/pcm186x.h
> +++ b/sound/soc/codecs/pcm186x.h
> @@ -139,7 +139,7 @@ enum pcm186x_type {
> #define PCM186X_MAX_REGISTER PCM186X_CURR_TRIM_CTRL
>
> /* PCM186X_PAGE */
> -#define PCM186X_RESET 0xff
> +#define PCM186X_RESET 0xfe
>
> /* PCM186X_ADCX_INPUT_SEL_X */
> #define PCM186X_ADC_INPUT_SEL_POL BIT(7)
>