Skip to content

Commit

Permalink
ASoC: sti: fix channel status update after playback start
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnaud Pouliquen authored and Mark Brown committed Oct 26, 2016
1 parent 1001354 commit 1e6d304
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sound/soc/sti/uniperif_player.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,11 @@ static int uni_player_ctl_iec958_put(struct snd_kcontrol *kcontrol,
iec958->status[3] = ucontrol->value.iec958.status[3];
mutex_unlock(&player->ctrl_lock);

uni_player_set_channel_status(player, NULL);
if (player->substream && player->substream->runtime)
uni_player_set_channel_status(player,
player->substream->runtime);
else
uni_player_set_channel_status(player, NULL);

return 0;
}
Expand Down

0 comments on commit 1e6d304

Please sign in to comment.