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 162DFE7716D for ; Thu, 5 Dec 2024 15:53:31 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id E5B2420C6; Thu, 5 Dec 2024 16:53:17 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E5B2420C6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1733414007; bh=V3IqJXw3hjWYrNEH5sRJGyTkT4v9qkpMrrjwNFLfnWY=; h=From:To:In-Reply-To:References:Subject:Date:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=Th002By+Z75ygeAnKbwlxH0X/MboFPxIUsFi30pq/Ldxy9qi0KoDb/cySSqmxx1Zr NvHr+KisItqGZ70nebHaXqpmHvlIfvWXbV40TYnmuFR8tRbzINZyMzu3DR5kEoDhiq pFSqWUQFDNODqkQVKWWXqByGHpWhZ3U31PXZH6sU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id CE221F805BE; Thu, 5 Dec 2024 16:52:53 +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 12781F805C2; Thu, 5 Dec 2024 16:52:53 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 29FD9F8047C; Thu, 5 Dec 2024 16:52:47 +0100 (CET) Received: from webhooks-bot.alsa-project.org (vmi242170.contaboserver.net [207.180.221.201]) by alsa1.perex.cz (Postfix) with ESMTP id 704A0F80073 for ; Thu, 5 Dec 2024 16:52:44 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 704A0F80073 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub issues - opened To: alsa-devel@alsa-project.org In-Reply-To: <1733413964857636213-webhooks-bot@alsa-project.org> References: <1733413964857636213-webhooks-bot@alsa-project.org> Subject: With SOF enabled in sof-hda-generic.tplg device (no DMIC) the control 'Capture Source' is not controlled by UCM Message-Id: <20241205155247.29FD9F8047C@alsa1.perex.cz> Date: Thu, 5 Dec 2024 16:52:47 +0100 (CET) Message-ID-Hash: CAMXWXBMOUEX3YHQZGDIA4HPTQHT3TGT X-Message-ID-Hash: CAMXWXBMOUEX3YHQZGDIA4HPTQHT3TGT X-MailFrom: github@alsa-project.org 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: alsa-project/alsa-ucm-conf issue #484 was opened from singalsu: The configuration is not usual. If there is no DMIC in the system usually the legacy mode is selected (as with `options snd_intel_dspcfg dsp_driver=1`). In such PCs SOF can be enabled with `options snd_intel_dspcfg dsp_driver=3`. When a headset is plugged/unplugged the playback correctly switches between speaker and headphone/headset earbuds. But the microphone capture remains muted. I noticed with legacy mode where internal microphones work that control name='Capture Source' changes to 1 when headset is removed: ``` singalsu@asteri:~$ amixer -c0 cget name='Capture Source' numid=6,iface=MIXER,name='Capture Source' ; type=ENUMERATED,access=rw------,values=1,items=2 ; Item #0 'Headset Mic' ; Item #1 'Internal Mic' : values=1 singalsu@asteri:~$ amixer -c0 cget name='Capture Source' numid=6,iface=MIXER,name='Capture Source' ; type=ENUMERATED,access=rw------,values=1,items=2 ; Item #0 'Headset Mic' ; Item #1 'Internal Mic' : values=0 ``` This is not happening when SOF is enabled. But I could make internal microphones capture work with `amixer -c0 cset name='Capture Source' 1`. Is there a way to fix this in ucm2? I'm not absolutely sure about this issue in Fedora 41 but this happens with my modified ucm2 development code with git master branch. Issue URL : https://github.com/alsa-project/alsa-ucm-conf/issues/484 Repository URL: https://github.com/alsa-project/alsa-ucm-conf