From nobody Fri Aug 21 14:02:28 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hRMSh5xvzz6qR9D for ; Fri, 21 Aug 2026 14:02:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hRMSh5Hdzz3W7g for ; Fri, 21 Aug 2026 14:02:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787320948; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1x+Kx28Nwq3d4+UwyrULRsQp36ft0IvL2zK8wHoATiI=; b=hedKByKA+L98dg8KSROLeexmxS+lRnoXzIE0UUuSPs7sWlmBcNIUxPv2c2rypdX+gOWx88 BND+7d6p0dLeGDnkbr5S5SJD857TMg+iVYqvbvpeqn8B0Q1X1OmBO9EFSNPFalVDDUXzmj Og+E9169XMw06Kb5XpwlLRxb3F5q8inTwCC6zbrf0VrHOZDwNWUs+wd6IiN609/Lq3T5Jg Ne2J4PLXCoRpZz2sFanTYgEVa2UFXbsQybUexrN37bZGSYfZ+djFmwF4UaYB2lShJ9xLRH TVEieLmeUzJMavtdSuq9jDJ490JHItgO+Wyo3GLxgQxO+GZ9j/fvrNFrNqDsWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1787320948; a=rsa-sha256; cv=none; b=cRd5Wob2f4CRy3gUdAgcwZ2m0I5K+U1DLpBSt2sKF5n3lsjU6e5sIaZAajKQjxe/h18WiK anI+wlzY78YcKtpgVadK804v/53tBDVGIRgopZ/fyeHYz1mbsCFU7LuHyLc0V2cumT06tq GkiE26nVHGDE8iS9G4KsrT3h9ZqLo3NNpHLVKHp7K2FQcAl0vf6QcU/+P8R+JfzC2WazGb rDTjNtq7kLyy7T0x9ZgY85ZH95WQp83jIyhFiSOMoPKtreYml2tMFlNSRa4ugBCMg+BfCh GNa8/uPDiPX7ucmcX17pxLYC+KLbkHD/O6NKl8Lrwa4/Duu28HrdovZ+ciBK6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787320948; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1x+Kx28Nwq3d4+UwyrULRsQp36ft0IvL2zK8wHoATiI=; b=oCL0WQ3hNvQxwAZKl+gn5CI9KHE3boUUImsHfhL338gsBbtfYiOemPdut2gIMmY0RfNM3m czrFz0w88J50VHntP0l9M+APPC4FvtlKCLsw7+bEgIOsh0rGr7MQn/ShbRawYXkQvNFv6M F+SZ7Hh7oK/oWKQWtvivydK60New2VozDVt39q/fB958eG8BSHcrvw+ovYbKI0PfedIw15 sPfHy70DMTADTIjCpbZ39+eCF72f4pnAcgjgNY5LNVxmVxHRE1gCKkqWeO2n1YQeCm2m4a Dfcm5ognx8s8ZFxIpA8+q3LIUio12oh+JiSIjcI6aZzuJcPbt+GgRkp3yR7pIA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hRMSh40F3z15qv for ; Fri, 21 Aug 2026 14:02:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 30672 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 21 Aug 2026 14:02:28 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 5c3bc8ab427c - main - snd_uaudio: Use uDWord for the UAC2 sample rate List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5c3bc8ab427c8624b29cd9ac9265445002da3ba8 Auto-Submitted: auto-generated Date: Fri, 21 Aug 2026 14:02:28 +0000 Message-Id: <6a885a74.30672.3442ace@gitrepo.freebsd.org> The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=5c3bc8ab427c8624b29cd9ac9265445002da3ba8 commit 5c3bc8ab427c8624b29cd9ac9265445002da3ba8 Author: Christos Margiolis AuthorDate: 2026-08-21 14:02:19 +0000 Commit: Christos Margiolis CommitDate: 2026-08-21 14:02:19 +0000 snd_uaudio: Use uDWord for the UAC2 sample rate uaudio20_set_speed() split the sample rate into bytes by hand. Use uDWord and USETDW() instead. No functional change intended. Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D59066 --- sys/dev/sound/usb/uaudio.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c index 7c01051b7af1..f12fc1ede541 100644 --- a/sys/dev/sound/usb/uaudio.c +++ b/sys/dev/sound/usb/uaudio.c @@ -5419,7 +5419,7 @@ uaudio20_set_speed(struct usb_device *udev, uint8_t iface_no, 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 @@ uaudio20_set_speed(struct usb_device *udev, uint8_t iface_no, 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)); }