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>
This commit is contained in:
Родитель
5b266354b9
Коммит
a57fea8ed4
|
@ -2178,6 +2178,9 @@ static int hdspm_get_wc_sample_rate(struct hdspm *hdspm)
|
||||||
status = hdspm_read(hdspm, HDSPM_RD_STATUS_1);
|
status = hdspm_read(hdspm, HDSPM_RD_STATUS_1);
|
||||||
return (status >> 16) & 0xF;
|
return (status >> 16) & 0xF;
|
||||||
break;
|
break;
|
||||||
|
case AES32:
|
||||||
|
status = hdspm_read(hdspm, HDSPM_statusRegister);
|
||||||
|
return (status >> HDSPM_AES32_wcFreq_bit) & 0xF;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче