From: Russell King Date: Sat, 9 May 2015 10:26:47 +0000 (+0100) Subject: ALSA: pcm: add IEC958 channel status helper X-Git-Tag: omap-for-v4.2/fixes-rc1^2~113^2~77^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9203dd016a5d8ffb2eb6acdca60cd0b5dfe38c2b;p=pandora-kernel.git 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 --- 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 @@ +#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 Reading git-diff-tree failed