From: Przemyslaw Bruski Date: Sun, 13 Mar 2011 15:18:56 +0000 (+0100) Subject: ALSA: ctxfi - Fix incorrect SPDIF status bit mask X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4c1847e884efddcc3ede371f7839e5e65b25c34d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ALSA: ctxfi - Fix incorrect SPDIF status bit mask SPDIF status mask creation was incorrect. Signed-off-by: Przemyslaw Bruski Cc: Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/ctxfi/ctatc.c b/sound/pci/ctxfi/ctatc.c index 1bff80cde0a2..b9321544c31c 100644 --- a/sound/pci/ctxfi/ctatc.c +++ b/sound/pci/ctxfi/ctatc.c @@ -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);