UPSTREAM: ALSA: pcm: add IEC958 channel status helper for hw_params
authorJyri Sarha <jsarha@ti.com>
Thu, 31 Mar 2016 13:35:58 +0000 (16:35 +0300)
committerGerrit Code Review <gerrit@rock-chips.com>
Thu, 23 Jun 2016 03:08:28 +0000 (11:08 +0800)
commit3d51558969e23e2454d9187851b0f7392ad89f31
tree01f1dca77de57b9498cd5ae652342706a6387068
parent63e5c8e831acfcbcc3a6fa97b2a1b99667a366ed
UPSTREAM: 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>
(cherry picked from commit 4a4436573a6669516f73bac25016683d396ed4c4)

Change-Id: Ie19500cd63fb311ec273035c336acc8c568d84db
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
include/sound/pcm_iec958.h
sound/core/pcm_iec958.c