Skip to content

Commit

Permalink
pcm: hw - fix return code checking in snd_pcm_hw_hw_refine
Browse files Browse the repository at this point in the history
The isse was introduced in commit 7f2d6c3

Fixes: 7f2d6c3 ("pcm: hw: change rate range syntax")
Fixes: #271
Fixes: #293
Signed-off-by: Gunnar Dibbern <gunnar.dibbern@lht.dlh.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
gdibbern authored and perexg committed Jan 29, 2023
1 parent e11ea20 commit 2f9bbef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pcm/pcm_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2f9bbef

Please sign in to comment.