Skip to content

Prevent A4tech FHD 1080p webcams from being suspended automatically - #4283

Merged
pelwell merged 2 commits into
raspberrypi:rpi-5.10.yfrom
P33M:rpi-5.10.y
Apr 16, 2021
Merged

pelwell merged 2 commits into
raspberrypi:rpi-5.10.yfrom
P33M:rpi-5.10.y

Conversation

@P33M

@P33M P33M commented Apr 16, 2021

Copy link
Copy Markdown
Contributor

A variant of this camera has an annoying bug surrounding suspend/resume. These two commits fix it.

P33M added 2 commits April 15, 2021 13:18
These devices use a type of Sonix chipset that produces broken microphone
data if suspended/resumed.

They also don't support readback of the sample rate.

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
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>
@pelwell

pelwell commented Apr 16, 2021

Copy link
Copy Markdown
Contributor

To require one patch might be considered unfortunate, but two is... very unfortunate,

@pelwell
pelwell merged commit 6974247 into raspberrypi:rpi-5.10.y Apr 16, 2021
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Apr 19, 2021
kernel: Update Allo Piano Plus DAC driver
See: raspberrypi/linux#4258

kernel: sc16is7xx: Defer probe if device read fails
See: raspberrypi/linux#4272

kernel: Codec Fixes for the tlv320aic32x4 codec on 5.10
See: raspberrypi/linux#4273

kernel: HDR improvements
See: raspberrypi/linux#4268

kernel: staging: vcsm-cma: Fix memory leak from not detaching dmabuf
See: raspberrypi/linux#4277

kernel: vc4/kms: vc4_plane: Support 2020 colourspace for yuv planes
See: raspberrypi/linux#4276

kernel: Prevent A4tech FHD 1080p webcams from being suspended automatically
See: raspberrypi/linux#4283

kernel: overlays: ghost-amp: Add DAC mute control
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Apr 19, 2021
kernel: Update Allo Piano Plus DAC driver
See: raspberrypi/linux#4258

kernel: sc16is7xx: Defer probe if device read fails
See: raspberrypi/linux#4272

kernel: Codec Fixes for the tlv320aic32x4 codec on 5.10
See: raspberrypi/linux#4273

kernel: HDR improvements
See: raspberrypi/linux#4268

kernel: staging: vcsm-cma: Fix memory leak from not detaching dmabuf
See: raspberrypi/linux#4277

kernel: vc4/kms: vc4_plane: Support 2020 colourspace for yuv planes
See: raspberrypi/linux#4276

kernel: Prevent A4tech FHD 1080p webcams from being suspended automatically
See: raspberrypi/linux#4283

kernel: overlays: ghost-amp: Add DAC mute control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants