]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Fix audio output on Roland SC-D70 sound module
authorTakamichi Horikawa <takamichiho@gmail.com>
Tue, 21 Apr 2015 02:23:57 +0000 (11:23 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 21 Apr 2015 05:59:10 +0000 (07:59 +0200)
commit57eeec92c69973bfa8aa83b9198030a57b4034d0
tree582b1783115f60ba742827bcf523b1fefa77cf50
parente5183209909bcb9c87a7105e45611fc85c5a2b72
ALSA: usb-audio: Fix audio output on Roland SC-D70 sound module

Roland SC-D70 reports its device class as vendor specific class and
the quirk QUIRK_AUDIO_FIXED_ENDPOINT was used for audio output.

In the quirks table the sampling rate was hard-coded to 44100 Hz
and therefore not worked when the sound module was in 48000 Hz mode.

In this change the quirk is changed to QUIRK_AUDIO_STANDARD_INTERFACE
but as the sound module reports incorrect bSubframeSize in its
descriptors, additional change is made in format.c to detect it and
to override it (which uses the existing code for Edirol SD-90).

Tested both when the sound module was in 44100 Hz mode and 48000 Hz
mode and both audio input and output. MIDI related part of the driver
is not touched.

Signed-off-by: Takamichi Horikawa <takamichiho@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/format.c
sound/usb/quirks-table.h