From: Daniel Mack Date: Thu, 20 May 2010 12:15:04 +0000 (+0200) Subject: ALSA: usb/caiaq: fix Traktor Kontrol X1 ABS_HAT2X axis X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=57c7ffc9414d79c8ec25800bbdbf8f801b2f148a;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git ALSA: usb/caiaq: fix Traktor Kontrol X1 ABS_HAT2X axis Signed-off-by: Daniel Mack Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/caiaq/input.c b/sound/usb/caiaq/input.c index 8bbfbfd4c658..dcb620796d9e 100644 --- a/sound/usb/caiaq/input.c +++ b/sound/usb/caiaq/input.c @@ -171,7 +171,7 @@ static void snd_caiaq_input_read_analog(struct snd_usb_caiaqdev *dev, input_report_abs(input_dev, ABS_HAT0Y, (buf[4] << 8) | buf[5]); input_report_abs(input_dev, ABS_HAT1X, (buf[12] << 8) | buf[13]); input_report_abs(input_dev, ABS_HAT1Y, (buf[2] << 8) | buf[3]); - input_report_abs(input_dev, ABS_HAT2X, (buf[15] << 8) | buf[15]); + input_report_abs(input_dev, ABS_HAT2X, (buf[14] << 8) | buf[15]); input_report_abs(input_dev, ABS_HAT2Y, (buf[0] << 8) | buf[1]); input_report_abs(input_dev, ABS_HAT3X, (buf[10] << 8) | buf[11]); input_report_abs(input_dev, ABS_HAT3Y, (buf[6] << 8) | buf[7]);