Skip to contentSkip to conversation

sound/usbmixer: change parameters of usb_{control,bulk}_msg() to msecs

PATCH New Nishanth Aravamudan 1 participant 1 message Feb 9, 2005 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 55/63 sound/usbmixer: change parameters of usb_{control,bulk}_msg() to msecs

Hi,

Description: Change units of parameters being passed to usb_{control,bulk}_msg() to milliseconds. Patch is compile-tested.

sound/usb/usbmixer.c +2 -2
@@ -305,7 +305,7 @@ static int get_ctl_value(usb_mixer_elem_
 				    request,
 				    USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_IN,
 				    validx, cval->ctrlif | (cval->id << 8),
-				    buf, val_len, HZ / 10) >= 0) {
+				    buf, val_len, 100) >= 0) {
 			*value_ret = convert_signed_value(cval, snd_usb_combine_bytes(buf, val_len));
 			return 0;
 		}
@@ -343,7 +343,7 @@ static int set_ctl_value(usb_mixer_elem_
 				    request,
 				    USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_OUT,
 				    validx, cval->ctrlif | (cval->id << 8),
-				    buf, val_len, HZ / 10) >= 0)
+				    buf, val_len, 100) >= 0)
 			return 0;
 	snd_printdd(KERN_ERR "cannot set ctl value: req = 0x%x, wValue = 0x%x, wIndex = 0x%x, type = %d, data = 0x%x/0x%x\n", request, validx, cval->ctrlif | (cval->id << 8), cval->val_type, buf[0], buf[1]);
 	return -EINVAL;

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click