Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Moise Gergaud and committed by
Mark Brown
0d3f3c9a 8005c49d

+1 -2
+1 -2
sound/soc/sti/uniperif_player.c
··· 251 251 * set one. 252 252 */ 253 253 mutex_lock(&player->ctrl_lock); 254 - if (runtime && (player->stream_settings.iec958.status[3] 255 - == IEC958_AES3_CON_FS_NOTID)) { 254 + if (runtime) { 256 255 switch (runtime->rate) { 257 256 case 22050: 258 257 player->stream_settings.iec958.status[3] =