From: Vinod Koul <vinod.koul@intel.com>
To: "Lin, Mengdong" <mengdong.lin@intel.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Mengdong Lin <mengdong.lin@linux.intel.com>,
"tiwai@suse.de" <tiwai@suse.de>,
Takashi Sakamoto <o-takashi@sakamocchi.jp>,
"broonie@kernel.org" <broonie@kernel.org>,
"Girdwood, Liam R" <liam.r.girdwood@intel.com>,
"Nc, Shreyas" <shreyas.nc@intel.com>
Subject: Re: [PATCH v2 0/5] topology: Enhance support for private data
Date: Tue, 19 Jul 2016 09:29:50 +0530 [thread overview]
Message-ID: <20160719035950.GC9681@localhost> (raw)
In-Reply-To: <F46914AEC2663F4A9BB62374E5EEF8F84BA8441C@shsmsx102.ccr.corp.intel.com>
On Mon, Jul 18, 2016 at 03:06:24PM +0000, Lin, Mengdong wrote:
>
> > -----Original Message-----
> > From: Takashi Sakamoto [mailto:o-takashi@sakamocchi.jp]
> > Sent: Monday, July 18, 2016 11:43 AM
>
> > I know all of what you explained. Therefore, You misunderstand about my
> > suggestion.
> >
> > What I suggested is to drop a support of SNDRV_CTL_ELEM_ACCESS_USER
> > flag from current topology implementation in userspace library, because
> > current implementation of ALSA SoC part doesn't support it.
> >
> > In ALSA SoC part, snd_ctl_new1() is called to add a control element set as a
> > result of parsing binary blob generated by topology implementation.
> >
> > In snd_ctl_new1(), SNDRV_CTL_ELEM_ACCESS_USER flag is dropped, in these
> > lines:
> > http://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/sound/core/c
> > ontrol.c#n263
> >
> > Totally, the flag cannot be supported by current implementation of topology
> > in kernel. Thus, in userspace, we should drop this line to prevent users from
> > confusions:
> > http://git.alsa-project.org/?p=alsa-lib.git;a=blob;f=src/topology/ctl.c;h=b94
> > 8ac021ceecc116bc1087075743243e4b14055;hb=HEAD#l44
> >
> > That's all what I mentioned. If something unclear, please tell it to me.
>
> Yes, you're right. snd_ctl_new1() dropped SNDRV_CTL_ELEM_ACCESS_USER flag.
> I'll remove this from the topology user space tool to avoid confusion.
Oh no, that won't be a good idea.
We would like to specify the access for controls from topology. Some
controls can be read only and some write only :)
For example, any VU-meter controls should be read-only. Similarly if we have
some user data being sent to some modules which can do do all fancy audio
detection then these controls should be write-only.
Yes it seems to be broken by this, but we should fix it rather than remove.
--
~Vinod
next prev parent reply other threads:[~2016-07-19 3:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-15 12:17 [PATCH v2 0/5] topology: Enhance support for private data mengdong.lin
2016-07-15 12:17 ` [PATCH v2 1/5] topology: An element can refer to multipe data sections in text conf file mengdong.lin
2016-07-15 12:18 ` [PATCH v2 2/5] topology: Merge lookup for data reference into tplg_copy_data() mengdong.lin
2016-07-15 12:18 ` [PATCH v2 3/5] topology: Change uuid value to 16 separate characters in text conf file mengdong.lin
2016-07-15 12:19 ` [PATCH v2 4/5] topology: Parse vendor private data for manifest mengdong.lin
2016-07-15 12:19 ` [PATCH v2 5/5] topology: Tuple type can have an extenstion mengdong.lin
2016-07-16 12:58 ` [PATCH v2 0/5] topology: Enhance support for private data Takashi Sakamoto
2016-07-18 2:47 ` Mengdong Lin
2016-07-18 3:43 ` Takashi Sakamoto
2016-07-18 15:06 ` Lin, Mengdong
2016-07-19 3:59 ` Vinod Koul [this message]
2016-07-19 5:14 ` Takashi Sakamoto
2016-07-19 8:44 ` Lin, Mengdong
2016-07-17 8:03 ` Takashi Iwai
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=20160719035950.GC9681@localhost \
--to=vinod.koul@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=liam.r.girdwood@intel.com \
--cc=mengdong.lin@intel.com \
--cc=mengdong.lin@linux.intel.com \
--cc=o-takashi@sakamocchi.jp \
--cc=shreyas.nc@intel.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.