summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorPrashanth K <quic_prashk@quicinc.com>2024-12-11 17:29:15 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-23 18:50:28 +0100
commit057bd54dfcf68b1f67e6dfc32a47a72e12198495 (patch)
treec09fafdf3fc52220451856d2bc42d304e8d09d27 /tools/perf/scripts/python/check-perf-trace.py
parentb9711ff7cde0cfbcdd44cb1fac55b6eec496e690 (diff)
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 <stable@kernel.org> Signed-off-by: Prashanth K <quic_prashk@quicinc.com> Link: https://lore.kernel.org/r/20241211115915.159864-1-quic_prashk@quicinc.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions