alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/6] sti: add audio interface to the hdmi driver
@ 2016-01-19 13:40 Arnaud Pouliquen
  2016-01-19 13:40 ` [RFC 1/6] video: hdmi: add helper function for N and CTS Arnaud Pouliquen
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Arnaud Pouliquen @ 2016-01-19 13:40 UTC (permalink / raw)
  To: alsa-devel
  Cc: Jean-Francois Moine, Lars-Peter Clausen, Russell King - ARM Linux,
	Philipp Zabel, David Airlie, arnaud.pouliquen, Liam Girdwood,
	Jyri Sarha, Takashi Iwai, Mark Brown, Benjamin Gaignard

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

hdmi-codec is compatible with STi implementation.

In addition i have listed below two features that seem missing:

1) IEC958 channel status control support.
If channel status is handled by HDMI codec, it needs also to support 
IEC61937 format for none PCM stream. In this case a control shall be
created to allows user to set the expected mode, and associated parameters.
Another constraint is that this control should be linked to PCM device to 
support as example a SPDIF and a HDMI out with 2 separate controls.

In this patch set I propose an implementation to support it:
	- ALSA: pcm: add IEC958 channel status control helper
		add generic function to control and handle IEC controls
		customer and professional mask controls could be added if
		needed...
	- ASoC: core: add code to complete dai init after pcm creation
		Add a callback in snd_soc_dai_ops to allow to link DAI controls
		to PCM device

2) HDMI Audio info frame speaker mapping.
To be HDMI 1.4b compliant AIF speaker channel allocation (byte 4) needs
to be set for PCM streams, that contain more than 2 channels.
omap2 driver set hard-coded value for stereo, 5.1 and 7.1. But This 
information should be provided by user that decodes the stream.
I did not implement it but what about a generic CEA861 control to support
the feature?

To finish I'm still interested in having your feed back on patch that propose
a generic implementation to compute N and CTS...

Arnaud Pouliquen (6):
  video: hdmi: add helper function for N and CTS
  ALSA: pcm: add IEC958 channel status control helper
  ASoC: core: add code to complete dai init after pcm creation
  drm: sti: Add ASoC generic hdmi codec support.
  ASoc: hdmi-codec: add IEC control.
  ARM: DT: b2120: add audio HDMI dai link in audio card


 arch/arm/boot/dts/stihxxx-b2120.dtsi |  15 ++-
 drivers/gpu/drm/sti/Kconfig          |   1 +
 drivers/gpu/drm/sti/sti_hdmi.c       | 253 ++++++++++++++++++++++++++++++++---
 drivers/gpu/drm/sti/sti_hdmi.h       |  10 ++
 drivers/video/hdmi.c                 | 146 ++++++++++++++++++++
 include/linux/hdmi.h                 |  11 ++
 include/sound/hdmi-codec.h           |   1 +
 include/sound/pcm_iec958.h           |  16 +++
 include/sound/soc-dai.h              |   7 +
 sound/core/pcm_iec958.c              |  90 +++++++++++++
 sound/soc/codecs/hdmi-codec.c        |  59 ++++++--
 sound/soc/soc-core.c                 |  14 ++
 12 files changed, 591 insertions(+), 32 deletions(-)

-- 
1.9.1

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

end of thread, other threads:[~2016-01-20 14:16 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-19 13:40 [RFC 0/6] sti: add audio interface to the hdmi driver Arnaud Pouliquen
2016-01-19 13:40 ` [RFC 1/6] video: hdmi: add helper function for N and CTS Arnaud Pouliquen
2016-01-19 16:54   ` Russell King - ARM Linux
2016-01-19 17:14     ` Mark Brown
2016-01-20 13:26     ` Arnaud Pouliquen
2016-01-20 13:39       ` Russell King - ARM Linux
2016-01-19 13:40 ` [RFC 2/6] ALSA: pcm: add IEC958 channel status control helper Arnaud Pouliquen
2016-01-19 17:00   ` Russell King - ARM Linux
2016-01-20 14:16     ` Arnaud Pouliquen
2016-01-19 13:40 ` [RFC 3/6] ASoC: core: add code to complete dai init after pcm creation Arnaud Pouliquen
2016-01-19 13:40 ` [RFC 4/6] drm: sti: Add ASoC generic hdmi codec support Arnaud Pouliquen
2016-01-19 17:06   ` Russell King - ARM Linux
2016-01-19 13:40 ` [RFC 5/6] ASoc: hdmi-codec: add IEC control Arnaud Pouliquen
2016-01-19 13:40 ` [RFC 6/6] ARM: DT: b2120: add audio HDMI dai link in audio card 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).