ASoC: sti: set iec958 channel status sampling freq
authorMoise Gergaud <moise.gergaud@st.com>
Tue, 24 Nov 2015 13:16:35 +0000 (14:16 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 25 Nov 2015 12:34:50 +0000 (12:34 +0000)
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>
sound/soc/sti/uniperif_player.c

index 843f037a317da31aecc0b1761ddde2dfa24a1334..148bcd7dbf031fd89003700ac98a2fb91b0d0750 100644 (file)
@@ -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] =
This page took 0.025835 seconds and 5 git commands to generate.