remove redundant snd_pcm_hw_params_any() call

we just called it (and even error-checked it) a few lines above.
This commit is contained in:
Oswald Buddenhagen
2022-08-05 10:49:35 +02:00
parent 9dc0fc2fd3
commit 8bcb7ba626

View File

@@ -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);