sound/usb: call usb_autopm_get_interface() for devices that should not
authorJonathan Bell <jonathan@raspberrypi.com>
Wed, 15 Sep 2021 16:56:45 +0000 (17:56 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:21 +0000 (16:04 +0000)
commit75bc2dd40d86ca2d8e647a907080009943805cf2
treeba6ab88ed6b400c11ef500f4464dd961f90b7970
parent00a2f1b348f4fb6ba5532bdb8c0ea81bba52ee61
sound/usb: call usb_autopm_get_interface() for devices that should not
be suspended

Webcams with microphones are composite devices, and autosuspend is set
at the device level. If uvcvideo is probed after snd-usb-audio, the effect
of the quirk applied by snd-usb-audio is undone by uvcvideo's global
application of autosuspend.

Incrementing the interface's PM refcount in such cases prevents runtime PM
from happening, thus the device is left active.

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
sound/usb/card.c