diff options
author | Gunnar Dibbern <gunnar.dibbern@lht.dlh.de> | 2023-01-19 16:32:42 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2023-01-29 18:58:51 +0100 |
commit | 2f9bbefb8d2a9766810eee3a80bdce4ec813f45a (patch) | |
tree | 2f49803caa127861c5b427a595128de7c6f162c1 | |
parent | e11ea20645b46d88c3de6d995512e67143bd7f4e (diff) | |
download | alsa-lib-2f9bbefb8d2a9766810eee3a80bdce4ec813f45a.tar.gz |
pcm: hw - fix return code checking in snd_pcm_hw_hw_refine
The isse was introduced in commit 7f2d6c3
Fixes: 7f2d6c3a ("pcm: hw: change rate range syntax")
Fixes: https://github.com/alsa-project/alsa-lib/issues/271
Fixes: https://github.com/alsa-project/alsa-lib/pull/293
Signed-off-by: Gunnar Dibbern <gunnar.dibbern@lht.dlh.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r-- | src/pcm/pcm_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm/pcm_hw.c b/src/pcm/pcm_hw.c index 0588ce5e..daa3e1ff 100644 --- a/src/pcm/pcm_hw.c +++ b/src/pcm/pcm_hw.c @@ -356,7 +356,7 @@ static int snd_pcm_hw_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) if (hw->rates.min > 0) { err = _snd_pcm_hw_param_set_minmax(params, SND_PCM_HW_PARAM_RATE, hw->rates.min, 0, hw->rates.max + 1, -1); - + if (err < 0) return err; } |