Skip to content

alsa: Skip resume PCM if hardware doesn't support it

Kai-Heng Feng requested to merge khfeng/pulseaudio:pcm-hw-resume into master

Hardwares without SNDRV_PCM_INFO_RESUME capability, like USB Audio, don't support snd_pcm_resume() when it's in suspended state.

Let's use snd_pcm_hw_params_can_resume() to check hardware's capability before snd_pcm_resume() attempt. If it doesn't support resume, just go to snd_pcm_drop() to leave suspended state directly.

Merge request reports