[PATCH 1/2] ASoC: rt5682s: Add driver for ALC5682I-VS codec
Mark Brown
broonie at kernel.org
Fri Sep 3 14:30:58 CEST 2021
On Fri, Aug 27, 2021 at 05:59:30AM +0000, Derek [方德義] wrote:
> > > +#ifdef CONFIG_COMMON_CLK
> > > + /* Check if MCLK provided */
> > > + rt5682s->mclk = devm_clk_get(component->dev, "mclk");
> >
> > Perhaps factor the clock init out into a _probe_clks() function and then have a
> > stub function rather than the two ifdefs?
> We want to factor the codes like below to reduce ifdefs.
> Could you give any comments?
That looks fine.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20210903/716f0bb1/attachment.sig>
More information about the Alsa-devel
mailing list