All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnaud Pouliquen <arnaud.pouliquen@st.com>
To: "Subhransu S. Prusty" <subhransu.s.prusty@intel.com>
Cc: Jean-Francois Moine <moinejf@free.fr>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Russell King - ARM Linux <linux@arm.linux.org.uk>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	"Koul, Vinod" <vinod.koul@intel.com>,
	Liam Girdwood <lgirdwood@gmail.com>, Jyri Sarha <jsarha@ti.com>,
	David Airlie <airlied@linux.ie>, Mark Brown <broonie@kernel.org>,
	Takashi Iwai <tiwai@suse.de>,
	Moise GERGAUD <moise.gergaud@st.com>
Subject: Re: [PATCH v4 1/6] ASoC: core: add snd_soc_add_dai_pcm_controls helper
Date: Thu, 10 Mar 2016 15:03:16 +0100	[thread overview]
Message-ID: <56E17EA4.7080409@st.com> (raw)
In-Reply-To: <20160310125817.GB6839@subhransu-desktop>



On 03/10/2016 01:58 PM, Subhransu S. Prusty wrote:
> On Thu, Mar 10, 2016 at 02:38:01PM +0530, Arnaud Pouliquen wrote:
>>
>>
>> On 03/10/2016 06:06 AM, Vinod Koul wrote:
>>> On Tue, Mar 08, 2016 at 01:53:56PM +0100, Arnaud Pouliquen wrote:
>>>> Add helper function to register DAI controls that need to be 
>>>> linked to pcm device.
>>>> A list is handled in case controls are created before dai_link probe
>>>
>>> Overall this patch looks good to us. But on first read it is not very clear
>>> how PCM and DAIs are inter related and why you need to do this. Since we are
>>> having similar issues we were able to quickly understand this, the
>>> suggestion would be to elborate a bit more in changelog.
>> Right, i will provide more details in commit message.
>>>
>>> Second, why do we need a new API for this. Why not use existing asoc
>>> concepts and add one more field in dai_driver for dai_controls.
>>> Core can automagically create those controls and link to PCM.
>> Yes this was my first approach. Finally, i created a separate API, to be
>> able to support iec generic control in DAI ( patch 3/6 and 4/6).
>> These patches need possibility to attach private data to control.
>> If patches 3/6 and 4/6 are rejected, for sure i will rework it to use
>> existing API.
>> Today It is more on compromise than an optimized solution...
>> But, creating a generic iec control also implies a compatibility with
>> ASoC and none ASoC drivers...
> 
> In our view, iec controls should be made generic alsa controls and asoc
> should have wrapper over these and create these controls on card enumeration
> and use these wrappers.
Please, could you details what you have in mind please, because I
thought it was exactly what I proposed my patch-set...

My approach is that i would like to take into account the creation of
generic controls in the way of handling pcm control in ASoC.
I tried to treat iec generic control as another PCM control in soc core,
not as an exception. Because this could also be reused in future for
some other generic pcm controls.

> 
>>
>>>
>>> Lastly, this doesn't help our usecase of DPCM where the HDMI codec is
>>> connected to a BE, so that rtd cannot be used and we need to link to FE, so
>>> not sure how we can solve that...
>> DPCM seems another story... I'm not fully up to date on DPCM concept,
>> but as i can remember no link between FE and BE except DAPM routing.
>> Perhaps, for DPCM, a solution should be to use index field for control,
>> instead of trying to dynamically link the codec control to PCM device?
> 
> That calls for a discussion on how the controls should be represented for
> DPCM. Takashi/Mark/Liam we need your opinion on how the PCM related controls
> should be represented in DPCM concepts.
> 
>>
>> Thanks
>> Arnaud
>> _______________________________________________
>> Alsa-devel mailing list
>> Alsa-devel@alsa-project.org
>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 

  reply	other threads:[~2016-03-10 14:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-08 12:53 [PATCH v4 0/6] add IEC958 channel status control helpers Arnaud Pouliquen
2016-03-08 12:53 ` [PATCH v4 1/6] ASoC: core: add snd_soc_add_dai_pcm_controls helper Arnaud Pouliquen
2016-03-10  5:06   ` Vinod Koul
2016-03-10  9:08     ` Arnaud Pouliquen
2016-03-10 12:58       ` Subhransu S. Prusty
2016-03-10 14:03         ` Arnaud Pouliquen [this message]
2016-03-12  6:11         ` Mark Brown
2016-03-08 12:53 ` [PATCH v4 2/6] ASoC: sti: use " Arnaud Pouliquen
2016-03-08 12:53 ` [PATCH v4 3/6] ALSA: pcm: add IEC958 channel status control helper Arnaud Pouliquen
2016-03-08 12:53 ` [PATCH v4 4/6] ASoC: core: allow private data for snd_soc_add_dai_pcm_controls Arnaud Pouliquen
2016-03-08 12:54 ` [PATCH v4 5/6] ASoC: sti: use iec channel status control helper Arnaud Pouliquen
2016-03-08 12:54 ` [PATCH v4 6/6] ASoC: hdmi-codec: add IEC control Arnaud Pouliquen

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=56E17EA4.7080409@st.com \
    --to=arnaud.pouliquen@st.com \
    --cc=airlied@linux.ie \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=jsarha@ti.com \
    --cc=lars@metafoo.de \
    --cc=lgirdwood@gmail.com \
    --cc=linux@arm.linux.org.uk \
    --cc=moinejf@free.fr \
    --cc=moise.gergaud@st.com \
    --cc=p.zabel@pengutronix.de \
    --cc=subhransu.s.prusty@intel.com \
    --cc=tiwai@suse.de \
    --cc=vinod.koul@intel.com \
    /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.