diff options
| author | Prashanth K <[email protected]> | 2024-12-11 11:59:15 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-12-23 17:50:28 +0000 |
| commit | 057bd54dfcf68b1f67e6dfc32a47a72e12198495 (patch) | |
| tree | c09fafdf3fc52220451856d2bc42d304e8d09d27 /tools/net/ynl/pyynl/cli.py | |
| parent | usb: typec: tcpm/tcpci_maxim: fix error code in max_contaminant_read_resistan... (diff) | |
| download | kernel-057bd54dfcf68b1f67e6dfc32a47a72e12198495.tar.gz kernel-057bd54dfcf68b1f67e6dfc32a47a72e12198495.zip | |
usb: gadget: f_uac2: Fix incorrect setting of bNumEndpoints
Currently afunc_bind sets std_ac_if_desc.bNumEndpoints to 1 if
controls (mute/volume) are enabled. During next afunc_bind call,
bNumEndpoints would be unchanged and incorrectly set to 1 even
if the controls aren't enabled.
Fix this by resetting the value of bNumEndpoints to 0 on every
afunc_bind call.
Fixes: eaf6cbe09920 ("usb: gadget: f_uac2: add volume and mute support")
Cc: stable <[email protected]>
Signed-off-by: Prashanth K <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/net/ynl/pyynl/cli.py')
0 files changed, 0 insertions, 0 deletions
