ASoC: spdif: fix spdif work abnormally when xrun occurs.
authorSugar Zhang <sugar.zhang@rock-chips.com>
Wed, 19 Aug 2015 10:33:16 +0000 (18:33 +0800)
committerSugar Zhang <sugar.zhang@rock-chips.com>
Wed, 19 Aug 2015 10:43:27 +0000 (18:43 +0800)
commit6dbf90de24e659fc31d874c7f88f83416d286db9
tree543e4c681f3ce8371657b953674f5b1d2f09b7ca
parent954898839e4860bb69c1a3fc0bb9486c6a7249ab
ASoC: spdif: fix spdif work abnormally when xrun occurs.

when xrun occurs, it will do snd_pcm_stop to disable spdif
and then clear logic, next snd_pcm_lib_write1 will trigger
snd_pcm_start to enable spdif, but not to excute hw_params
to configue spdif, so need to save spdif configuration to
reconfigure spdif.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
sound/soc/rockchip/rk_spdif.c