Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353904
b: refs/heads/master
c: a376290
h: refs/heads/master
v: v3
  • Loading branch information
Laurent Navet authored and Greg Kroah-Hartman committed Jan 7, 2013
1 parent 3a30d7b commit 90c0f36
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 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: b466eb5e22acca73fe6c287646139b4d139bd26a
refs/heads/master: a37629024975714f1e2fa9851b7f77cd1bad0790
30 changes: 18 additions & 12 deletions trunk/drivers/staging/line6/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ static ssize_t pcm_set_impulse_volume(struct device *dev,
{
struct snd_line6_pcm *line6pcm = dev2pcm(dev);
int value;
int rv;
int ret;

rv = kstrtoint(buf, 10, &value);
if (rv < 0)
return rv;
ret = kstrtoint(buf, 10, &value);
if (ret < 0)
return ret;

line6pcm->impulse_volume = value;

Expand Down Expand Up @@ -81,7 +81,14 @@ static ssize_t pcm_set_impulse_period(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{
dev2pcm(dev)->impulse_period = simple_strtoul(buf, NULL, 10);
int value;
int ret;

ret = kstrtoint(buf, 10, &value);
if (ret < 0)
return ret;

dev2pcm(dev)->impulse_period = value;
return count;
}

Expand Down Expand Up @@ -455,13 +462,12 @@ int line6_init_pcm(struct usb_line6 *line6,
ep_write = 0x01;
break;

/* this is for interface_number == 1:
case LINE6_DEVID_TONEPORT_UX2:
case LINE6_DEVID_PODSTUDIO_UX2:
ep_read = 0x87;
ep_write = 0x00;
break;
*/
/* this is for interface_number == 1:
case LINE6_DEVID_TONEPORT_UX2:
case LINE6_DEVID_PODSTUDIO_UX2:
ep_read = 0x87;
ep_write = 0x00;
break; */

default:
MISSING_CASE;
Expand Down

0 comments on commit 90c0f36

Please sign in to comment.