From 9203dd016a5d8ffb2eb6acdca60cd0b5dfe38c2b Mon Sep 17 00:00:00 2001 From: Russell King Date: Sat, 9 May 2015 11:26:47 +0100 Subject: 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 Reviwed-by: Mark Brown Signed-off-by: Takashi Iwai --- include/sound/pcm_iec958.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 include/sound/pcm_iec958.h (limited to 'include/sound/pcm_iec958.h') 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 + +int snd_pcm_create_iec958_consumer(struct snd_pcm_runtime *runtime, u8 *cs, + size_t len); + +#endif -- cgit v1.1