ChangeSet 1.2181.4.85, 2005/03/28 12:35:42-08:00, [EMAIL PROTECTED]
[PATCH] sound/usbaudio: change parameters of snd_usb_ctl_msg() to msecs
Use milliseconds at the timeout parameter in the call to
snd_usb_ctl_msg(), a wrapper to usb_control_msg(), to match
the converted interface.
Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
sound/usb/usbaudio.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff -Nru a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c
--- a/sound/usb/usbaudio.c 2005-03-30 13:31:05 -08:00
+++ b/sound/usb/usbaudio.c 2005-03-30 13:31:05 -08:00
@@ -1141,7 +1141,7 @@
data[0] = 1;
if ((err = snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0),
SET_CUR,
USB_TYPE_CLASS|USB_RECIP_ENDPOINT|USB_DIR_OUT,
- PITCH_CONTROL << 8, ep, data, 1,
HZ)) < 0) {
+ PITCH_CONTROL << 8, ep, data, 1,
1000)) < 0) {
snd_printk(KERN_ERR "%d:%d:%d: cannot set enable
PITCH\n",
dev->devnum, iface, ep);
return err;
@@ -1167,14 +1167,14 @@
data[2] = rate >> 16;
if ((err = snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0),
SET_CUR,
USB_TYPE_CLASS|USB_RECIP_ENDPOINT|USB_DIR_OUT,
- SAMPLING_FREQ_CONTROL << 8, ep,
data, 3, HZ)) < 0) {
+ SAMPLING_FREQ_CONTROL << 8, ep,
data, 3, 1000)) < 0) {
snd_printk(KERN_ERR "%d:%d:%d: cannot set freq %d to ep
0x%x\n",
dev->devnum, iface, fmt->altsetting, rate,
ep);
return err;
}
if ((err = snd_usb_ctl_msg(dev, usb_rcvctrlpipe(dev, 0),
GET_CUR,
USB_TYPE_CLASS|USB_RECIP_ENDPOINT|USB_DIR_IN,
- SAMPLING_FREQ_CONTROL << 8, ep,
data, 3, HZ)) < 0) {
+ SAMPLING_FREQ_CONTROL << 8, ep,
data, 3, 1000)) < 0) {
snd_printk(KERN_WARNING "%d:%d:%d: cannot get freq at
ep 0x%x\n",
dev->devnum, iface, fmt->altsetting, ep);
return 0; /* some devices don't support reading */
@@ -2936,7 +2936,7 @@
snd_printdd("sending Extigy boot sequence...\n");
/* Send message to force it to reconnect with full interface. */
err = snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev,0),
- 0x10, 0x43, 0x0001, 0x000a, NULL, 0, HZ);
+ 0x10, 0x43, 0x0001, 0x000a, NULL, 0,
1000);
if (err < 0) snd_printdd("error sending boot message: %d\n",
err);
err = usb_get_descriptor(dev, USB_DT_DEVICE, 0,
&dev->descriptor, sizeof(dev->descriptor));
-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel