projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8812c5
)
ALSA: hdspm - Fix sync_in reporting on RME MADI cards
author
Adrian Knoth
<adi@drcomp.erfurt.thur.de>
Fri, 19 Oct 2012 15:42:27 +0000
(17:42 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Sat, 20 Oct 2012 08:43:33 +0000
(10:43 +0200)
In contrast to AES32, MADI uses the first status register to report 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
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/rme9652/hdspm.c
b/sound/pci/rme9652/hdspm.c
index 5f243aedeef790c5bc225f1831614ff2d589e9ab..5d70efec26c069e408ac7354098043dc7c0761ec 100644
(file)
--- a/
sound/pci/rme9652/hdspm.c
+++ b/
sound/pci/rme9652/hdspm.c
@@
-3885,6
+3885,11
@@
static int hdspm_sync_in_sync_check(struct hdspm *hdspm)
break;
case MADI:
+ status = hdspm_read(hdspm, HDSPM_statusRegister);
+ lock = (status & HDSPM_syncInLock) ? 1 : 0;
+ sync = (status & HDSPM_syncInSync) ? 1 : 0;
+ break;
+
case AES32:
status = hdspm_read(hdspm, HDSPM_statusRegister2);
lock = (status & HDSPM_syncInLock) ? 1 : 0;