From 8bcb7ba6265adaa9289aa3512a69bd9f3a6ed0c8 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 5 Aug 2022 10:49:35 +0200 Subject: [PATCH] remove redundant snd_pcm_hw_params_any() call we just called it (and even error-checked it) a few lines above. --- alsaaudio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/alsaaudio.c b/alsaaudio.c index 633ddd8..e74319f 100644 --- a/alsaaudio.c +++ b/alsaaudio.c @@ -409,7 +409,6 @@ static int alsapcm_setup(alsapcm_t *self) We don't care if any of this fails - we'll read the actual values back out. */ - snd_pcm_hw_params_any(self->handle, hwparams); snd_pcm_hw_params_set_access(self->handle, hwparams, SND_PCM_ACCESS_RW_INTERLEAVED); snd_pcm_hw_params_set_format(self->handle, hwparams, self->format);