diff options
author | Arnaud Pouliquen <arnaud.pouliquen@st.com> | 2016-10-24 10:42:52 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-10-26 06:41:28 -0400 |
commit | 1e6d304431958929b601b013687b73293ba27b88 (patch) | |
tree | 71416f8153c2de2352cdbd688f60c9b9322000b9 /sound | |
parent | 1001354ca34179f3db924eb66672442a173147dc (diff) |
ASoC: sti: fix channel status update after playback start
If 'IEC958 Playback Default' control is updated during playback,
Channel status needs to be set according to the runtime structure.
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/sti/uniperif_player.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/soc/sti/uniperif_player.c b/sound/soc/sti/uniperif_player.c index 1bc8ebc2528e..ad54d4cf58ad 100644 --- a/sound/soc/sti/uniperif_player.c +++ b/sound/soc/sti/uniperif_player.c | |||
@@ -614,7 +614,11 @@ static int uni_player_ctl_iec958_put(struct snd_kcontrol *kcontrol, | |||
614 | iec958->status[3] = ucontrol->value.iec958.status[3]; | 614 | iec958->status[3] = ucontrol->value.iec958.status[3]; |
615 | mutex_unlock(&player->ctrl_lock); | 615 | mutex_unlock(&player->ctrl_lock); |
616 | 616 | ||
617 | uni_player_set_channel_status(player, NULL); | 617 | if (player->substream && player->substream->runtime) |
618 | uni_player_set_channel_status(player, | ||
619 | player->substream->runtime); | ||
620 | else | ||
621 | uni_player_set_channel_status(player, NULL); | ||
618 | 622 | ||
619 | return 0; | 623 | return 0; |
620 | } | 624 | } |