[alsa-devel] [PATCH 8/8] ALSA: hdspm - Fix lock/sync reporting on MADI and AES32

Adrian Knoth adi at drcomp.erfurt.thur.de
Wed Feb 23 11:43:15 CET 2011


Signed-off-by: Adrian Knoth <adi at drcomp.erfurt.thur.de>

diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c
index ced1406..5dbf620 100644
--- a/sound/pci/rme9652/hdspm.c
+++ b/sound/pci/rme9652/hdspm.c
@@ -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:
-- 
1.7.2.3



More information about the Alsa-devel mailing list