diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-05-09 06:26:47 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-05-22 10:01:47 -0400 |
commit | 9203dd016a5d8ffb2eb6acdca60cd0b5dfe38c2b (patch) | |
tree | c827c3927ec50365e988f6c8934edfb54f279436 /include/sound | |
parent | 838d1631b766529213684f07dd71cdf2e92f0623 (diff) |
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')
-rw-r--r-- | include/sound/pcm_iec958.h | 9 |
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 000000000000..0eed397aca8e --- /dev/null +++ b/include/sound/pcm_iec958.h | |||
@@ -0,0 +1,9 @@ | |||
1 | #ifndef __SOUND_PCM_IEC958_H | ||
2 | #define __SOUND_PCM_IEC958_H | ||
3 | |||
4 | #include <linux/types.h> | ||
5 | |||
6 | int snd_pcm_create_iec958_consumer(struct snd_pcm_runtime *runtime, u8 *cs, | ||
7 | size_t len); | ||
8 | |||
9 | #endif | ||