From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21065606A324 for ; Sun, 1 Nov 2026 15:26:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=yY5UnKxX; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=jslx2/5K; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=i/aA+Yda; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=KjiDr2qL Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4jHdwn49XBz2xWt; Mon, 02 Nov 2026 02:26:49 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1793546809; cv=none; b=WKrrH1wDJxsVYR49zV5pPu1ifHqO6iSGueqNCEAgXaTP5FASSebgV5Pr8FMFwNt+jDUzhGaLYK0IWRpNseGWtdKqPoVmhnIJOr9ISLdkX/5LBN+zDoAxlKxfC6FxQMlHOqeOHRLHP1U6lERbvrH1KM5WLpc/k2aiMUia5PiBYEqERVCpaHFGXxxJnE/ARjkjuXRMwrFNMAYEru+EMMtRg8smTRd/VUhmEHzbkxRS9eoAzlMm/U70Hizmtkp6dtrZ+38L69FNrOvcokkbolbYERFE7WyAr6PLyUb2R0KjB6Gt/q6EqljuryJbf9flC+SX1OeBwtsT9EsihPmC0tEtJQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1793546809; c=relaxed/relaxed; bh=52jKgimrTd84xrYvjSddWThDrxhhsE9FTwPIYU9rfvE=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=JJCMqQE09yK8ndsVjlzyhIX4CzZYLWBqfXAEi1yVs40kQjeCzwYLjgsPsD+epBJV64/BkzHlm1PD7iozCB9Rg9ZMJK20XrG38RPMr9fDOFyuQ/38xDCQ10JjNPJueHJklUifWaT4Du4p5id6P8dnfKwGJ/ulH6ZvbFMvraSJTppN5J9ZMzsPHGKOBI5XC0vOaKx3teYZNgQG9YnXQx0oImseA69ySVu8gyixVuD6PzeZtqu9PG+76wKN4rJ0VZppSrtDw6V+Emcg+2BuKWswn8SeqO0unEjRRkVm5xsULlbj9ru2zOsJvuPceODpVGqx4qTYLPs/L60btIIQHn2ptA== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=suse.de; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=yY5UnKxX; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=jslx2/5K; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=i/aA+Yda; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=KjiDr2qL; dkim-atps=neutral; spf=pass (client-ip=195.135.223.131; helo=smtp-out2.suse.de; envelope-from=tiwai@suse.de; receiver=lists.ozlabs.org) smtp.mailfrom=suse.de Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=yY5UnKxX; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=jslx2/5K; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=i/aA+Yda; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=KjiDr2qL; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=suse.de (client-ip=195.135.223.131; helo=smtp-out2.suse.de; envelope-from=tiwai@suse.de; receiver=lists.ozlabs.org) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4jHdwh3Cq4z2x9c for ; Mon, 02 Nov 2026 02:26:44 +1100 (AEDT) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id ED8161F7B0; Sun, 1 Nov 2026 15:26:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1793546799; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=52jKgimrTd84xrYvjSddWThDrxhhsE9FTwPIYU9rfvE=; b=yY5UnKxX91NPGrYZXcJIJIXlE2YVJhDf9mEKWjtGe2tt1v9bUDUB15xagFVP29ljvkO5Gf wDiE27tw0W0wvYebqJdSeziEpDASNjf/pnlpKYv3FMBU7GJSOeRdxytporEPdOz4WL32f4 B9wU0DAalfHbgcY918QTI7L2cAQi3WE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1793546799; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=52jKgimrTd84xrYvjSddWThDrxhhsE9FTwPIYU9rfvE=; b=jslx2/5Kq51FsKVXid6+Sb7v3YqH1RgnaBqTzxZAo3gRwU73+tpz7/TTMXEiuNPu1aYc77 52cKpcdy8849itCw== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b="i/aA+Yda"; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=KjiDr2qL DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1793546798; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=52jKgimrTd84xrYvjSddWThDrxhhsE9FTwPIYU9rfvE=; b=i/aA+YdawaYD9yCnazbbQaseQ5M/WIoi0t/adzbs3RkFMqCPZmpDq1I/NVEKj5Tq5NHrF9 qoiMEj6T0pBu0q42AsSZ7Ins9I9yexnEFGJWeME4H3WZYdLmGMXYYbfyd5vuUFTpjEd2yl neVnXdd3Rqq8zyQTKlihPdN84n1Ee2g= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1793546798; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=52jKgimrTd84xrYvjSddWThDrxhhsE9FTwPIYU9rfvE=; b=KjiDr2qLJbR7mqEGBmkGlEJbH/nS69sA72F9Jxm6KhHB+M5WtRmBYnTFCUmjYSB5KJ9JiA DCVQy9cjduXMB6BA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 589C7134B3; Sun, 1 Nov 2026 15:26:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id H366Ci1a52qrKAAAD6G6ig (envelope-from ); Sun, 01 Nov 2026 15:26:37 +0000 Date: Sun, 01 Nov 2026 16:26:36 +0100 Message-ID: <87mrrspo7n.wl-tiwai@suse.de> From: Takashi Iwai To: Christian Zigotzky Cc: zzzccc427@gmail.com, tiwai@suse.de, perex@perex.cz, linux-sound@vger.kernel.org, linuxppc-dev , "R.T.Dickinson" , mad skateman , Damien Stewart , Christian Zigotzky Subject: Re: Void PPC: PulseAudio issue with sound updates 7.4-rc1 In-Reply-To: <3452eb30-44be-cdd1-72e9-c15e145a6444@xenosoft.de> References: <41a2e39a-5637-8afa-f84f-f79e63b3b56e@xenosoft.de> <3452eb30-44be-cdd1-72e9-c15e145a6444@xenosoft.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/30.2 Mule/6.0 X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , Precedence: list X-Archived-By: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-13.51 / 50.00]; SUSE_INTERNAL_BYPASS(-9.00)[]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[suse.de:dkim]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; ARC_NA(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVRCPT(0.00)[gmail.com,xtra.co.nz,yahoo.com.au]; RCVD_TLS_ALL(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,suse.de,perex.cz,vger.kernel.org,lists.ozlabs.org,xtra.co.nz,yahoo.com.au,xenosoft.de]; RCPT_COUNT_SEVEN(0.00)[10]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received]; DKIM_TRACE(0.00)[suse.de:+]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:rdns,imap1.dmz-prg2.suse.org:helo,suse.de:dkim,ibb.co:url] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Action: no action X-Spam-Score: -13.51 X-Spam-Level: X-Rspamd-Queue-Id: ED8161F7B0 X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Sun, 01 Nov 2026 15:53:07 +0100, Christian Zigotzky wrote: > > On 01/11/26 10:15, Christian Zigotzky wrote: > > Hi, > > > > Although PulseAudio recognises the sound cards, it is unable to > > successfully initialise the corresponding output profiles on Void > > PPC since the sound updates 7.4-rc1 [1]. The output via ALSA works. > > > > Tested with the onboard HDA ATI SB sound device, Soundblaster LIVE > > Player 1024 PCI card, AMD HDMI audio and with USB audio. Strangely > > enough Pulseaudio can enable the sound devices on MintPPC32. I think > > the latest sound updates are responsible for the issue on Void PPC. > > > > I bisected last week [2] and > > ad28d2f607d1792c04531f2c5fd9ac0bf5bdcc9c (ALSA: pcm: Serialize and > > check HW_REFINE ioctls) is the first bad commit. > > > > I was able to revert the first bad commit and this solved the issue. [2] > > > > Then I created a patch for reverting the bad commit. [3] > > > > Could you please check the sound updates 7.4-rc1? [1] > > > > Thanks, > > Christian > > > > [1] > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=75c1cb8178fe84403fd95236ddf21754f0a4156c > > [2] https://github.com/chzigotzky/kernels/issues/21 > > [3] > > https://github.com/chzigotzky/kernels/commit/644ec7c1f2f812d5eb89741e643f742596a49b2d > > [4] Screenshots: > >      - With the sound updates: > > https://i.ibb.co/675Yjxvd/Kernel-7-4-0-with-sound-updates.png > >      - With the patched kernel: > > https://i.ibb.co/9HDrnnm1/Kernel-7-4-0-alpha8-Power-PC-1.png and > > https://i.ibb.co/vx77FdHV/Kernel-7-4-0-alpha8-Power-PC-2.png > > > > The sound-fixes-7.4-rc1 [1] don't solve the issue with PulseAudio on > Void PPC. We still need the sound patch [2] for reverting the bad > commit. 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