All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
Cc: perex@perex.cz, tiwai@suse.com, tiwai@suse.de,
	linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org
Subject: Re: [PATCH v2] ALSA: linear: Check frame count for all channels
Date: Thu, 05 Nov 2026 16:08:47 +0100	[thread overview]
Message-ID: <8733tfs4cg.wl-tiwai@suse.de> (raw)
In-Reply-To: <20261105142226.3079-1-sreekuttan2156239@gmail.com>

On Thu, 05 Nov 2026 15:22:26 +0100,
Sreeraj S Kurup wrote:
> 
> linear_transfer() checks the available frame count only for
> the first destination channel.
> 
> Check the available frame count of all source and destination
> channels before converting samples.
> 
> Use the smallest available frame count to make sure that
> conversion does not read or write beyond the channel buffers.
> 
> Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@gmail.com>

Well, the number of the processed frames must be identical for all
channels.  So this is superfluous.

Or, do you see any real case hitting this?


thanks,

Takashi

  reply	other threads:[~2026-11-05 15:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-05 14:22 [PATCH v2] ALSA: linear: Check frame count for all channels Sreeraj S Kurup
2026-11-05 15:08 ` Takashi Iwai [this message]
2026-11-06 12:37   ` Sreeraj S Kurup
2026-11-06 12:53     ` Takashi Iwai
2026-11-06 13:12       ` Sreeraj S Kurup

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=8733tfs4cg.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 \
    --cc=tiwai@suse.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 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.