Commit 4c1847e8 authored by Przemyslaw Bruski's avatar Przemyslaw Bruski Committed by Takashi Iwai

ALSA: ctxfi - Fix incorrect SPDIF status bit mask

SPDIF status mask creation was incorrect.
Signed-off-by: default avatarPrzemyslaw Bruski <pbruskispam@op.pl>
Cc: <stable@kernel.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 19002fd5
...@@ -869,7 +869,7 @@ spdif_passthru_playback_setup(struct ct_atc *atc, struct ct_atc_pcm *apcm) ...@@ -869,7 +869,7 @@ spdif_passthru_playback_setup(struct ct_atc *atc, struct ct_atc_pcm *apcm)
mutex_lock(&atc->atc_mutex); mutex_lock(&atc->atc_mutex);
dao->ops->get_spos(dao, &status); dao->ops->get_spos(dao, &status);
if (((status >> 24) & IEC958_AES3_CON_FS) != iec958_con_fs) { 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); status |= (iec958_con_fs << 24);
dao->ops->set_spos(dao, status); dao->ops->set_spos(dao, status);
dao->ops->commit_write(dao); 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