aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorPavel Hofman <[email protected]>2022-01-21 16:53:07 +0100
committerGreg Kroah-Hartman <[email protected]>2022-01-26 14:06:09 +0100
commit7ff4a3b5489959a0256840a361b54d979b822535 (patch)
treebe6c7a996aca7c4798c7e360403f4e4e1abc144e /tools/perf/scripts/python/stackcollapse.py
parent62385cf158a7e65b5f347590521d02ee75dc8518 (diff)
usb: gadget: f_uac2: Add suspend callback
When USB cable gets disconnected, the undergoing playback/capture stalls, without any notification to u_audio about the change. Experiments with a dwc2 gadget revealed that Suspend interrupt is thrown at cable disconnection, which the gadget framework translates to calling suspend callback of a function, if it is defined. Add the suspend callback to f_uac2 function, calling corresponding method of u_audio in order to stop the respective PCM streams and to notify subscribed clients at cable disconnection. Signed-off-by: Pavel Hofman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions