diff options
author | Adrian Knoth <adi@drcomp.erfurt.thur.de> | 2013-07-05 05:28:11 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-07-05 08:52:17 -0400 |
commit | a57fea8ed44a2d32f8cbdd5455262aca88e72aa6 (patch) | |
tree | bcf9013e377713b0f5c6a5a4612abb60ea4688d0 /sound/pci/rme9652 | |
parent | 5b266354b91087d8f1b1d1b6853a2c012f3e1518 (diff) |
ALSA: hdspm - Enable AES32 in hdspm_get_wc_sample_rate
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>
Diffstat (limited to 'sound/pci/rme9652')
-rw-r--r-- | sound/pci/rme9652/hdspm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index 367dd411247d..a69957cba0f4 100644 --- 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) | |||
2178 | status = hdspm_read(hdspm, HDSPM_RD_STATUS_1); | 2178 | status = hdspm_read(hdspm, HDSPM_RD_STATUS_1); |
2179 | return (status >> 16) & 0xF; | 2179 | return (status >> 16) & 0xF; |
2180 | break; | 2180 | break; |
2181 | case AES32: | ||
2182 | status = hdspm_read(hdspm, HDSPM_statusRegister); | ||
2183 | return (status >> HDSPM_AES32_wcFreq_bit) & 0xF; | ||
2181 | default: | 2184 | default: |
2182 | break; | 2185 | break; |
2183 | } | 2186 | } |