sound: usb: mixer: increase control transfer timeout
PATCH 1/1 sound: usb: mixer: increase control transfer timeout
100ms might not be enough for slower devices. Increasing timeout to 1000ms doesn't seem like overkill.
---
Not sure this information is valid on a commit log, but I have a FPGA-platform which I use to test my USB controller and when that's running on FS, this message fails because control message times out before controller has the opportunity to complete all three phases of the SETUP transaction.
sound/usb/mixer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/usb/mixer.c +1 -1
@@ -296,7 +296,7 @@ static int get_ctl_value_v1(struct usb_mixer_elem_info *cval, int request, int vif (snd_usb_ctl_msg (chip->dev,usb_rcvctrlpipe (chip->dev,0 ), request,USB_RECIP_INTERFACE |USB_TYPE_CLASS |USB_DIR_IN , validx,snd_usb_ctrl_intf (chip) | (cval->id <<8 ), - buf, val_len,100 ) >= val_len) { + buf, val_len,1000 ) >= val_len) { *value_ret =convert_signed_value (cval,snd_usb_combine_bytes (buf, val_len));snd_usb_autosuspend (cval->mixer->chip);return 0 ;
Signature · 6 lines
1.7.6.396.ge0613 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · * Felipe Balbi | 2011-08-29 14:10:26 [+0300]:
Not sure this information is valid on a commit log, but I have a FPGA-platform which I use to test my USB controller and when that's running on FS, this message fails because control message times out before controller has the opportunity to complete all three phases of the SETUP transaction.
Does it still happen if you remove all the debug output from your udc driver?
Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi,
Quoted 10 lines · Sebastian Andrzej Siewior
Quoted 5 lines · * Felipe Balbi | 2011-08-29 14:10:26 [+0300]:
Not sure this information is valid on a commit log, but I have a FPGA-platform which I use to test my USB controller and when that's running on FS, this message fails because control message times out before controller has the opportunity to complete all three phases of the SETUP transaction.
Does it still happen if you remove all the debug output from your udc driver?
I can try it out, but what's the point ? If we don't increase the timeout, then whenever we want to debug some other problem, we will have to keep a local patch on that file ?
Signature · 1 line
balbi
sound/usb/mixer.c static int get_ctl_value_v1(struct usb_mixer_elem_info *cval, int request, int v · line 299
Quoted 11 lines · Felipe Balbi
100ms might not be enough for slower devices. Increasing timeout to 1000ms doesn't seem like overkill.
sound/usb/mixer.c +1
-1@@ -296,7 +296,7 @@ static int get_ctl_value_v1(struct usb_mixer_elem_info *cval, int request, int vif (snd_usb_ctl_msg (chip->dev,usb_rcvctrlpipe (chip->dev,0 ), request,USB_RECIP_INTERFACE |USB_TYPE_CLASS |USB_DIR_IN , validx,snd_usb_ctrl_intf (chip) | (cval->id <<8 ), - buf, val_len,100 ) >= val_len) { + buf, val_len,1000 ) >= val_len) {
If the timeout for reading values needs to be increased, writing (in snd_usb_mixer_set_ctl_value) probably needs some attention too.
Regards,
Clemens
Hi,
Quoted 4 lines · Clemens Ladisch
Quoted 3 lines · Felipe Balbi
100ms might not be enough for slower devices. Increasing timeout to 1000ms doesn't seem like overkill.
Quoted 11 lines
sound/usb/mixer.c static int get_ctl_value_v1(struct usb_mixer_elem_info *cval, int request, int v · line 299
Quoted 8 lines
sound/usb/mixer.c +1
-1@@ -296,7 +296,7 @@ static int get_ctl_value_v1(struct usb_mixer_elem_info *cval, int request, int vif (snd_usb_ctl_msg (chip->dev,usb_rcvctrlpipe (chip->dev,0 ), request,USB_RECIP_INTERFACE |USB_TYPE_CLASS |USB_DIR_IN , validx,snd_usb_ctrl_intf (chip) | (cval->id <<8 ), - buf, val_len,100 ) >= val_len) { + buf, val_len,1000 ) >= val_len) {If the timeout for reading values needs to be increased, writing (in
snd_usb_mixer_set_ctl_value) probably needs some attention too.
Ok, I'll increase all 100ms delays to 1000. Is that ok ?
Signature · 1 line
balbi
PATCH v2 1/1 sound: usb: mixer: increase control transfer timeout
100ms might not be enough for slower devices. Increasing timeout to 1000ms doesn't seem like overkill.
---
Changes since v1:
. Increase all 100ms timeout to 1000ms
sound/usb/mixer.c | 4 ++-- sound/usb/mixer_quirks.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-)
sound/usb/mixer.c +2 -2
@@ -296,7 +296,7 @@ static int get_ctl_value_v1(struct usb_mixer_elem_info *cval, int request, int vif (snd_usb_ctl_msg (chip->dev,usb_rcvctrlpipe (chip->dev,0 ), request,USB_RECIP_INTERFACE |USB_TYPE_CLASS |USB_DIR_IN , validx,snd_usb_ctrl_intf (chip) | (cval->id <<8 ), - buf, val_len,100 ) >= val_len) { + buf, val_len,1000 ) >= val_len) { *value_ret =convert_signed_value (cval,snd_usb_combine_bytes (buf, val_len));snd_usb_autosuspend (cval->mixer->chip);return 0 ;
@@ -445,7 +445,7 @@ int snd_usb_mixer_set_ctl_value(struct usb_mixer_elem_info *cval, usb_sndctrlpipe(chip->dev, 0), request, USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_OUT, validx, snd_usb_ctrl_intf(chip) | (cval->id << 8), - buf, val_len, 100) >= 0) { + buf, val_len, 1000) >= 0) {snd_usb_autosuspend (chip);return 0 ; }
sound/usb/mixer_quirks.c +5 -5
@@ -190,18 +190,18 @@ static int snd_audigy2nx_led_put(struct snd_kcontrol *kcontrol, struct snd_ctl_e err =snd_usb_ctl_msg (mixer->chip->dev,usb_sndctrlpipe (mixer->chip->dev,0 ),0x24 ,USB_DIR_OUT |USB_TYPE_VENDOR |USB_RECIP_OTHER , - !value,0 ,NULL ,0 ,100 ); + !value,0 ,NULL ,0 ,1000 );/* USB X-Fi S51 Pro */ if (mixer->chip->usb_id ==USB_ID (0x041e ,0x30df )) err =snd_usb_ctl_msg (mixer->chip->dev,usb_sndctrlpipe (mixer->chip->dev,0 ),0x24 ,USB_DIR_OUT |USB_TYPE_VENDOR |USB_RECIP_OTHER , - !value,0 ,NULL ,0 ,100 ); + !value,0 ,NULL ,0 ,1000 );else err =snd_usb_ctl_msg (mixer->chip->dev,usb_sndctrlpipe (mixer->chip->dev,0 ),0x24 ,USB_DIR_OUT |USB_TYPE_VENDOR |USB_RECIP_OTHER , - value, index +2 ,NULL ,0 ,100 ); + value, index +2 ,NULL ,0 ,1000 );if (err <0 )return err; mixer->audigy2nx_leds[index] = value;
@@ -299,7 +299,7 @@ static void snd_audigy2nx_proc_read(struct snd_info_entry *entry,usb_rcvctrlpipe (mixer->chip->dev,0 ),UAC_GET_MEM ,USB_DIR_IN |USB_TYPE_CLASS |USB_RECIP_INTERFACE ,0 , - jacks[i].unitid << 8, buf, 3, 100); + jacks[i].unitid << 8, buf, 3, 1000);if (err ==3 && (buf[0 ] ==3 || buf[0 ] ==6 ))snd_iprintf (buffer,"%02x %02x\n" , buf[1 ], buf[2 ]);else
@@ -332,7 +332,7 @@ static int snd_xonar_u1_switch_put(struct snd_kcontrol *kcontrol, err =snd_usb_ctl_msg (mixer->chip->dev,usb_sndctrlpipe (mixer->chip->dev,0 ),0x08 ,USB_DIR_OUT |USB_TYPE_VENDOR |USB_RECIP_OTHER , -50 ,0 , &new_status,1 ,100 ); +50 ,0 , &new_status,1 ,1000 );if (err <0 )return err; mixer->xonar_u1_status = new_status;
Signature · 1 line
1.7.6.396.ge0613
Quoted 71 lines · Felipe Balbi
100ms might not be enough for slower devices. Increasing timeout to 1000ms doesn't seem like overkill.
Signed-off-by Felipe Balbi <[email protected]>---
Changes since v1:
. Increase all 100ms timeout to 1000mssound/usb/mixer.c | 4 ++--
sound/usb/mixer_quirks.c | 10 +++++-----2 files changed, 7 insertions(+), 7 deletions(-)sound/usb/mixer.c +2
-2@@ -296,7 +296,7 @@ static int get_ctl_value_v1(struct usb_mixer_elem_info *cval, int request, int v if (snd_usb_ctl_msg(chip->dev, usb_rcvctrlpipe(chip->dev, 0), request, USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_IN, validx, snd_usb_ctrl_intf(chip) | (cval->id << 8), - buf, val_len, 100) >= val_len) { + buf, val_len, 1000) >= val_len) { *value_ret = convert_signed_value(cval, snd_usb_combine_bytes(buf, val_len)); snd_usb_autosuspend(cval->mixer->chip); return 0;@@ -445,7 +445,7 @@ int snd_usb_mixer_set_ctl_value(struct usb_mixer_elem_info *cval, usb_sndctrlpipe(chip->dev, 0), request, USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_OUT, validx, snd_usb_ctrl_intf(chip) | (cval->id << 8), - buf, val_len, 100) >= 0) { + buf, val_len, 1000) >= 0) { snd_usb_autosuspend(chip); return 0; }sound/usb/mixer_quirks.c +2
-2@@ -190,18 +190,18 @@ static int snd_audigy2nx_led_put(struct snd_kcontrol *kcontrol, struct snd_ctl_e err = snd_usb_ctl_msg(mixer->chip->dev, usb_sndctrlpipe(mixer->chip->dev, 0), 0x24, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_OTHER, - !value, 0, NULL, 0, 100); + !value, 0, NULL, 0, 1000); /* USB X-Fi S51 Pro */ if (mixer->chip->usb_id == USB_ID(0x041e, 0x30df)) err = snd_usb_ctl_msg(mixer->chip->dev, usb_sndctrlpipe(mixer->chip->dev, 0), 0x24, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_OTHER, - !value, 0, NULL, 0, 100); + !value, 0, NULL, 0, 1000);else
err = snd_usb_ctl_msg(mixer->chip->dev,usb_sndctrlpipe(mixer->chip->dev, 0),0x24,USB_DIR_OUT|USB_TYPE_VENDOR|USB_RECIP_OTHER,
- value, index + 2, NULL, 0, 100);
+ value, index + 2, NULL, 0, 1000); if (err < 0)
return err;
mixer->audigy2nx_leds[index] = value;sound/usb/mixer_quirks.c +0
-0@@ -299,7 +299,7 @@ static void snd_audigy2nx_proc_read(struct snd_info_entry *entry, usb_rcvctrlpipe(mixer->chip->dev, 0),UAC_GET_MEM,
USB_DIR_IN|USB_TYPE_CLASS|USB_RECIP_INTERFACE, 0,
- jacks[i].unitid << 8, buf, 3, 100);
+ jacks[i].unitid << 8, buf, 3, 1000); if (err == 3 && (buf[0] == 3 || buf[0] == 6))snd_iprintf(buffer, "%02x %02x\n", buf[1], buf[2]); else
sound/usb/mixer_quirks.c static int snd_xonar_u1_switch_put(struct snd_kcontrol *kcontrol, · line 335
Quoted 5 lines
sound/usb/mixer_quirks.c +1
-1@@ -332,7 +332,7 @@ static int snd_xonar_u1_switch_put(struct snd_kcontrol *kcontrol, err = snd_usb_ctl_msg(mixer->chip->dev, usb_sndctrlpipe(mixer->chip->dev, 0), 0x08, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_OTHER, - 50, 0, &new_status, 1, 100); + 50, 0, &new_status, 1, 1000);
How about also converting to use a local define for timeout value ?
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi,
Quoted 71 lines · Jassi Brar
Quoted 70 lines · Felipe Balbi
100ms might not be enough for slower devices. Increasing timeout to 1000ms doesn't seem like overkill.
Signed-off-by Felipe Balbi <[email protected]>---
Changes since v1:
. Increase all 100ms timeout to 1000mssound/usb/mixer.c | 4 ++--
sound/usb/mixer_quirks.c | 10 +++++-----2 files changed, 7 insertions(+), 7 deletions(-)sound/usb/mixer.c +2
-2@@ -296,7 +296,7 @@ static int get_ctl_value_v1(struct usb_mixer_elem_info *cval, int request, int v if (snd_usb_ctl_msg(chip->dev, usb_rcvctrlpipe(chip->dev, 0), request, USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_IN, validx, snd_usb_ctrl_intf(chip) | (cval->id << 8), - buf, val_len, 100) >= val_len) { + buf, val_len, 1000) >= val_len) { *value_ret = convert_signed_value(cval, snd_usb_combine_bytes(buf, val_len)); snd_usb_autosuspend(cval->mixer->chip); return 0;@@ -445,7 +445,7 @@ int snd_usb_mixer_set_ctl_value(struct usb_mixer_elem_info *cval, usb_sndctrlpipe(chip->dev, 0), request, USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_OUT, validx, snd_usb_ctrl_intf(chip) | (cval->id << 8), - buf, val_len, 100) >= 0) { + buf, val_len, 1000) >= 0) { snd_usb_autosuspend(chip); return 0; }sound/usb/mixer_quirks.c +2
-2@@ -190,18 +190,18 @@ static int snd_audigy2nx_led_put(struct snd_kcontrol *kcontrol, struct snd_ctl_e err = snd_usb_ctl_msg(mixer->chip->dev, usb_sndctrlpipe(mixer->chip->dev, 0), 0x24, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_OTHER, - !value, 0, NULL, 0, 100); + !value, 0, NULL, 0, 1000); /* USB X-Fi S51 Pro */ if (mixer->chip->usb_id == USB_ID(0x041e, 0x30df)) err = snd_usb_ctl_msg(mixer->chip->dev, usb_sndctrlpipe(mixer->chip->dev, 0), 0x24, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_OTHER, - !value, 0, NULL, 0, 100); + !value, 0, NULL, 0, 1000);else
err = snd_usb_ctl_msg(mixer->chip->dev,usb_sndctrlpipe(mixer->chip->dev, 0),0x24,USB_DIR_OUT|USB_TYPE_VENDOR|USB_RECIP_OTHER,
- value, index + 2, NULL, 0, 100);
+ value, index + 2, NULL, 0, 1000); if (err < 0)
return err;
mixer->audigy2nx_leds[index] = value;sound/usb/mixer_quirks.c +0
-0@@ -299,7 +299,7 @@ static void snd_audigy2nx_proc_read(struct snd_info_entry *entry, usb_rcvctrlpipe(mixer->chip->dev, 0),UAC_GET_MEM,
USB_DIR_IN|USB_TYPE_CLASS|USB_RECIP_INTERFACE, 0,
- jacks[i].unitid << 8, buf, 3, 100);
+ jacks[i].unitid << 8, buf, 3, 1000); if (err == 3 && (buf[0] == 3 || buf[0] == 6))snd_iprintf(buffer, "%02x %02x\n", buf[1], buf[2]); else
Quoted 8 lines
sound/usb/mixer_quirks.c static int snd_xonar_u1_switch_put(struct snd_kcontrol *kcontrol, · line 335
Quoted 6 lines
sound/usb/mixer_quirks.c +1
-1@@ -332,7 +332,7 @@ static int snd_xonar_u1_switch_put(struct snd_kcontrol *kcontrol, err = snd_usb_ctl_msg(mixer->chip->dev, usb_sndctrlpipe(mixer->chip->dev, 0), 0x08, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_OTHER, - 50, 0, &new_status, 1, 100); + 50, 0, &new_status, 1, 1000);How about also converting to use a local define for timeout value ?
should it be part of another patch ? The current code has no defines at all and $SUBJECT is just changing what's currently there to another value.
Signature · 1 line
balbi
Quoted 83 lines · Felipe Balbi
Hi,
Quoted 71 lines · Jassi Brar
Quoted 70 lines · Felipe Balbi
100ms might not be enough for slower devices. Increasing timeout to 1000ms doesn't seem like overkill.
Signed-off-by Felipe Balbi <[email protected]>---
Changes since v1:
. Increase all 100ms timeout to 1000mssound/usb/mixer.c | 4 ++--
sound/usb/mixer_quirks.c | 10 +++++-----2 files changed, 7 insertions(+), 7 deletions(-)sound/usb/mixer.c +2
-2@@ -296,7 +296,7 @@ static int get_ctl_value_v1(struct usb_mixer_elem_info *cval, int request, int v if (snd_usb_ctl_msg(chip->dev, usb_rcvctrlpipe(chip->dev, 0), request, USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_IN, validx, snd_usb_ctrl_intf(chip) | (cval->id << 8), - buf, val_len, 100) >= val_len) { + buf, val_len, 1000) >= val_len) { *value_ret = convert_signed_value(cval, snd_usb_combine_bytes(buf, val_len)); snd_usb_autosuspend(cval->mixer->chip); return 0;@@ -445,7 +445,7 @@ int snd_usb_mixer_set_ctl_value(struct usb_mixer_elem_info *cval, usb_sndctrlpipe(chip->dev, 0), request, USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_OUT, validx, snd_usb_ctrl_intf(chip) | (cval->id << 8), - buf, val_len, 100) >= 0) { + buf, val_len, 1000) >= 0) { snd_usb_autosuspend(chip); return 0; }sound/usb/mixer_quirks.c +2
-2@@ -190,18 +190,18 @@ static int snd_audigy2nx_led_put(struct snd_kcontrol *kcontrol, struct snd_ctl_e err = snd_usb_ctl_msg(mixer->chip->dev, usb_sndctrlpipe(mixer->chip->dev, 0), 0x24, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_OTHER, - !value, 0, NULL, 0, 100); + !value, 0, NULL, 0, 1000); /* USB X-Fi S51 Pro */ if (mixer->chip->usb_id == USB_ID(0x041e, 0x30df)) err = snd_usb_ctl_msg(mixer->chip->dev, usb_sndctrlpipe(mixer->chip->dev, 0), 0x24, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_OTHER, - !value, 0, NULL, 0, 100); + !value, 0, NULL, 0, 1000);else
err = snd_usb_ctl_msg(mixer->chip->dev,usb_sndctrlpipe(mixer->chip->dev, 0),0x24,USB_DIR_OUT|USB_TYPE_VENDOR|USB_RECIP_OTHER,
- value, index + 2, NULL, 0, 100);
+ value, index + 2, NULL, 0, 1000); if (err < 0)
return err;
mixer->audigy2nx_leds[index] = value;sound/usb/mixer_quirks.c +0
-0@@ -299,7 +299,7 @@ static void snd_audigy2nx_proc_read(struct snd_info_entry *entry, usb_rcvctrlpipe(mixer->chip->dev, 0),UAC_GET_MEM,
USB_DIR_IN|USB_TYPE_CLASS|USB_RECIP_INTERFACE, 0,
- jacks[i].unitid << 8, buf, 3, 100);
+ jacks[i].unitid << 8, buf, 3, 1000); if (err == 3 && (buf[0] == 3 || buf[0] == 6))snd_iprintf(buffer, "%02x %02x\n", buf[1], buf[2]); elseQuoted 8 lines
sound/usb/mixer_quirks.c static int snd_xonar_u1_switch_put(struct snd_kcontrol *kcontrol, · line 335
Quoted 6 lines
sound/usb/mixer_quirks.c +1
-1@@ -332,7 +332,7 @@ static int snd_xonar_u1_switch_put(struct snd_kcontrol *kcontrol, err = snd_usb_ctl_msg(mixer->chip->dev, usb_sndctrlpipe(mixer->chip->dev, 0), 0x08, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_OTHER, - 50, 0, &new_status, 1, 100); + 50, 0, &new_status, 1, 1000);How about also converting to use a local define for timeout value ?
Quoted 3 lines
should it be part of another patch ? The current code has no defines at all and $SUBJECT is just changing what's currently there to another value.
Can't speak for maintainers, but personally I'd prefer a single patch with two points in changelog. The change is trivial enough.
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 7 lines · Jassi Brar
Quoted 6 lines · Felipe Balbi
100ms might not be enough for slower devices. Increasing timeout to 1000ms doesn't seem like overkill.
Signed-off-by Felipe Balbi <[email protected]>---
Quoted 6 lines
Quoted 6 lines
Changes since v1:
. Increase all 100ms timeout to 1000mssound/usb/mixer.c | 4 ++-- sound/usb/mixer_quirks.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-)
The calls in mixer_quirks.c are device-specific and known to work, so none of them actually require a longer timeout. However, increasing their timeout doesn't hurt either, and ...
Quoted 9 lines
Review
Quoted 7 lines
(quoted diff) +7
-0+ buf, val_len, 1000) >= val_len) { + buf, val_len, 1000) >= 0) { + !value, 0, NULL, 0, 1000); + !value, 0, NULL, 0, 1000); + value, index + 2, NULL, 0, 1000); + jacks[i].unitid << 8, buf, 3, 1000); + 50, 0, &new_status, 1, 1000);How about also converting to use a local define for timeout value ?
... now that _all_ calls to snd_usb_ctl_msg use the same timeout value, we could just as well drop this parameter.
Regards,
Clemens
T24gTW9uLCBBdWcgMjksIDIwMTEgYXQgNzozNSBQTSwgQ2xlbWVucyBMYWRpc2NoIDxjbGVtZW5z QGxhZGlzY2guZGU+IHdyb3RlOgoKPj4gPiArIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKg IMKgIMKgIMKgIMKgIMKgIMKgIMKgIGJ1ZiwgdmFsX2xlbiwgMTAwMCkgPj0gdmFsX2xlbikgewo+ PiA+ICsgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAg YnVmLCB2YWxfbGVuLCAxMDAwKSA+PSAwKSB7Cj4+ID4gKyDCoCDCoCDCoCDCoCDCoCDCoCDCoCDC oCDCoCDCoCDCoCDCoCDCoCDCoCAhdmFsdWUsIDAsIE5VTEwsIDAsIDEwMDApOwo+PiA+ICsgwqAg wqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgIXZhbHVlLCAwLCBOVUxMLCAw LCAxMDAwKTsKPj4gPiArIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKg IHZhbHVlLCBpbmRleCArIDIsIE5VTEwsIDAsIDEwMDApOwo+PiA+ICsgwqAgwqAgwqAgwqAgwqAg wqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgamFja3NbaV0udW5pdGlkIDw8 IDgsIGJ1ZiwgMywgMTAwMCk7Cj4+ID4gKyDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDC oCDCoCDCoCDCoCA1MCwgMCwgJm5ld19zdGF0dXMsIDEsIDEwMDApOwo+Pgo+PiBIb3cgYWJvdXQg YWxzbyBjb252ZXJ0aW5nIHRvIHVzZSBhIGxvY2FsIGRlZmluZSBmb3IgdGltZW91dCB2YWx1ZSA/ Cj4KPiAuLi4gbm93IHRoYXQgX2FsbF8gY2FsbHMgdG8gc25kX3VzYl9jdGxfbXNnIHVzZSB0aGUg c2FtZSB0aW1lb3V0IHZhbHVlLAo+IHdlIGNvdWxkIGp1c3QgYXMgd2VsbCBkcm9wIHRoaXMgcGFy YW1ldGVyLgpTb3VuZHMgYmV0dGVyLCBlc3Agd2hlbiB3ZSBoYXZlIDkgYXJndW1lbnRzIHRvIHNu ZF91c2JfY3RsX21zZyEK
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
At Mon, 29 Aug 2011 19:52:09 +0530,
Quoted 11 lines · Jassi Brar
Quoted 8 lines · Clemens Ladisch
Quoted 8 lines
Quoted 7 lines
+ buf,
val_len, 1000) >=val_len) {
+ buf,val_len, 1000) >= 0) {
+ !value, 0, NULL, 0, 1000);
+ !value, 0, NULL, 0, 1000);
+ value, index + 2, NULL, 0, 1000);
+ jacks[i].unitid << 8, buf, 3, 1000);
+ 50, 0,&new_status, 1, 1000);
Quoted 5 lines
Quoted 4 lines
Quoted 1 line
How about also converting to use a local define for timeout value ?
... now that _all_ calls to
snd_usb_ctl_msguse the same timeout value, we could just as well drop this parameter.Sounds better, esp when we have 9 arguments to
snd_usb_ctl_msg!
Indeed, I'd like to see the reduced arguments, too.
thanks,
Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
At Mon, 29 Aug 2011 14:10:26 +0300,
Quoted 5 lines · Felipe Balbi
100ms might not be enough for slower devices. Increasing timeout to 1000ms doesn't seem like overkill.
Signed-off-by Felipe Balbi <[email protected]>
Felipe, what is the status of this patch?
Could you resend a revised patch?
thanks,
Takashi
Hi,
Quoted 10 lines · Takashi Iwai
At Mon, 29 Aug 2011 14:10:26 +0300,
Quoted 5 lines · Felipe Balbi
100ms might not be enough for slower devices. Increasing timeout to 1000ms doesn't seem like overkill.
Signed-off-by Felipe Balbi <[email protected]>Felipe, what is the status of this patch?
Could you resend a revised patch?
Someone else can take care of it. It was supposed to be a very simple patch and became something larger which I don't have enough time to handle right now.
Signature · 1 line
balbi
Quoted 5 lines · Felipe Balbi
Quoted 4 lines · Takashi Iwai
Quoted 3 lines · Felipe Balbi
100ms might not be enough for slower devices. Increasing timeout to 1000ms doesn't seem like overkill.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Felipe Balbi <[email protected]>Felipe, what is the status of this patch?
Could you resend a revised patch?Someone else can take care of it. It was supposed to be a very simple patch and became something larger which I don't have enough time to handle right now.
Done:
http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=14d1242f90e0
Regards,
Clemens