]> bbs.cooldavid.org Git - net-next-2.6.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)
commit89e1e66d6be8a520cdcd26043cda2cc870a34015
treec9056471d3edf7eea0c665f0aaea10fbdda4e228
parent0d040df9984c8fcb6a777a8f6d5dc513eaefd2de
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