From patchwork Fri Dec 16 08:26:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Holmberg X-Patchwork-Id: 13074828 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8B7D7C4332F for ; Fri, 16 Dec 2022 08:27:17 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 82C39173D; Fri, 16 Dec 2022 09:26:24 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 82C39173D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1671179234; bh=zydTTqQ4+SLBBwo4sVJhl7ZG40+SC36k08EWeHOYlkw=; h=From:To:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=B/CKPXkcPPZQEUcmjGTNygASwznwbdVhiM4guoQ+CT2KpQWbc0JuVL5wxKTt/GpBP kt7WiInH+kWVPGTwY/zWF/YGq2lpzCENPIeMEf8Rk3jytNrZLQ1EgBmrlx9UTGNGGv kVaaUd7LTjNpp2M37AZh4b7AIFLZ5kVdPxhQ/prE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 44E22F804E0; Fri, 16 Dec 2022 09:26:23 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 43D12F804CB; Fri, 16 Dec 2022 09:26:22 +0100 (CET) Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 548E3F804CB for ; Fri, 16 Dec 2022 09:26:19 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 548E3F804CB Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=axis.com header.i=@axis.com header.a=rsa-sha256 header.s=axis-central1 header.b=pEMYZrKZ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1671179181; x=1702715181; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=uW0jnoDcdvYMUbyt9zm9YtjxeR1GwOdQOWBDidHKg50=; b=pEMYZrKZFyC1980+JeS2C4+Ud+X+EdYlPnKPX1TcVF7Pvs7OSTn8pKVx Ic0eIpQyG2twCM8EFirzpEUtuxnVcAC1kOtiK8wXySONLe9HaQSVES5AQ KrK6rtX21Q6DY4PPLh0VEfiBkHRAbfR9vZep5jpWP72hTKM0CyKOzcvhi x9LEW/L04hzR8UWaVpPRNRWtrwdj6oXFf07lh5aXXHSumq6ZQT2Uuv/T0 lisVOE8P6G6K8GQ5GlKfJzs9pD/DSjGuBti2kUVGEmLsYIcv+oEKmIOiW NWB1vLSMwluvyq2T3x/RTzQUkGb+PSh6lhD6IkjBfh5qjZJpp0i+4eL3i w==; From: Jonas Holmberg To: Subject: [PATCH] pcm: hw: Do not return error unless there is one Date: Fri, 16 Dec 2022 09:26:13 +0100 Message-ID: <20221216082613.2439067-1-jonashg@axis.com> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Add a line that was removed by mistake in commit 7f2d6c3aac3505ceee4b0d3e8b3ca423ce29b070. Signed-off-by: Jonas Holmberg --- 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; }