From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA419C433FE for ; Fri, 21 Oct 2022 06:19:47 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 3A93E93B2; Fri, 21 Oct 2022 08:18:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3A93E93B2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1666333185; bh=jGo3GIZqWA+OiKU7gxuctzt7e6+SJqzwzkVuIxU2qo0=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=l9ytLfMQo13VN3v0IC7j72TrgaUVT5uelnckzcb+ZxDkamgrJ1RX5FtvCwYFLHl84 TI7XPbixlqmjfWgd6g6K4ebig+myfSFmxW9CrkXRyzIs3f1L7aDLb2tDEL2xJvvldf P9EyV3Wyr4TJqJAsHeol/UVwHGs8ZlW+OOc3BAe4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id DB714F80134; Fri, 21 Oct 2022 08:18:54 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4B594F80118; Fri, 21 Oct 2022 08:18:53 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 26F56F80118 for ; Fri, 21 Oct 2022 08:18:48 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 26F56F80118 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="nqrk8CZ2"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="eICvxvmo" Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 812E21F90F; Fri, 21 Oct 2022 06:18:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1666333128; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=liod0Qgbw11Wm2miSEFyU6Lk4/K7ugeWAi8+5SI6jGU=; b=nqrk8CZ2AcdP1d6jBIlAAieU6noFwFbMS6w1B1K0Wc8xuwkljZZuVKpYYjwf8fvOZ1vyu/ htynq9cFySCaLoxfCJaUqipIycLF2CcGxegqz4nAFjbOCvVBC6P3/GAzJCRITC2A6EAGI1 1BPxpLtBnpEhHm1Nmmg62nIu65aVNIM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1666333128; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=liod0Qgbw11Wm2miSEFyU6Lk4/K7ugeWAi8+5SI6jGU=; b=eICvxvmoJOTT8ziO6BXd9AAiohu14/yjok0q69dQ/K0SnAnylNnU0W33f8JF9FmanX6jX4 BrL9s+u4U5lFVoBw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 42B441331A; Fri, 21 Oct 2022 06:18:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id UXODD8g5UmNnDgAAMHmgww (envelope-from ); Fri, 21 Oct 2022 06:18:48 +0000 Date: Fri, 21 Oct 2022 08:18:47 +0200 Message-ID: <8735bh8zso.wl-tiwai@suse.de> From: Takashi Iwai To: "Maciej S. Szmigiero" Subject: Re: [PATCH 0/6] Fix direct renaming of hashed controls In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Takashi Iwai X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Thu, 20 Oct 2022 22:46:20 +0200, Maciej S. Szmigiero wrote: > > From: "Maciej S. Szmigiero" > > I've noticed that some of mixer controls on my sound card seem to > be partially broken on the 6.0 kernel - alsactl wasn't able to find them > when restoring the mixer state. > > The issue was traced down to the recent addition of hashed controls lookup > in commit c27e1efb61c5 ("ALSA: control: Use xarray for faster lookups"). > > Since that commit it is *not* enough to just directly update the control > name field (like some of ALSA drivers were doing). > Now the hash entries for the modified control have to be updated too. > > This patch set adds a snd_ctl_rename() function that takes care of doing > this operation properly for callers that already have the relevant > struct snd_kcontrol at hand and hold the control write lock (or simply > haven't registered the card yet). > > These prerequisites hold true for all the call sites modified. > > The core controls change and the emu10k1 patch were runtime tested. > Similar patches for other devices were only compile tested. Good catch! Applied all patches now. thanks, Takashi