lkml.org 
[lkml]   [2020]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 6/9] media: adv748x: prepare/enable mclk when the audio is used
Kieran Bingham, Thu, Jun 18, 2020 18:23:14 +0200:
> On 02/04/2020 19:34, Alex Riesen wrote:
> > --- a/drivers/media/i2c/adv748x/adv748x-dai.c
> > +++ b/drivers/media/i2c/adv748x/adv748x-dai.c
> > @@ -117,11 +117,22 @@ static int adv748x_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
> >
> > static int adv748x_dai_startup(struct snd_pcm_substream *sub, struct snd_soc_dai *dai)
> > {
> > + int ret;
> > struct adv748x_state *state = state_of(dai);
> >
> > if (sub->stream != SNDRV_PCM_STREAM_CAPTURE)
> > return -EINVAL;
> this looks quite bunched up so :
>
> Newline...

Will do.

> > - return set_audio_pads_state(state, 1);
> > + ret = set_audio_pads_state(state, 1);
> > + if (ret)
> > + goto fail;
>
> With no action required to cleanup here, I would just
> return ret;
> and remove the fail: label.

Of course.

> > + ret = clk_prepare_enable(mclk_of(state));
> > + if (ret)
> > + goto fail_pwdn;
>
> newline...
>
> > + return 0;
>
> newline...
>
> Other than that:
>
> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>

Thanks!

\
 
 \ /
  Last update: 2020-06-19 10:52    [W:0.070 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site