aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/pcm_iec958.h
diff options
context:
space:
mode:
authorJyri Sarha <jsarha@ti.com>2016-03-31 16:35:58 +0300
committerMark Brown <broonie@kernel.org>2016-04-06 11:47:48 -0700
commit4a4436573a6669516f73bac25016683d396ed4c4 (patch)
treea776d721808873a645baba6f25a0f973c7995c24 /include/sound/pcm_iec958.h
parentLinux 4.6-rc1 (diff)
downloadlinux-dev-4a4436573a6669516f73bac25016683d396ed4c4.tar.xz
linux-dev-4a4436573a6669516f73bac25016683d396ed4c4.zip
ALSA: pcm: add IEC958 channel status helper for hw_params
Add IEC958 channel status helper that gets the audio properties from snd_pcm_hw_params instead of snd_pcm_runtime. This is needed to produce the channel status bits already in audio stream configuration phase. Signed-off-by: Jyri Sarha <jsarha@ti.com> Reviewed-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/pcm_iec958.h')
-rw-r--r--include/sound/pcm_iec958.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/pcm_iec958.h b/include/sound/pcm_iec958.h
index 0eed397aca8e..36f023acb201 100644
--- a/include/sound/pcm_iec958.h
+++ b/include/sound/pcm_iec958.h
@@ -6,4 +6,6 @@
int snd_pcm_create_iec958_consumer(struct snd_pcm_runtime *runtime, u8 *cs,
size_t len);
+int snd_pcm_create_iec958_consumer_hw_params(struct snd_pcm_hw_params *params,
+ u8 *cs, size_t len);
#endif