Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372063
b: refs/heads/master
c: 4ca231b
h: refs/heads/master
i:
  372061: 471d5d0
  372059: 6a759d2
  372055: ee9a8e8
  372047: b65e3ed
  372031: 6290a07
v: v3
  • Loading branch information
Eldad Zack authored and Takashi Iwai committed Apr 30, 2013
1 parent e9b9a52 commit 33ce303
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 167d0a11d5feedd1f9cb9ae128ac543e97148eff
refs/heads/master: 4ca231b2e6ed171107c5b21f9e92d1965fd6fd9e
10 changes: 5 additions & 5 deletions trunk/sound/usb/caiaq/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,13 +488,13 @@ static void snd_usb_caiaq_maschine_dispatch(struct snd_usb_caiaqdev *cdev,
unsigned int len)
{
unsigned int i, pad_id;
uint16_t pressure;
__le16 *pressure = (__le16 *) buf;

for (i = 0; i < MASCHINE_PADS; i++) {
pressure = be16_to_cpu(buf[i * 2] << 8 | buf[(i * 2) + 1]);
pad_id = pressure >> 12;

input_report_abs(cdev->input_dev, MASCHINE_PAD(pad_id), pressure & 0xfff);
pad_id = le16_to_cpu(*pressure) >> 12;
input_report_abs(cdev->input_dev, MASCHINE_PAD(pad_id),
le16_to_cpu(*pressure) & 0xfff);
pressure++;
}

input_sync(cdev->input_dev);
Expand Down

0 comments on commit 33ce303

Please sign in to comment.