Re: [PATCH v3 01/20] ASoC: fsl_micfil: Drop unnecessary register read

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

 



On Tue, Apr 5, 2022 at 4:00 PM Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> wrote:

> in get_pdm_clk() REG_MICFIL_CTRL2 is read twice. Drop second read.
>
> Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
>

Acked-by: Shengjiu Wang <shengjiu.wang@xxxxxxxxx>

Best regards
Wang Shengjiu

> ---
>  sound/soc/fsl/fsl_micfil.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl/fsl_micfil.c
> index 9f90989ac59a6..64019d003784b 100644
> --- a/sound/soc/fsl/fsl_micfil.c
> +++ b/sound/soc/fsl/fsl_micfil.c
> @@ -118,8 +118,6 @@ static inline int get_pdm_clk(struct fsl_micfil
> *micfil,
>         regmap_read(micfil->regmap, REG_MICFIL_CTRL2, &ctrl2_reg);
>         osr = 16 - ((ctrl2_reg & MICFIL_CTRL2_CICOSR_MASK)
>                     >> MICFIL_CTRL2_CICOSR_SHIFT);
> -
> -       regmap_read(micfil->regmap, REG_MICFIL_CTRL2, &ctrl2_reg);
>         qsel = ctrl2_reg & MICFIL_CTRL2_QSEL_MASK;
>
>         switch (qsel) {
> --
> 2.30.2
>
>



[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