summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2011-04-20 19:41:08 +0000
committerhselasky <hselasky@FreeBSD.org>2011-04-20 19:41:08 +0000
commitbda5dc08022a9410c11ce6c121bff19ea5fc095a (patch)
tree6986fa18b44c9fa0ab7239f0ee595534927ba4a0 /sys/dev/sound
parentd0f9a41cb112c6b94647bb7688a15dd85afdaff6 (diff)
downloadFreeBSD-src-bda5dc08022a9410c11ce6c121bff19ea5fc095a.zip
FreeBSD-src-bda5dc08022a9410c11ce6c121bff19ea5fc095a.tar.gz
Only set the sample rate if the USB audio channel reports
that it supports the frequency control request. MFC after: 7 days Approved by: thompsa (mentor)
Diffstat (limited to 'sys/dev/sound')
-rw-r--r--sys/dev/sound/usb/uaudio.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c
index de75aee..79bfc13 100644
--- a/sys/dev/sound/usb/uaudio.c
+++ b/sys/dev/sound/usb/uaudio.c
@@ -1360,11 +1360,10 @@ uaudio_chan_init(struct uaudio_softc *sc, struct snd_dbuf *b,
sc->sc_mixer_iface_index);
/*
- * If just one sampling rate is supported,
- * no need to call "uaudio_set_speed()".
- * Roland SD-90 freezes by a SAMPLING_FREQ_CONTROL request.
+ * Only set the sample rate if the channel reports that it
+ * supports the frequency control.
*/
- if (ch->p_asf1d->bSamFreqType != 1) {
+ if (ch->p_sed->bmAttributes & UA_SED_FREQ_CONTROL) {
if (uaudio_set_speed(sc->sc_udev, endpoint, ch->sample_rate)) {
/*
* If the endpoint is adaptive setting the speed may
OpenPOWER on IntegriCloud