summaryrefslogtreecommitdiffstats
path: root/sound/soc/sti
diff options
context:
space:
mode:
authorMoise Gergaud <moise.gergaud@st.com>2015-11-24 14:16:35 +0100
committerMark Brown <broonie@kernel.org>2015-11-25 12:34:50 +0000
commit0d3f3c9a48d758454b0f57ca3eccd9ea3f6a4724 (patch)
treebbb136746265dc8bdad2857276a71b983f32bb1d /sound/soc/sti
parent8005c49d9aea74d382f474ce11afbbc7d7130bec (diff)
downloadlinux-0d3f3c9a48d758454b0f57ca3eccd9ea3f6a4724.tar.bz2
ASoC: sti: set iec958 channel status sampling freq
Previously, the iec958 channels status sampling freq was set only if not already set. It means that it is not updated for next PCM sessions. With this patch, we ensure the iec958 channels status sampling freq is set to the runtime rate for each PCM session. Signed-off-by: Moise Gergaud <moise.gergaud@st.com> Acked-by: Arnaud Pouliquen <arnaud.pouliquen@st.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sti')
-rw-r--r--sound/soc/sti/uniperif_player.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/sti/uniperif_player.c b/sound/soc/sti/uniperif_player.c
index 843f037a317d..148bcd7dbf03 100644
--- a/sound/soc/sti/uniperif_player.c
+++ b/sound/soc/sti/uniperif_player.c
@@ -251,8 +251,7 @@ static void uni_player_set_channel_status(struct uniperif *player,
* set one.
*/
mutex_lock(&player->ctrl_lock);
- if (runtime && (player->stream_settings.iec958.status[3]
- == IEC958_AES3_CON_FS_NOTID)) {
+ if (runtime) {
switch (runtime->rate) {
case 22050:
player->stream_settings.iec958.status[3] =