From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7010049620 for ; Tue, 1 Jul 2025 09:14:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751361294; cv=none; b=fSa/42lwBsyDXb1xi0vkvUXJMjUKWCzh2lDVbD3ENhYvrSI0pVlzSrfc4r7L/zUVN+NHSAmgVGP4N0xZKwuLzlnMcdKXDSNcCZQ3hHlGeBIoPashnqfNWqce5TERTsmV/5e9zod0VaKCKV+aJ0TCUHCzprHgaepKQvuo5B9hrbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751361294; c=relaxed/simple; bh=82WsWHB5CTJXZMXxF98DfLcVa38JgVUYq9ixAMvFfwE=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=evUKx5rXBTDDRzbFLHBcDTtuyspBjEmDw6Vg1dGRXdtm7/I4yd9H+WwyL2Fpfdw2gCgEldoGLQE9sjGWvUD/o/b2zm/ca2nKiHVATFEBUYBTZliReUWJPTLhjQzxciOIVrQ0dbpuHc+b4zWrkidX8EUGvOVAPt2PAbEMU3giQsU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=hTB8v+RY; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=ha+egF0D; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=hTB8v+RY; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=ha+egF0D; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="hTB8v+RY"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="ha+egF0D"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="hTB8v+RY"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="ha+egF0D" 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-out1.suse.de (Postfix) with ESMTPS id 6D9B421163; Tue, 1 Jul 2025 09:14:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1751361290; 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=fOvn4AhbppOgFgFqQ/h6HC5zj+f9AsTrcRc11O1t3iA=; b=hTB8v+RYuy5VPgfLRBKbrI7LSDLpL5Fc3rO0s89SnZkuiKgwEsu+8NFSoVSwh9EXlE0QsU Wm4pCzjVbzd2AKKlEJ87awgQcO3D84JIy5X60OsLp1brg9i/wOXxtrWQ+ZH8foKDLsUyy7 GR3IFiYfYi/8gX4Fc23LFJnVezsmRvc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1751361290; 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=fOvn4AhbppOgFgFqQ/h6HC5zj+f9AsTrcRc11O1t3iA=; b=ha+egF0DNmKo36bdZTnHrJWeBZnHYcbZZ30OaCy7x+qGKPMvI2Nj8y/GYdOFDIGo05NRLJ PblffCYkaRizWhBw== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=hTB8v+RY; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=ha+egF0D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1751361290; 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=fOvn4AhbppOgFgFqQ/h6HC5zj+f9AsTrcRc11O1t3iA=; b=hTB8v+RYuy5VPgfLRBKbrI7LSDLpL5Fc3rO0s89SnZkuiKgwEsu+8NFSoVSwh9EXlE0QsU Wm4pCzjVbzd2AKKlEJ87awgQcO3D84JIy5X60OsLp1brg9i/wOXxtrWQ+ZH8foKDLsUyy7 GR3IFiYfYi/8gX4Fc23LFJnVezsmRvc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1751361290; 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=fOvn4AhbppOgFgFqQ/h6HC5zj+f9AsTrcRc11O1t3iA=; b=ha+egF0DNmKo36bdZTnHrJWeBZnHYcbZZ30OaCy7x+qGKPMvI2Nj8y/GYdOFDIGo05NRLJ PblffCYkaRizWhBw== 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 3730613890; Tue, 1 Jul 2025 09:14:50 +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 YQ9HDAqnY2iBJgAAD6G6ig (envelope-from ); Tue, 01 Jul 2025 09:14:50 +0000 Date: Tue, 01 Jul 2025 11:14:49 +0200 Message-ID: <87y0t8clx2.wl-tiwai@suse.de> From: Takashi Iwai To: "Joakim Zhang" Cc: Takashi Iwai , Kailang , "perex@perex.cz" , "tiwai@suse.com" , "linux-sound@vger.kernel.org" , "chris.chiu@canonical.com" , Geans_chen Subject: Re: [PATCH V1 4/4] ALSA: hda/realtek: fix mic jack detect failed on alc256 In-Reply-To: References: <20250619020844.2974160-1-joakim.zhang@cixtech.com> <20250619020844.2974160-5-joakim.zhang@cixtech.com> <87a562wqzu.wl-tiwai@suse.de> <431c41bd52224eb5ac341c9c24d52af1@realtek.com> <5f2431ca8ef2453daa9da2034798e682@realtek.com> <87cyake9w0.wl-tiwai@suse.de> <877c0se7iu.wl-tiwai@suse.de> <874ivwe75h.wl-tiwai@suse.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Rspamd-Queue-Id: 6D9B421163 X-Rspamd-Action: no action X-Spam-Flag: NO X-Spamd-Result: default: False [-3.51 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; 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)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_ALL(0.00)[]; DNSWL_BLOCKED(0.00)[2a07:de40:b281:106:10:150:64:167:received]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCPT_COUNT_SEVEN(0.00)[8]; 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)[suse.com:email,suse.de:mid,suse.de:dkim,suse.de:email,perex.cz:email,canonical.com:email,imap1.dmz-prg2.suse.org:rdns,imap1.dmz-prg2.suse.org:helo,cix-localhost:email] X-Spam-Score: -3.51 X-Spam-Level: On Tue, 01 Jul 2025 10:40:51 +0200, Joakim Zhang wrote: > > > Hello, > > > > > -----Original Message----- > > > > From: Takashi Iwai > > > > Sent: Tuesday, July 1, 2025 2:43 PM > > > > To: Joakim Zhang > > > > Cc: Takashi Iwai ; Kailang ; > > > > perex@perex.cz; tiwai@suse.com; linux-sound@vger.kernel.org; > > > > chris.chiu@canonical.com; Geans_chen > > > > Subject: Re: [PATCH V1 4/4] ALSA: hda/realtek: fix mic jack detect > > > > failed on > > > > alc256 > > > > > > > > EXTERNAL EMAIL > > > > > > > > CAUTION: Suspicious Email from unusual domain. > > > > > > > > On Tue, 01 Jul 2025 08:35:05 +0200, > > > > Joakim Zhang wrote: > > > > > > > > > > > > > > > Hello Takashi, > > > > > > > > > > Thanks a lot for your help. > > > > > > > > > > > > Hello Kailang, > > > > > > > > > > > > > > I'd like to insert another question through this. That would > > > > > > > be appreciated if > > > > > > you could have a look. > > > > > > > > > > > > > > After system boot, we can see the default mixer status as below: > > > > > > > > > > > > > > root@cix-localhost:~# amixer -c 0 contents > > > > > > > numid=14,iface=CARD,name='Headphone Jack' > > > > > > > ; type=BOOLEAN,access=r-------,values=1 > > > > > > > : values=on > > > > > > > numid=12,iface=CARD,name='Internal Mic Phantom Jack' > > > > > > > ; type=BOOLEAN,access=r-------,values=1 > > > > > > > : values=on > > > > > > > numid=13,iface=CARD,name='Mic Jack' > > > > > > > ; type=BOOLEAN,access=r-------,values=1 > > > > > > > : values=on > > > > > > > numid=15,iface=CARD,name='Speaker Phantom Jack' > > > > > > > ; type=BOOLEAN,access=r-------,values=1 > > > > > > > : values=on > > > > > > > numid=11,iface=MIXER,name='Master Playback Switch' > > > > > > > ; type=BOOLEAN,access=rw------,values=1 > > > > > > > : values=on > > > > > > > numid=10,iface=MIXER,name='Master Playback Volume' > > > > > > > ; type=INTEGER,access=rw---R--,values=1,min=0,max=87,step=0 > > > > > > > : values=60 > > > > > > > | dBscale-min=-65.25dB,step=0.75dB,mute=0 > > > > > > > numid=2,iface=MIXER,name='Headphone Playback Switch' > > > > > > > ; type=BOOLEAN,access=rw------,values=2 > > > > > > > : values=on,on > > > > > > > numid=1,iface=MIXER,name='Headphone Playback Volume' > > > > > > > ; type=INTEGER,access=rw---R--,values=2,min=0,max=87,step=0 > > > > > > > : values=87,87 > > > > > > > | dBscale-min=-65.25dB,step=0.75dB,mute=0 > > > > > > > numid=9,iface=MIXER,name='Mic Boost Volume' > > > > > > > ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0 > > > > > > > : values=0,0 > > > > > > > | dBscale-min=0.00dB,step=10.00dB,mute=0 > > > > > > > numid=7,iface=MIXER,name='Capture Switch' > > > > > > > ; type=BOOLEAN,access=rw------,values=2 > > > > > > > : values=on,on > > > > > > > numid=6,iface=MIXER,name='Capture Volume' > > > > > > > ; type=INTEGER,access=rw---R--,values=2,min=0,max=63,step=0 > > > > > > > : values=39,39 > > > > > > > | dBscale-min=-17.25dB,step=0.75dB,mute=0 > > > > > > > numid=5,iface=MIXER,name='Auto-Mute Mode' > > > > > > > ; type=ENUMERATED,access=rw------,values=1,items=2 > > > > > > > ; Item #0 'Disabled' > > > > > > > ; Item #1 'Enabled' > > > > > > > : values=1 > > > > > > > numid=8,iface=MIXER,name='Internal Mic Boost Volume' > > > > > > > ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0 > > > > > > > : values=0,0 > > > > > > > | dBscale-min=0.00dB,step=10.00dB,mute=0 > > > > > > > numid=4,iface=MIXER,name='Speaker Playback Switch' > > > > > > > ; type=BOOLEAN,access=rw------,values=2 > > > > > > > : values=off,off > > > > > > > numid=3,iface=MIXER,name='Speaker Playback Volume' > > > > > > > ; type=INTEGER,access=rw---R--,values=2,min=0,max=87,step=0 > > > > > > > : values=0,0 > > > > > > > | dBscale-min=-65.25dB,step=0.75dB,mute=0 > > > > > > > numid=17,iface=PCM,name='Capture Channel Map' > > > > > > > ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0 > > > > > > > : values=0,0 > > > > > > > | container > > > > > > > | chmap-fixed=FL,FR > > > > > > > numid=16,iface=PCM,name='Playback Channel Map' > > > > > > > ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0 > > > > > > > : values=0,0 > > > > > > > | container > > > > > > > | chmap-fixed=FL,FR > > > > > > > > > > > > > > It can auto switch 'Headphone Playback Switch'/'Headphone > > > > > > > Playback Volume' and 'Speaker Playback Switch'/'Speaker > > > > > > > Playback Volume', when I plugin the headset or not, but I have > > > > > > > not found the related logic, could you > > > > > > please help clarify a bit? > > > > > > > > > > > > Isn't it "Auto-Mute Mode"? If it's set, the speaker is muted > > > > > > automatically when the headphone/headset jack is plugged by the > > > > > > kernel > > > > driver itself. > > > > > > > > > > What strange is 'Auto-Mute Mode' would be disabled after headset > > > > plugin/out several times, don' t know the reason.... > > > > > > > > "Auto-Mute Mode" is a software switch, and it means some program > > > > must have turned it off explicitly. e.g. the sound server like > > > > pulseaudio or pipewire disables it. > > > > > > > > > However, it seems that speaker and headphone/headset still can > > > > > auto > > > > switch. Please see below mixer status. > > > > > > > > Usually pulseaudio/pipewire takes over and does the switching. > > > > > > OK, I see, I will dig into it, could you please tell me is there any other software > > switches in the mixers? > > > > Any mixer program can change... But basically the auto-mute is a task of the > > sound daemon. > > I disable both pulseaudio and pipewire from the Debian, and enable the auto-mute, when the headset plugin but the switch not set correctly. > 'Headphone Playback Switch'/'Headphone Playback Volume' not set, but 'Speaker Playback Switch'/'Speaker Playback Volume' enabled. > Are there any other possible reasons? The auto-mute doesn't change the mixer state. It switches internally, either by adjusting the pin control or the amp. Takashi