From: Arnaud Pouliquen <arnaud.pouliquen@st.com>
To: alsa-devel@alsa-project.org
Cc: Takashi Iwai <tiwai@suse.de>,
lgirdwood@gmail.com, Takashi Sakamoto <o-takashi@sakamocchi.jp>,
Vinod Koul <vinod.koul@intel.com>,
broonie@kernel.org,
Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Subject: [RFC v2 0/3] ALSA controls management using index/device/sub-devices fields
Date: Tue, 22 Nov 2016 11:53:13 +0100 [thread overview]
Message-ID: <1479811996-2238-1-git-send-email-arnaud.pouliquen@st.com> (raw)
V2:
Aim of this version is to continue discussion on DAI PCM control focused on ASoC drivers.
In this V2 implementation in Soc-core is simplified to limit impact on existing code.
Proposal is to add field in DAI driver struct to declare PCM controls that
need to be linked to PCM character device on DAI link probing.
Update of the RFC V1 based on discussions:
- [RFC 4/4] iecset: allow to select control with device and sub-device numbers
no more part of the RFC V2, will be discussed in a separate thread
- [RFC 2/4] ALSA: control: increment index field for duplicated control.
no more part of the RFC V2, no more need as RFC subject is PCM controls
- [RFC V2 1/3] ASoC: core: allow DAI PCM controls bound to PCM device
Patch reworked from V1 to simplify implementation
- Binding is not done for Dai links tagged with no_pcm (DPCM).
- no more possibility to add the controls after the DAI link probing.
- [RFC V2 2/3] ASoC: sti: bind PCM controls to PCM device.
- [RFC V2 3/3] ASoC: hdmi-codec: Example of PCM control bound to PCM device for multi
Example of implementation in STI DAI driver and HDMI-codec drivers
V1:
http://www.spinics.net/lists/alsa-devel/msg56479.html
1) Alsa-utils patch
- iecset: allow to select control with device and sub-device numbers
This patch allows to access to 2 iec controls differentiated by
device/sub-devices numbers
=> For me, this patch is mandatory to be able to address the ASoC IEC
controls, in case of no fix is implemented to allows index field
update in ASoC.
2) Alsa driver patches
- ASoC: core: allow PCM control binding to PCM device
Add relationship between DAIs PCM controls and PCM device.
- ALSA: control: increment index field for duplicated control.
Generic implementation of the patch proposed in HDA driver
(http://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/?id=ea9b43add)
- ASoC: sti: use bind_pcm_ctl
implementation of bind_pcm_ctl for sti driver.
Arnaud Pouliquen (3):
ASoC: core: allow DAI PCM controls bound to PCM device
ASoC: sti: bind pcm controls to pcm device.
ASoC: hdmi-codec: Example of PCM control bound to PCM device for multi
HDMI DAIs.
Regards,
Arnaud
include/sound/soc-dai.h | 4 ++++
sound/soc/codecs/hdmi-codec.c | 4 ++--
sound/soc/soc-core.c | 37 +++++++++++++++++++++++++++++++++++++
sound/soc/sti/sti_uniperif.c | 33 ++++-----------------------------
4 files changed, 47 insertions(+), 31 deletions(-)
--
1.9.1
next reply other threads:[~2016-11-22 10:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-22 10:53 Arnaud Pouliquen [this message]
2016-11-22 10:53 ` [RFC v2 1/3] ASoC: core: allow DAI PCM controls bound to PCM device Arnaud Pouliquen
2016-11-24 4:55 ` Vinod Koul
2016-11-24 5:14 ` Takashi Sakamoto
2016-11-24 9:52 ` Arnaud Pouliquen
2016-11-22 10:53 ` [RFC v2 2/3] ASoC: sti: bind pcm controls to pcm device Arnaud Pouliquen
2016-11-22 10:53 ` [RFC v2 3/3] ASoC: hdmi-codec: Example of PCM control bound to PCM device for multi HDMI DAIs 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=1479811996-2238-1-git-send-email-arnaud.pouliquen@st.com \
--to=arnaud.pouliquen@st.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=ckeepax@opensource.wolfsonmicro.com \
--cc=lgirdwood@gmail.com \
--cc=o-takashi@sakamocchi.jp \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).