[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140114120913.19d883fe@armhf>
Date: Tue, 14 Jan 2014 12:09:13 +0100
From: Jean-Francois Moine <moinejf@...e.fr>
To: "Li.Xiubo@...escale.com" <Li.Xiubo@...escale.com>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@...il.com>,
"alsa-devel@...a-project.org" <alsa-devel@...a-project.org>,
"kuninori.morimoto.gx@...esas.com" <kuninori.morimoto.gx@...esas.com>,
"lgirdwood@...il.com" <lgirdwood@...il.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"broonie@...nel.org" <broonie@...nel.org>
Subject: Re: [alsa-devel] [RFC][PATCH] ASoC: simple-card: Add
asoc_simple_card_data for the simple card driver data
On Tue, 14 Jan 2014 07:56:32 +0000
"Li.Xiubo@...escale.com" <Li.Xiubo@...escale.com> wrote:
>
> > > Whether the dt is used or not, almost all the simple card information
> > > for the DAI link and sound card are initialized in the simple card driver.
> > >
> > > And for the platform caller, the snd_link and snd_card are of no use, so
> > > move them from struct asoc_simple_card_info to struct asoc_simple_card_data.
> > >
> > > And now only one DAI link is supported for simple card.
> > >
> > > Suggested-by: Jean-Francois Moine <moinejf@...e.fr>
> > > Signed-off-by: Xiubo Li <Li.Xiubo@...escale.com>
> > > ---
> >
> > This patch seems have many this kind of lines
> > - info->xxx
> > + sdata->info->xxx
> >
> > But, how about add this line to each function ?
> >
> > struct asoc_simple_card_info *info = &sdata->info;
> >
> > Patch will be more readable
> >
>
> Yes, that's looks perfect.
>
> See the next version please.
Please, don't work on an other version. I am preparing an other patch which will do quite the same as yours, but which will be easier to extend to many DAI links.
--
Ken ar c'hentaƱ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists