]> Pileus Git - ~andy/linux/commitdiff
ALSA: hdspm - Fix sync_in detection on AES/AES32
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>
Fri, 19 Oct 2012 15:42:28 +0000 (17:42 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 20 Oct 2012 08:43:59 +0000 (10:43 +0200)
According to the documentation, AES32 cards use a different bit position
for reporting the sync_in status.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/rme9652/hdspm.c

index 5d70efec26c069e408ac7354098043dc7c0761ec..b8b15ee5eebbc0c425ad6e9d832d5203ada0d60e 100644 (file)
@@ -3892,8 +3892,8 @@ static int hdspm_sync_in_sync_check(struct hdspm *hdspm)
 
        case AES32:
                status = hdspm_read(hdspm, HDSPM_statusRegister2);
-               lock = (status & HDSPM_syncInLock) ? 1 : 0;
-               sync = (status & HDSPM_syncInSync) ? 1 : 0;
+               lock = (status & 0x100000) ? 1 : 0;
+               sync = (status & 0x200000) ? 1 : 0;
                break;
 
        case MADIface: