]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: automatically detect feedback format
authorClemens Ladisch <clemens@ladisch.de>
Tue, 26 Oct 2010 15:14:41 +0000 (17:14 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 27 Oct 2010 07:17:41 +0000 (09:17 +0200)
commitfa7d18ab3f2c1fc4a0481215057845055f6d08e6
treec9056471d3edf7eea0c665f0aaea10fbdda4e228
parent20ff466e61c4ad431b1405636c53470ac057a774
ALSA: usb-audio: automatically detect feedback format

There are two USB Audio Class specifications (v1 and v2), but neither of
them clearly defines the feedback format for high-speed UAC v1 devices.
Add to this whatever the Creative and M-Audio firmware writers have been
smoking, and it becomes impossible to predict the exact feedback format
used by a particular device.

Therefore, automatically detect the feedback format by looking at the
magnitude of the first received feedback value.

Also, this allows us to get rid of some special cases for E-Mu devices.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.h
sound/usb/pcm.c
sound/usb/proc.c
sound/usb/urb.c