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:
5b26635
)
ALSA: hdspm - Enable AES32 in hdspm_get_wc_sample_rate
author
Adrian Knoth
<adi@drcomp.erfurt.thur.de>
Fri, 5 Jul 2013 09:28:11 +0000
(11:28 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 5 Jul 2013 12:52:17 +0000
(14:52 +0200)
This patch adds AES32 specific code to hdspm_get_wc_sample_rate() to
query the wordclock frequency.
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 367dd411247d3ec09d1634878b13889d36a1abc4..a69957cba0f4193b569a15b5098a92e06500d18d 100644
(file)
--- a/
sound/pci/rme9652/hdspm.c
+++ b/
sound/pci/rme9652/hdspm.c
@@
-2178,6
+2178,9
@@
static int hdspm_get_wc_sample_rate(struct hdspm *hdspm)
status = hdspm_read(hdspm, HDSPM_RD_STATUS_1);
return (status >> 16) & 0xF;
break;
+ case AES32:
+ status = hdspm_read(hdspm, HDSPM_statusRegister);
+ return (status >> HDSPM_AES32_wcFreq_bit) & 0xF;
default:
break;
}