From: Takashi Iwai <tiwai@suse.de>
To: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
Cc: perex@perex.cz, tiwai@suse.de, linux-kernel@vger.kernel.org,
linux-sound@vger.kernel.org
Subject: Re: [PATCH] ALSA: pcm: Fix incorrect numerator selection in snd_interval_ratden()
Date: Fri, 20 Nov 2026 18:04:13 +0100 [thread overview]
Message-ID: <87a4n3wi2a.wl-tiwai@suse.de> (raw)
In-Reply-To: <20261120113632.2761-1-sreekuttan2156239@gmail.com>
On Fri, 20 Nov 2026 12:36:32 +0100,
Sreeraj S Kurup wrote:
>
> When the calculated numerator is smaller than num_min, the
> function incorrectly sets it to num_max instead of num_min.
>
> This can produce an invalid interval by making the calculated
> minimum numerator larger than the maximum numerator, even when
> a valid range exists.
>
> Set the numerator to num_min when it falls below the minimum
> allowed value. This allows the function to calculate the correct
> lower bound and prevents valid intervals from being rejected.
>
> Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
Applied to for-next branch. Thanks.
Takashi
prev parent reply other threads:[~2026-11-20 17:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 11:36 [PATCH] ALSA: pcm: Fix incorrect numerator selection in snd_interval_ratden() Sreeraj S Kurup
2026-11-20 17:04 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a4n3wi2a.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=sreekuttan2156239@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox