提交 0d3f3c9a 编写于 作者: M Moise Gergaud 提交者: Mark Brown

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: NMoise Gergaud <moise.gergaud@st.com>
Acked-by: NArnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 8005c49d
...@@ -251,8 +251,7 @@ static void uni_player_set_channel_status(struct uniperif *player, ...@@ -251,8 +251,7 @@ static void uni_player_set_channel_status(struct uniperif *player,
* set one. * set one.
*/ */
mutex_lock(&player->ctrl_lock); mutex_lock(&player->ctrl_lock);
if (runtime && (player->stream_settings.iec958.status[3] if (runtime) {
== IEC958_AES3_CON_FS_NOTID)) {
switch (runtime->rate) { switch (runtime->rate) {
case 22050: case 22050:
player->stream_settings.iec958.status[3] = player->stream_settings.iec958.status[3] =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册