alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/6] add IEC958 channel status control helpers
@ 2016-03-08 12:53 Arnaud Pouliquen
  2016-03-08 12:53 ` [PATCH v4 1/6] ASoC: core: add snd_soc_add_dai_pcm_controls helper Arnaud Pouliquen
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Arnaud Pouliquen @ 2016-03-08 12:53 UTC (permalink / raw)
  To: alsa-devel
  Cc: Jean-Francois Moine, Lars-Peter Clausen, Russell King - ARM Linux,
	David Airlie, arnaud.pouliquen, Liam Girdwood, Jyri Sarha,
	Takashi Iwai, Mark Brown, Philipp Zabel, Moise Gergaud

V4
- Link pcm control, defined in dai, to PCM device:
	Discard solution based on  "pcm_new" ops  for DAI initialisations
        replace it by an helper function that registers pcm control and links
        it to pcm device.  
- Define helpers function to handle 'IEC958 Playback Default' control
	. add snd_pcm_iec958_ctl_new helper for compatibility with
        snd_soc_add_dai_pcm_controls implementation
        . add substream parameter for snd_pcm_create_iec958_ctl function
        . fixes based on Takashi remarks.

V3:
- Define helpers function  to handle 'IEC958 Playback Default' control
- add "pcm_new" ops  for DAI initialisations that need pcm runtime context. 
	This patchset is needed to be able to associate control to the 
        PCM device. The iec control is linked to the DAI but also to the PCM device.
        Furthermore, some platforms like sti support both HDMI and SPDIF
        outputs in parallel. Logical way to differentiate them is to link them
        to pcm device index. 

This patchset is extracted from following RFC
http://permalink.gmane.org/gmane.linux.alsa.devel/149876 (sti: add audio interface to the hdmi driver)

Notice that "ASoC: hdmi-codec: add IEC control" patch depends on integration of the hdmi-codec driver

     Patches update:
     - ALSA: pcm: add IEC958 channel status control helper
          - make mutex usage mandatory.
          - Set control index to pcm device id ( needed to be supported by iecset)
     - ASoC: core: add code to complete dai init after pcm creation
          -  fix dai param of pcm_new  ops for cpu dai.
     - ASoC: sti: use iec channel status control helper
     		new patch: implementation of the helper for sti cpu-dai 

V2:
     - patch: ALSA: pcm: add IEC958 channel status control helper
          - Return 1 instead of 0 in snd_pcm_iec958_put
          - Add .access field in control structure
          - I have kept condition on mutex for flexibility 
            (but could be cleaned to force user to use a mutex)

V1:
This RFC is the implementation of audio HDMI on sti platform based on 
generic hdmi-codec driver:
	https://patchwork.kernel.org/patch/7215271/ ("ASoC: hdmi-codec: Add hdmi-codec for external HDMI-encoders")

Arnaud Pouliquen (5):
  ASoC: core: add  snd_soc_add_dai_pcm_controls helper
  ASoC: sti: use snd_soc_add_dai_pcm_controls helper
  ALSA: pcm: add IEC958 channel status control helper
  ASoC: core: allow private data for snd_soc_add_dai_pcm_controls
  ASoC: sti: use iec channel status control helper

 include/sound/hdmi-codec.h    |  1 +
 include/sound/pcm_iec958.h      |  21 +++++
 include/sound/soc-dai.h         |   1 +
 include/sound/soc.h             |   3 +
 sound/core/pcm_iec958.c         | 125 ++++++++++++++++++++++++++++++
 sound/soc/codecs/hdmi-codec.c | 54 ++++++++++++++++++++++++++++++++-----------
 sound/soc/soc-core.c            | 168 +++++++++++++++++++++++++++++++++++-----
 sound/soc/sti/Kconfig           |   1 +
 sound/soc/sti/sti_uniperif.c    |  57 +++++++-------
 sound/soc/sti/uniperif.h        |   1 +
 sound/soc/sti/uniperif_player.c |  80 +++++--------------
 11 files changed, 386 insertions(+), 126 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-03-13  8:34 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).