All of lore.kernel.org
 help / color / mirror / Atom feed
From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: Rafael Diniz <rafael@riseup.net>
Cc: Mark Brown <broonie@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	patches@opensource.cirrus.com, linux-sound@vger.kernel.org
Subject: Re: [PATCH v3 2/2] ASoC: wm8731: use one sample width for both directions
Date: Mon, 30 Nov 2026 10:03:36 +0000	[thread overview]
Message-ID: <aw1J+Einw64NCTvZ@opensource.cirrus.com> (raw)
In-Reply-To: <20261128092306.1566199-3-rafael@riseup.net>

On Sat, Nov 28, 2026 at 09:23:05AM +0000, Rafael Diniz wrote:
> Playback and capture share one interface format register (IFACE), whose
> IWL field sets the word length for both directions, as SRATE sets one
> sample rate for both.  symmetric_rate already makes a second stream use
> the rate of the running one, but a second stream at a different width
> rewrites IWL under the running stream, which then carries samples of the
> wrong length.
> 
> Set symmetric_sample_bits, so the second stream gets the width of the
> running one.  Its hw_params then writes back the values already there;
> rewriting SRATE and IFACE with their values under an active interface
> stayed healthy in 12 of 12 trials on the hardware below.
> 
> Tested on a Raspberry Pi 4 with the AudioInjector stereo card, 6.18.60
> (Raspberry Pi kernel, where the driver is the same as here): with a
> 32-bit capture stream running, a 16-bit playback stream is refused as a
> format not available, and the register trace shows no write to IFACE.
> Built with W=1 on mainline.
> 
> This patch and its changelog were written with Claude Code (Claude Opus
> 5.5) following the review of v2.
> 
> Signed-off-by: Rafael Diniz <rafael@riseup.net>
> ---

Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>

Thanks,
Charles

  reply	other threads:[~2026-11-30 10:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28  9:23 [PATCH v3 0/2] ASoC: wm8731: interface activation order Rafael Diniz
2026-11-28  9:23 ` [PATCH v3 1/2] ASoC: wm8731: activate the interface after the converters, before the outputs Rafael Diniz
2026-11-30 10:28   ` Charles Keepax
2026-11-30 19:37     ` Rafael Diniz
2026-11-30 16:54   ` Mark Brown
2026-11-30 17:14     ` Charles Keepax
2026-11-30 17:26       ` Mark Brown
2026-11-30 17:37         ` Charles Keepax
2026-11-30 19:37           ` Rafael Diniz
2026-11-28  9:23 ` [PATCH v3 2/2] ASoC: wm8731: use one sample width for both directions Rafael Diniz
2026-11-30 10:03   ` Charles Keepax [this message]
2026-11-30 16:58 ` (subset) [PATCH v3 0/2] ASoC: wm8731: interface activation order Mark Brown

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=aw1J+Einw64NCTvZ@opensource.cirrus.com \
    --to=ckeepax@opensource.cirrus.com \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-sound@vger.kernel.org \
    --cc=patches@opensource.cirrus.com \
    --cc=perex@perex.cz \
    --cc=rafael@riseup.net \
    --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.