ALSA: pcm: add IEC958 channel status helper
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 9 May 2015 10:26:47 +0000 (11:26 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 22 May 2015 14:01:47 +0000 (16:01 +0200)
Add a helper to create the IEC958 channel status from an ALSA
snd_pcm_runtime structure, taking account of the sample rate and
sample size.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Reviwed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm_iec958.h [new file with mode: 0644]
sound/core/Kconfig
sound/core/Makefile
sound/core/pcm_iec958.c [new file with mode: 0644]

diff --git a/include/sound/pcm_iec958.h b/include/sound/pcm_iec958.h
new file mode 100644 (file)
index 0000000..0eed397
--- /dev/null
@@ -0,0 +1,9 @@
+#ifndef __SOUND_PCM_IEC958_H
+#define __SOUND_PCM_IEC958_H
+
+#include <linux/types.h>
+
+int snd_pcm_create_iec958_consumer(struct snd_pcm_runtime *runtime, u8 *cs,
+       size_t len);
+
+#endif
Simple merge
Simple merge
Simple merge