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 26091C19F32 for ; Wed, 5 Mar 2025 09:30:45 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [45.14.194.44]) (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 alsa0.perex.cz (Postfix) with ESMTPS id 8F8A86032F; Wed, 5 Mar 2025 10:30:31 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8F8A86032F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1741167041; bh=Ykl2MCrGJJEUVsj7ni6CEn+ulVPCIRfP8o+jOrAH5bw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=mDcSfwuLJ4OScNLFmS2fB4jTXnFqNBtbO5UbKc6LFAambXYcfnYq4AlXdiuQIhezR t7K115LblJAZ7DfT/9Mf9XaLa0MY9q2dK4DBC0zX1v/zzyln89jVAOqsCXrSLp0H5l TYHpqnDa+aVYJOPNtSjtmbo5dLbI9rOIZP+n2us8= Received: by alsa1.perex.cz (Postfix, from userid 50401) id E8F9AF805BD; Wed, 5 Mar 2025 10:30:16 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 77869F805B6; Wed, 5 Mar 2025 10:30:16 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 52A1CF802BE; Wed, 5 Mar 2025 10:29:46 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) (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 alsa1.perex.cz (Postfix) with ESMTPS id 137D6F8001D for ; Wed, 5 Mar 2025 10:29:42 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 137D6F8001D Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=Puyi6wez; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=tDsJjQ8T; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=Puyi6wez; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=tDsJjQ8T 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 BC2761F76B; Wed, 5 Mar 2025 09:29:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1741166979; 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=owPaDv5SZ10KjJHu0X7n6bZoYrooJZfK/t7KMS3C3Us=; b=Puyi6wezAJaOzCoVbyFR249Lq79fB4rprJPO18AmwwCeukchz1MUDC1R0epa0PMHD/KskD n93m/P3T7fpcIDF41Myzkp44oAub2pB6Yb8X1SOt4LhKKQfhyw8gaGolyL5pQi/78TwTBi CLK4UoLDG7nXDe8bQkJyNtLfjD46BPA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1741166979; 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=owPaDv5SZ10KjJHu0X7n6bZoYrooJZfK/t7KMS3C3Us=; b=tDsJjQ8TXGPBADrx3IuVAu2kLM21ByrFV1wRgctGmmwW4gs3jl8w/J3SqXY25yNKVVzr0e TuVeCyV7K5ZU1ACw== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=Puyi6wez; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=tDsJjQ8T DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1741166979; 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=owPaDv5SZ10KjJHu0X7n6bZoYrooJZfK/t7KMS3C3Us=; b=Puyi6wezAJaOzCoVbyFR249Lq79fB4rprJPO18AmwwCeukchz1MUDC1R0epa0PMHD/KskD n93m/P3T7fpcIDF41Myzkp44oAub2pB6Yb8X1SOt4LhKKQfhyw8gaGolyL5pQi/78TwTBi CLK4UoLDG7nXDe8bQkJyNtLfjD46BPA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1741166979; 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=owPaDv5SZ10KjJHu0X7n6bZoYrooJZfK/t7KMS3C3Us=; b=tDsJjQ8TXGPBADrx3IuVAu2kLM21ByrFV1wRgctGmmwW4gs3jl8w/J3SqXY25yNKVVzr0e TuVeCyV7K5ZU1ACw== 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 963A41366F; Wed, 5 Mar 2025 09:29:39 +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 pxAmI4MZyGcObAAAD6G6ig (envelope-from ); Wed, 05 Mar 2025 09:29:39 +0000 Date: Wed, 05 Mar 2025 10:29:39 +0100 Message-ID: <87plivu8os.wl-tiwai@suse.de> From: Takashi Iwai To: Kailang Cc: " (alsa-devel@alsa-project.org)" , "linux-sound@vger.kernel.org" Subject: Re: update ALC222 depop optimize In-Reply-To: References: <81c7f0ec4a2447219c06095e0de4d1d3@realtek.com> <87zfhzud4s.wl-tiwai@suse.de> <87wmd3uc28.wl-tiwai@suse.de> <494a665481e043a38b94d844654fa81f@realtek.com> <87tt87uail.wl-tiwai@suse.de> 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 X-Rspamd-Queue-Id: BC2761F76B X-Spamd-Result: default: False [-3.51 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; 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)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; 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:+]; TO_DN_EQ_ADDR_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email,suse.de:dkim,suse.de:mid,imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+] X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Rspamd-Action: no action Message-ID-Hash: KKPDESFKBQQSOO7PN6HIZZZCCAGZKO5O X-Message-ID-Hash: KKPDESFKBQQSOO7PN6HIZZZCCAGZKO5O X-MailFrom: tiwai@suse.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Wed, 05 Mar 2025 10:22:04 +0100, Kailang wrote: > > > > > -----Original Message----- > > From: Takashi Iwai > > Sent: Wednesday, March 5, 2025 4:50 PM > > To: Kailang > > Cc: (alsa-devel@alsa-project.org) ; > > linux-sound@vger.kernel.org > > Subject: Re: update ALC222 depop optimize > > > > > > External mail : This email originated from outside the organization. Do not > > reply, click links, or open attachments unless you recognize the sender and > > know the content is safe. > > > > > > > > On Wed, 05 Mar 2025 09:22:20 +0100, > > Kailang wrote: > > > > > > > > > > > > > -----Original Message----- > > > > From: Takashi Iwai > > > > Sent: Wednesday, March 5, 2025 4:17 PM > > > > To: Kailang > > > > Cc: (alsa-devel@alsa-project.org) ; > > > > linux-sound@vger.kernel.org > > > > Subject: Re: update ALC222 depop optimize > > > > > > > > > > > > External mail : This email originated from outside the organization. > > > > Do not reply, click links, or open attachments unless you recognize > > > > the sender and know the content is safe. > > > > > > > > > > > > > > > > On Wed, 05 Mar 2025 08:56:41 +0100, > > > > Kailang wrote: > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Takashi Iwai > > > > > > Sent: Wednesday, March 5, 2025 3:54 PM > > > > > > To: Kailang > > > > > > Cc: (alsa-devel@alsa-project.org) ; > > > > > > linux-sound@vger.kernel.org > > > > > > Subject: Re: update ALC222 depop optimize > > > > > > > > > > > > > > > > > > External mail : This email originated from outside the organization. > > > > > > Do not reply, click links, or open attachments unless you > > > > > > recognize the sender and know the content is safe. > > > > > > > > > > > > > > > > > > > > > > > > On Wed, 05 Mar 2025 07:32:00 +0100, Kailang wrote: > > > > > > > > > > > > > > Hi Takashi, > > > > > > > > > > > > > > Update ALC222 depop optimize as attach. > > > > > > > > > > > > Could you give a bit more background info why this change is needed? > > > > > > Is it a mandatory change to fix something, or it improves something? > > > > > > > > > > > This codec has two headphone design. > > > > > The HP2 was nid 0x14. > > > > > > > > Sorry not clear enough: do you mean the patch is to fix the depop > > > > problems on the models with two headphone pins with ALC222? > > > > > > Yes, the original depop was only supported one headphone. > > > > OK, and then would it be a bit risky to blindly assume the second headphone > > pin 0x14? Isn't it set up via pin config? > > > It doesn't have risk to set this pin as headphone or line out. > This pin (0x14) can be a line out or headphone. It has JD which driver will get it. > Line out and Headhpone were need to do depop procedure. > If pin 0x14 set to speaker, it wouldn't have JD. > > hp2_pin_sense = snd_hda_jack_detect(codec, 0x14); > > This just got JD to do depop. Fair enough, I took the patch now. Thanks. Takashi