]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ALSA: hdspm - Fix lock/sync reporting on MADI and AES32
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>
Wed, 23 Feb 2011 10:43:15 +0000 (11:43 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 23 Feb 2011 14:46:44 +0000 (15:46 +0100)
Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/rme9652/hdspm.c

index ced1406d777f3644ba3da58408db8805f9e21e78..5dbf620a32c274b15a57f5e3cadb70887c99237a 100644 (file)
@@ -3700,8 +3700,8 @@ static int hdspm_sync_in_sync_check(struct hdspm *hdspm)
        case MADI:
        case AES32:
                status = hdspm_read(hdspm, HDSPM_statusRegister2);
-               lock = (status & 0x400000) ? 1 : 0;
-               sync = (status & 0x800000) ? 1 : 0;
+               lock = (status & HDSPM_syncInLock) ? 1 : 0;
+               sync = (status & HDSPM_syncInSync) ? 1 : 0;
                break;
 
        case MADIface: