From: Adrian Knoth Date: Fri, 5 Jul 2013 09:28:12 +0000 (+0200) Subject: ALSA: hdspm - Enable AES32 in hdspm_get_tco_sample_rate X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=051c44fec7e250a93d8f3b6704a3ce880a11bb0f;p=deliverable%2Flinux.git ALSA: hdspm - Enable AES32 in hdspm_get_tco_sample_rate This patch adds AES32 specific code to hdspm_get_tco_sample_rate to query the TCO sample rate. 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 a69957cba0f4..c0143cf83cf3 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c @@ -2204,6 +2204,9 @@ static int hdspm_get_tco_sample_rate(struct hdspm *hdspm) status = hdspm_read(hdspm, HDSPM_RD_STATUS_1); return (status >> 20) & 0xF; break; + case AES32: + status = hdspm_read(hdspm, HDSPM_statusRegister); + return (status >> 1) & 0xF; default: break; }