Bluetooth: btusb: add sysfs attribute to control USB alt setting
authorYing Hsu <yinghsu@chromium.org>
Fri, 13 Dec 2024 04:04:22 +0000 (12:04 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 15 Jan 2025 15:32:57 +0000 (10:32 -0500)
commitb16b327edb4d030fb4c8fe38c7d299074d47ee3f
tree5947e04340ea70f6abec03b1d1fa4b96bf5dd31b
parenta6587d7ed2cd8341f8a92112ac772f2c44f09824
Bluetooth: btusb: add sysfs attribute to control USB alt setting

When a Bluetooth raw socket is open, the HCI event related to SCO
connection changes are not dispatched to the hci_event module, and
the underlying Bluetooth controller's USB Interface 1 will not be
updated accordingly.

This patch adds `isoc_alt` sysfs attribute, allowing user space
to update the alternate setting of the USB interface alternate
setting as needed.

Signed-off-by: Ying Hsu <yinghsu@chromium.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btusb.c