Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167509907
D59066.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
730 B
Referenced Files
None
Subscribers
None
D59066.diff
View Options
diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c
--- a/sys/dev/sound/usb/uaudio.c
+++ b/sys/dev/sound/usb/uaudio.c
@@ -5419,7 +5419,7 @@
uint8_t clockid, uint32_t speed)
{
struct usb_device_request req;
- uint8_t data[4];
+ uDWord data;
DPRINTFN(6, "ifaceno=%d clockid=%d speed=%u\n",
iface_no, clockid, speed);
@@ -5428,11 +5428,8 @@
req.bRequest = UA20_CS_CUR;
USETW2(req.wValue, UA20_CS_SAM_FREQ_CONTROL, 0);
USETW2(req.wIndex, clockid, iface_no);
- USETW(req.wLength, 4);
- data[0] = speed;
- data[1] = speed >> 8;
- data[2] = speed >> 16;
- data[3] = speed >> 24;
+ USETW(req.wLength, sizeof(data));
+ USETDW(data, speed);
return (usbd_do_request(udev, NULL, &req, data));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 23, 9:26 AM (21 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37076561
Default Alt Text
D59066.diff (730 B)
Attached To
Mode
D59066: snd_uaudio: Use uDWord for the UAC2 sample rate
Attached
Detach File
Event Timeline
Log In to Comment