[alsa-devel] [PATCH - ctxfi driver 2/4] Fix: mask creation was incorrect
pbruskispam at op.pl
pbruskispam at op.pl
Sun Mar 13 16:18:56 CET 2011
From: Przemyslaw Bruski <pbruskispam at op.pl>
Signed-off-by: Przemyslaw Bruski <pbruskispam at op.pl>
diff --git a/pci/ctxfi/ctatc.c b/pci/ctxfi/ctatc.c
index 1bff80c..b932154 100644
--- a/pci/ctxfi/ctatc.c
+++ b/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);
--
1.7.1
More information about the Alsa-devel
mailing list