[alsa-devel] [PATCH V2] Sound: sgtl5000 Allow codec clock frequency to be set.

Timur Tabi timur at tabi.org
Fri Mar 22 15:08:41 CET 2013


On Fri, Mar 22, 2013 at 4:33 AM, Martin Fuzzey <mfuzzey at parkeon.com> wrote:

> diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c
> index 424347e..71ce1f6 100644
> --- a/sound/soc/fsl/imx-sgtl5000.c
> +++ b/sound/soc/fsl/imx-sgtl5000.c
> @@ -128,18 +128,30 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
>                 goto fail;
>         }
>
> +       ret = of_property_read_u32(codec_np, "clock-frequency",
> +                                       &data->clk_frequency);

I just noticed that you assign 'ret' here, but you never check the
value.  So I think you should either:

1) Check the value of 'ret'
2) Remove the "ret = "


More information about the Alsa-devel mailing list