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 28D41C433EF for ; Fri, 6 May 2022 20:38:00 +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 5B77B1833; Fri, 6 May 2022 22:37:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5B77B1833 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1651869478; bh=ESIx2x+6+uGTCP2unKKIQb/lL1DorfqjzlVZMk5rGYo=; h=From:To:In-Reply-To:References:Subject:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=tXwmRMZDyAUHBFm4J3cQxotewrMnJ61XvAhk35WQHPIpbXZ0YZ8BdU3dkaCtEkFVY +u/wcWZ/G+B6cmHMh7Y1/ZCeTkgMUJOeJMoZre/7a7IvYGuRiY7LvON8fw25hj17lB oi10OAPYPn7tsQ8LwRsV/3JN+Y5z+diM8reLo/xg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D37BDF8012F; Fri, 6 May 2022 22:37:07 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3B4F9F8014B; Fri, 6 May 2022 22:37:05 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (gate.perex.cz [77.48.224.242]) by alsa1.perex.cz (Postfix) with ESMTP id 66395F800D3 for ; Fri, 6 May 2022 22:36:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 66395F800D3 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: <1651869417347031116-webhooks-bot@alsa-project.org> References: <1651869417347031116-webhooks-bot@alsa-project.org> Subject: Lenovo ThinkPad T14 AMD - Broken headphone detection Message-Id: <20220506203705.3B4F9F8014B@alsa1.perex.cz> Date: Fri, 6 May 2022 22:37:05 +0200 (CEST) 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" alsa-project/alsa-ucm-conf issue #152 was opened from xsmile: ### Summary Booting the system with headphones plugged in results in a broken volume control. Sometimes the headphones are not recognized at all. ### Environment - Lenovo ThinkPad T14 Gen 1 (AMD), BIOS 1.40 - Onboard Realtek ALC257 ### Steps to reproduce - plug in headphones - boot the system - play back audio and try changing the volume ### What is the current *bug* behavior? The previously set volume level is ignored and set to the maximum, despite PulseAudio telling otherwise. Changing the volume has no effect. Occasionally, headphone presence is not recognized after a reboot instead and audio is played back through the speakers. ### What is the expected *correct* behavior? The volume level is persisted between reboots, headphones are recognized reliably and volume control is functional. ### Additional Information As a workaround, headphones can be removed and plugged in again, which restores the normal volume level and the ability to control volume. The bug does not happen when using ALSA without PulseAudio or when using PulseAudio without UCM. Here is a series of `pa-info` log files where volume control was functional but both speakers and headphones were active after the reboot. [1-speakers.txt](https://github.com/alsa-project/alsa-ucm-conf/files/8643462/1-speakers.txt) headphones are not plugged in; speakers are active [2-headphones.txt](https://github.com/alsa-project/alsa-ucm-conf/files/8643463/2-headphones.txt) headphones were plugged in; headphones are active and speakers are muted [3-reboot-with-headphones.txt](https://github.com/alsa-project/alsa-ucm-conf/files/8643464/3-reboot-with-headphones.txt) rebooted the notebook with headphones plugged in; both speakers and headphones are active, while speakers should have been muted; volume control changes speaker instead of headphone volume [4-speakers.txt](https://github.com/alsa-project/alsa-ucm-conf/files/8643465/4-speakers.txt) removed headphones; speakers are active [5-headphones.txt](https://github.com/alsa-project/alsa-ucm-conf/files/8643466/5-headphones.txt) plugged in headphones; headphones are active and speakers are muted --- Related issue: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1356 Issue URL : https://github.com/alsa-project/alsa-ucm-conf/issues/152 Repository URL: https://github.com/alsa-project/alsa-ucm-conf