diff options
author | Adrian Knoth <adi@drcomp.erfurt.thur.de> | 2013-07-05 13:28:11 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-07-05 16:52:17 +0400 |
commit | a57fea8ed44a2d32f8cbdd5455262aca88e72aa6 (patch) | |
tree | bcf9013e377713b0f5c6a5a4612abb60ea4688d0 /sound/pci/rme9652 | |
parent | 5b266354b91087d8f1b1d1b6853a2c012f3e1518 (diff) | |
download | linux-a57fea8ed44a2d32f8cbdd5455262aca88e72aa6.tar.xz |
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) 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; } |