| From | Andi Kleen <> | Subject | [PATCH] [206/275] ALSA: ctxfi - Fix incorrect SPDIF status bit mask | Date | Wed, 30 Mar 2011 14:07:30 -0700 (PDT) |
| |
2.6.35-longterm review patch. If anyone has any objections, please let me know.
------------------ From: Przemyslaw Bruski <pbruskispam@op.pl>
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> Signed-off-by: Andi Kleen <ak@linux.intel.com>
--- sound/pci/ctxfi/ctatc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.35.y/sound/pci/ctxfi/ctatc.c =================================================================== --- linux-2.6.35.y.orig/sound/pci/ctxfi/ctatc.c 2011-03-29 22:50:36.791317022 -0700 +++ linux-2.6.35.y/sound/pci/ctxfi/ctatc.c 2011-03-29 23:03:02.557234737 -0700 @@ -869,7 +869,7 @@ 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);
|