From: Adrian Knoth Date: Fri, 19 Oct 2012 15:42:28 +0000 (+0200) Subject: ALSA: hdspm - Fix sync_in detection on AES/AES32 X-Git-Tag: v3.7-rc3~17^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a215f47da029b04bf92f1f68abf978211155ceb;p=platform%2Fkernel%2Flinux-stable.git ALSA: hdspm - Fix sync_in detection on AES/AES32 According to the documentation, AES32 cards use a different bit position for reporting the sync_in status. Signed-off-by: Adrian Knoth Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index 5d70efe..b8b15ee 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c @@ -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: