All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pcm: hw: fix rate regression
@ 2023-01-27 15:21 Jonas Holmberg
  0 siblings, 0 replies; only message in thread
From: Jonas Holmberg @ 2023-01-27 15:21 UTC (permalink / raw)
  To: alsa-devel

Add a line that seems to have been removed by mistake in commit
7f2d6c3aac3505ceee4b0d3e8b3ca423ce29b070.

Signed-off-by: Jonas Holmberg <jonashg@axis.com>
---
 src/pcm/pcm_hw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 	}
 
-- 
2.39.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-27 15:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-27 15:21 [PATCH] pcm: hw: fix rate regression Jonas Holmberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.