]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: snd_usb_audio: fix SB Extigy IR Remote regression
authorPhillip Michael Jordan <phil@philjordan.eu>
Tue, 5 Aug 2008 09:01:00 +0000 (11:01 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 6 Aug 2008 13:40:19 +0000 (15:40 +0200)
commitdf17ac8a73642bbb2434cfb2df7870045e0eb8e8
tree050a0ba9c57a02723e900c26327e8d587da0c064
parent4ae08ef7eb56dacedb5b4e297d7c88c92e188988
ALSA: snd_usb_audio: fix SB Extigy IR Remote regression

The support for the SB Extigy's remote seems to be broken in all
recent ALSA versions, including 1.0.17. The driver detects the event
correctly, then submits a URB to query the RC code. On the Extigy, the
URB is submitted with a length of 2 bytes. My hardware, however, only
replies with 1 byte, containing the correct RC button code. The
current implementation discards this as being too short. (line 1784 of
usbmixer.c)

This patch specifies a "minimum packet length" in the remote control
configuration. I've left the values for the Audigy 2/Live! the same as
the packet length, as I'm assuming the existing code works with them.
(I don't have the hardware to confirm) This fixes the Extigy RC
support, e.g. for use with Lirc.

Signed-off-by: Phillip Michael Jordan <phil@philjordan.eu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/usb/usbmixer.c