Commit 5794354c authored by Przemyslaw Bruski's avatar Przemyslaw Bruski Committed by Greg Kroah-Hartman

ALSA: ctxfi - Fix incorrect SPDIF status bit mask

commit 4c1847e8 upstream.

SPDIF status mask creation was incorrect.
Signed-off-by: default avatarPrzemyslaw Bruski <pbruskispam@op.pl>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 74d5036b
......@@ -869,7 +869,7 @@ spdif_passthru_playback_setup(struct ct_atc *atc, struct ct_atc_pcm *apcm)
mutex_lock(&atc->atc_mutex);
dao->ops->get_spos(dao, &status);
if (((status >> 24) & IEC958_AES3_CON_FS) != iec958_con_fs) {
status &= ((~IEC958_AES3_CON_FS) << 24);
status &= ~(IEC958_AES3_CON_FS << 24);
status |= (iec958_con_fs << 24);
dao->ops->set_spos(dao, status);
dao->ops->commit_write(dao);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment