Re: [PATCH] alsa: remove existing hardware config before setting a new one

From: Alexandre Ratchov <alex_at_caoua.org>
Date: Mon, 1 Mar 2021 09:14:52 +0100
On Fri, Feb 26, 2021 at 03:20:19PM -0800, Michael Forney wrote:
> In Linux 5.11, a behavior change for USB audio devices was introduced[0]
> that prevents changing parameters such as sample rate or period
> size once they are initially set without a snd_pcm_hw_free in
> between. This causes sndio to get forced to 48000 Hz and and a
> period size of 4800, since those are the parameters set during
> sio_open.
> 
> To fix this, call snd_pcm_hw_free at the start of sio_alsa_setpar_hw
> to remove any previous configuration before setting a new one.
> 
> [0] https://bugzilla.kernel.org/show_bug.cgi?id=211941

Thanks, commited.
Received on Mon Mar 01 2021 - 09:14:52 CET

This archive was generated by hypermail 2.3.0 : Tue Mar 02 2021 - 01:34:00 CET