summaryrefslogtreecommitdiffstats
path: root/include/sound/pcm_iec958.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-05-09 11:26:47 +0100
committerTakashi Iwai <tiwai@suse.de>2015-05-22 16:01:47 +0200
commit9203dd016a5d8ffb2eb6acdca60cd0b5dfe38c2b (patch)
treec827c3927ec50365e988f6c8934edfb54f279436 /include/sound/pcm_iec958.h
parent838d1631b766529213684f07dd71cdf2e92f0623 (diff)
downloadop-kernel-dev-9203dd016a5d8ffb2eb6acdca60cd0b5dfe38c2b.zip
op-kernel-dev-9203dd016a5d8ffb2eb6acdca60cd0b5dfe38c2b.tar.gz
ALSA: pcm: add IEC958 channel status helper
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>
Diffstat (limited to 'include/sound/pcm_iec958.h')
-rw-r--r--include/sound/pcm_iec958.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sound/pcm_iec958.h b/include/sound/pcm_iec958.h
new file mode 100644
index 0000000..0eed397
--- /dev/null
+++ b/include/sound/pcm_iec958.h
@@ -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
OpenPOWER on IntegriCloud