Date: Wed, 20 Apr 2011 19:41:08 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r220900 - head/sys/dev/sound/usb Message-ID: <201104201941.p3KJf8LL063644@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Wed Apr 20 19:41:08 2011 New Revision: 220900 URL: http://svn.freebsd.org/changeset/base/220900 Log: 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) Modified: head/sys/dev/sound/usb/uaudio.c Modified: head/sys/dev/sound/usb/uaudio.c ============================================================================== --- head/sys/dev/sound/usb/uaudio.c Wed Apr 20 18:49:12 2011 (r220899) +++ head/sys/dev/sound/usb/uaudio.c Wed Apr 20 19:41:08 2011 (r220900) @@ -1360,11 +1360,10 @@ uaudio_chan_init(struct uaudio_softc *sc 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104201941.p3KJf8LL063644>