All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Takashi Iwai <tiwai@suse.de>,
	alsa-devel@alsa-project.org, Mark Brown <broonie@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>
Subject: Re: [PATCH 0/2][RFC] snd_soc_codec include snd_soc_component
Date: Mon, 02 Sep 2013 11:34:15 +0200	[thread overview]
Message-ID: <52245B97.3000900@metafoo.de> (raw)
In-Reply-To: <878uzfsj08.wl%kuninori.morimoto.gx@renesas.com>

On 09/02/2013 10:52 AM, Kuninori Morimoto wrote:
> 
> Hi Lars
> 
> Thank you for your feedback
> 
>>> But, we will need many "codec dai name exchange", becouse
>>>  1) the dai name rule on 1-dai / multi-dai are different,
>>>     it was depend on snd_soc_register_dai[s].
>>>  1) component is using both snd_soc_register_dai[s] inside
>>>     (this was for "cpu" side limit)
>>>  2) codec have been used snd_soc_register_dais even though
>>>     it was not multi-dai
>>>
>>
>> We only added the distinction between components with one DAIs and multiple
>> DAIs since most of the CPU DAI drivers with only one DAI used
>> snd_soc_register_dai() and we wanted to avoid having to update all the DAI
>> links. How about adding a boolean flag to __snd_soc_register_component()
>> which if set causes the function to always use snd_soc_register_dais(). This
>> will allow us to keep the existing naming for CODEC dai.
> 
> It is easy hack.
> OK, we can try it.
> 
>>> 2nd patch is rough version of "code dai name exchange" for it.
>>> Of course we need more and more codec driver patches,
>>> but it is wm8978 only as trial now.
>>>
>>> I guess "codec driver" should have "component driver" pointer too ?
>>> (it has .name only at this point, and 2nd patch includes it)
>>
>> In my opinion it is better to embed the component_driver struct into the
>> codec_driver struct just like the component struct is embedded in the codec
>> struct. Otherwise your patch looks fine to me. Maybe move
> 
> I see.
> 
>> __snd_soc_register_component() up, so the forward declaration is not needed
>> anymore.
> 
> This was the reason why I used "rough" naming here :P
> 
>>> We can move some feature from codec to component
>>> after this step ?
>>>
>>
>> Yes. I think most of the fields managed by the core which are not touched by
>> any drivers can be moved easily.
> 
> Nice !
> 
> 
> As my previous email said, this patch cares only codec <-> component,
> but we re-consider about "component"
> if component will be used from "platform" (and "card" too ?) ?
> (since it is controlling "dai" inside)
> Or is it 2nd step like above ?
> 

I think it can be done as a second step, as long as we keep in mind that we
want to do this eventually and don't built up any road blocks that will
prevent us form doing so.

- Lars

  reply	other threads:[~2013-09-02  9:32 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-02  6:02 [PATCH 0/2][RFC] snd_soc_codec include snd_soc_component Kuninori Morimoto
2013-09-02  6:03 ` [PATCH 1/2][RFC] ASoC: " Kuninori Morimoto
2013-09-02  6:03 ` [PATCH 2/2][RFC] ASoC: wm8978: use component Kuninori Morimoto
2013-09-02  8:23 ` [PATCH 0/2][RFC] snd_soc_codec include snd_soc_component Lars-Peter Clausen
2013-09-02  8:52   ` Kuninori Morimoto
2013-09-02  9:34     ` Lars-Peter Clausen [this message]
2013-09-02 10:55       ` Mark Brown
2013-09-03  0:16         ` Kuninori Morimoto
2013-09-03  1:43 ` [PATCH v2 " Kuninori Morimoto, :
2013-09-03  1:44   ` [PATCH v2 1/2][RFC] ASoC: snd_soc_codec includes snd_soc_component Kuninori Morimoto
2013-09-03  1:44   ` [PATCH v2 2/2][RFC] ASoC: wm8978: use component Kuninori Morimoto
2013-09-03  1:51 ` [PATCH v2 0/2][RFC] snd_soc_codec include snd_soc_component Kuninori Morimoto
2013-09-03  1:52   ` [PATCH v2 1/2][RFC] ASoC: snd_soc_codec includes snd_soc_component Kuninori Morimoto
2013-09-03  1:52   ` [PATCH v2 2/2][RFC] ASoC: wm8978: use component Kuninori Morimoto
2013-09-03 11:26   ` [PATCH v2 0/2][RFC] snd_soc_codec include snd_soc_component Lars-Peter Clausen
2013-09-03 11:32     ` Mark Brown
2013-09-04  0:22       ` Kuninori Morimoto
2013-09-05  2:38 ` [PATCH v3 0/1] " Kuninori Morimoto
2013-09-05  2:39   ` [PATCH 1/1] ASoC: snd_soc_codec includes snd_soc_component Kuninori Morimoto
2013-09-11  0:38     ` [PATCH 0/2][RFC] ASoC: add .of_xlate_dai_name and DT support Kuninori Morimoto
2013-09-11  0:39       ` [PATCH 1/2][RFC] ASoC: add .of_xlate_dai_name on snd_soc_component_driver Kuninori Morimoto
2013-09-11  0:40       ` [PATCH 2/2][RFC] ASoC: simple-card: add Device Tree support Kuninori Morimoto
2013-09-11  0:52         ` Fabio Estevam
2013-09-11  1:57           ` Kuninori Morimoto
2013-09-11 10:12           ` Mark Brown
2013-09-11 23:55             ` Kuninori Morimoto
2013-09-12 11:31         ` Sebastian Hesselbarth
2013-09-12 11:55           ` Mark Brown
2013-09-12 10:39       ` [PATCH 0/2][RFC] ASoC: add .of_xlate_dai_name and DT support Mark Brown
2013-09-17 12:26     ` [PATCH 1/1] ASoC: snd_soc_codec includes snd_soc_component Mark Brown
2013-09-24  6:24 ` [PATCH v2] ASoC: simple-card: add Device Tree support Kuninori Morimoto
     [not found]   ` <8738oiog00.wl%kuninori.morimoto.gx@renesas.com>
2013-10-03 10:42     ` Mark Brown
     [not found]       ` <20131003104248.GI27287-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-10-04  0:04         ` [PATCH v3] " Kuninori Morimoto
2013-10-14 17:16           ` Mark Brown
2013-10-24 17:17           ` Mark Rutland
2013-10-25  2:14             ` [PATCH v4] " Kuninori Morimoto
     [not found]               ` <87iowm9jwv.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2013-11-15  5:13                 ` Kuninori Morimoto
     [not found]                   ` <87zjp6memo.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2013-11-15 10:47                     ` Mark Brown
2013-11-15 15:50               ` Mark Rutland
2013-11-18  0:42                 ` Kuninori Morimoto
2013-11-18 11:36                   ` Mark Rutland
     [not found]                     ` <20131118113617.GC30853-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2013-11-18 12:41                       ` [alsa-devel] " Mark Brown
2013-11-19  2:03                       ` Kuninori Morimoto
2013-11-20 16:24                         ` Mark Rutland
     [not found]                           ` <20131120162403.GA22479-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2013-11-21  0:12                             ` [alsa-devel] " Kuninori Morimoto
2013-12-02 16:24                               ` Mark Rutland
     [not found]                 ` <20131115155028.GE24831-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2013-11-18  3:19                   ` [PATCH v5] " Kuninori Morimoto
     [not found]                     ` <87bo1i75xp.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2013-11-29  1:11                       ` Kuninori Morimoto
     [not found]                         ` <8761rc57wd.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2013-11-29 12:33                           ` Mark Brown
2013-11-18 14:12                   ` [PATCH v4] " Rob Herring
     [not found]                     ` <CAL_JsqKLd4CbfD6PifXrwWxbyJqnvAViYkXQ63TBniQBPPzp4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-18 14:31                       ` Mark Brown
2013-11-19  2:36                       ` [alsa-devel] " Kuninori Morimoto
     [not found]                         ` <87li0ldso8.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2013-11-20  6:25                           ` [PATCH v6] " Kuninori Morimoto
2013-12-02 12:42                             ` Mark Brown
     [not found]                               ` <20131202124235.GA27568-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-12-03  0:07                                 ` [alsa-devel] " Kuninori Morimoto
2013-11-20 14:20                           ` [alsa-devel] [PATCH v4] " Rob Herring
     [not found]                             ` <CAL_Jsq+ZsrU5S6B_V8ruLK141LxTR2fd9Re5EWmp47LY+ALDow-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-20 16:02                               ` Mark Brown
2013-11-21  0:41                               ` Kuninori Morimoto
     [not found]                                 ` <871u2aziuu.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2013-12-02  4:57                                   ` Kuninori Morimoto
2013-10-25 13:13             ` [PATCH v3] " Mark Brown
     [not found]               ` <20131025131357.GB12932-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-10-30  0:39                 ` [alsa-devel] " Kuninori Morimoto
     [not found]                   ` <87sivjk2xj.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2013-10-31  0:31                     ` Mark Brown
     [not found]                       ` <20131031003156.GY2493-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-10-31  1:11                         ` Kuninori Morimoto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52245B97.3000900@metafoo.de \
    --to=lars@metafoo.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=lgirdwood@gmail.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.