From: Takashi Iwai <tiwai@suse.de>
To: Christian Zigotzky <chzigotzky@xenosoft.de>
Cc: Takashi Iwai <tiwai@suse.de>,
zzzccc427@gmail.com, perex@perex.cz, linux-sound@vger.kernel.org,
linuxppc-dev <linuxppc-dev@lists.ozlabs.org>,
"R.T.Dickinson" <rtd2@xtra.co.nz>,
mad skateman <madskateman@gmail.com>,
Damien Stewart <hypexed@yahoo.com.au>,
Christian Zigotzky <info@xenosoft.de>
Subject: Re: Void PPC: PulseAudio issue with sound updates 7.4-rc1
Date: Tue, 03 Nov 2026 08:44:37 +0100 [thread overview]
Message-ID: <874idy2wbe.wl-tiwai@suse.de> (raw)
In-Reply-To: <DFCEA32C-0340-46B0-BADF-839E8C675FE9@xenosoft.de>
On Tue, 03 Nov 2026 08:34:52 +0100,
Christian Zigotzky wrote:
>
> On 01 November 2026 at 04:26 pm, Takashi Iwai <tiwai@suse.de> wrote:
>
> Hm, could you verify whether the below oneliner recovers from your
> problem or not?
>
> -- 8< --
> --- a/sound/core/pcm_native.c
> +++ b/sound/core/pcm_native.c
> @@ -965,7 +965,8 @@ static int snd_pcm_hw_refine_user(struct snd_pcm_substream *substream,
> if (IS_ERR(params))
> return PTR_ERR(params);
>
> - err = snd_pcm_hw_refine_with_lock(substream, params);
> + //err = snd_pcm_hw_refine_with_lock(substream, params);
> + err = snd_pcm_hw_refine(substream, params);
> if (err < 0)
> return err;
>
> -- 8< --
>
> If this works, clear this change again, and figure out which check in
> snd_pcm_hw_refine_with_lock() gives the error. The function has three
> preliminary checks: PCM_RUNTIME_CHECK(), snd_pcm_buffer_access_lock()
> (& unlock()), and hw_parms_state_check. The first one must be
> harmless, and the real problem must be either
> snd_pcm_buffer_access_lock() or hw_params_state_check().
>
> ```
> static int snd_pcm_hw_refine_with_lock(struct snd_pcm_substream *substream,
> struct snd_pcm_hw_params *params)
> {
> struct snd_pcm_runtime *runtime;
> int err;
>
> if (PCM_RUNTIME_CHECK(substream))
> return -ENXIO;
> runtime = substream->runtime;
> err = snd_pcm_buffer_access_lock(runtime);
> if (err < 0)
> return err;
> err = hw_params_state_check(substream);
> if (err)
> goto unlock;
>
> err = snd_pcm_hw_refine(substream, params);
>
> unlock:
> snd_pcm_buffer_access_unlock(runtime);
> return err;
> }
> ```
>
> OTOH, if the oneliner above doesn't change the behavior, something
> else overlooked obviously.
>
> Oh wait, it might be the 32bit compat path? If so, the call at
> snd_pcm_ioctl_hw_params_compat() needs to be tested, instead.
>
>
> thanks,
>
> Takashi
>
>
> - - -
>
> Hi Takashi,
>
> Thank you for your patch.
>
> I tested your patch today but unfortunately it doesn’t solve the issue with PulseAudio on Void PPC.
Have you tried changing the call of snd_pcm_hw_refine_with_lock() in
snd_pcm_ioctl_hw_params_compat(), too? Or check the call in
snd_pcm_hw_refine_old_user(), too.
If it doesn't change even if you replace all callers of
snd_pcm_hw_refine_with_lock() with snd_pcm_hw_refine(), something
wrong in the test itself.
Takashi
next prev parent reply other threads:[~2026-11-03 7:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-01 9:15 Void PPC: PulseAudio issue with sound updates 7.4-rc1 Christian Zigotzky
2026-11-01 14:53 ` Christian Zigotzky
2026-11-01 15:26 ` Takashi Iwai
2026-11-03 7:34 ` Christian Zigotzky
2026-11-03 7:44 ` Takashi Iwai [this message]
2026-11-03 12:00 ` Christian Zigotzky
2026-11-03 14:38 ` Takashi Iwai
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=874idy2wbe.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=chzigotzky@xenosoft.de \
--cc=hypexed@yahoo.com.au \
--cc=info@xenosoft.de \
--cc=linux-sound@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=madskateman@gmail.com \
--cc=perex@perex.cz \
--cc=rtd2@xtra.co.nz \
--cc=zzzccc427@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