diff options
author | Przemyslaw Bruski <pbruskispam@op.pl> | 2011-03-13 16:18:56 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-21 12:45:49 -0700 |
commit | 89b0dcd2a7a11ac324c7bdf15bb15a084c3434ef (patch) | |
tree | 18ecd35bc9bc5919e1d43a5b397ee6394605a84d | |
parent | db79cbf24f8d161f284dd9e8697ead9a002b3e5e (diff) | |
download | lwn-89b0dcd2a7a11ac324c7bdf15bb15a084c3434ef.tar.gz lwn-89b0dcd2a7a11ac324c7bdf15bb15a084c3434ef.zip |
ALSA: ctxfi - Fix incorrect SPDIF status bit mask
commit 4c1847e884efddcc3ede371f7839e5e65b25c34d upstream.
SPDIF status mask creation was incorrect.
Signed-off-by: Przemyslaw Bruski <pbruskispam@op.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | sound/pci/ctxfi/ctatc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ctxfi/ctatc.c b/sound/pci/ctxfi/ctatc.c index 459c1f62783b..91c05d692996 100644 --- a/sound/pci/ctxfi/ctatc.c +++ b/sound/pci/ctxfi/ctatc.c @@ -868,7 +868,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); |