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 D85D0C433F5 for ; Tue, 22 Mar 2022 20:54:30 +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 0EC6A17AA; Tue, 22 Mar 2022 21:53:39 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0EC6A17AA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1647982469; bh=WTIcYRdNeW1tsFiUDaqYMQvB1/mMWIVu54R+mJNv5c4=; h=From:To:In-Reply-To:References:Subject:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=CcXE1jLZkZH7vlL+4NU5xmA1nzuDSnWmYIe3i6qKeVI8Uyfxioo78PerLEY756oHY r/RcKlj79sYdkhPuhjDyEEbeeGJlRpl/Pm8tBFFOUIpFx4iinWF0OhQHyA/q/yZ7wJ g+0hMrWnByT6XdqsVBdR8aAAaFDZKUz6NVEQihoE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id F1261F80516; Tue, 22 Mar 2022 21:53:28 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 54F9AF80517; Tue, 22 Mar 2022 21:53:28 +0100 (CET) Received: from webhooks-bot.alsa-project.org (gate.perex.cz [77.48.224.242]) by alsa1.perex.cz (Postfix) with ESMTP id 2D2EDF80515 for ; Tue, 22 Mar 2022 21:53:21 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2D2EDF80515 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: <1647982401656882048-webhooks-bot@alsa-project.org> References: <1647982401656882048-webhooks-bot@alsa-project.org> Subject: Line-in is abnormally loud for snd-intel-hda Message-Id: <20220322205328.54F9AF80517@alsa1.perex.cz> Date: Tue, 22 Mar 2022 21:53:28 +0100 (CET) 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-lib issue #219 was opened from mpeter50: When I'm on Windows, I sometimes use the line-in Jack to connect my phone to it, so I can either listen to it's sounds along with my PCs sounds or use it as a microphone. I've tried to set this functionality up on my Linux installation, but it seems something is not right. The most basic example is with `arecord`: after setting line-in as the default input device with `alsamixer` I've ran `arecord -vv -fdat foo.wav` so I can check what the ALSA drivers actually "hear" without possible interference of any audio servers. While the command was running, I changed the volume of line-in using he appropriate slider of pavucontrol. When playing the recording, it is clear that while line-in is at 100%, the sound is so loud that it is distorted, and the normal volume is around 12-15% of the actual volume. I don't experience this on Windows, so this is probably not a hardware issue. If I plug a headphone directly into my phone and listen to it, the volume is normal, so this is probably not an issue on the signal producer side either. Checking with `alsamixer`, all capture controls are at 0 volume. But, the controls there might not tell the full truth for multiple reasons: - after reducing the Capture control's volume I can still hear the sound coming from line-in - the Capture control's volume is not in sync with what I see in pavucontrol and other places like KDE's volume menu - the controls Master and PCM in the Playback category does not seem to have any effect. As such, none of the controls control the actual output to my headphone - the "default" card has a single slider, it is named Master and this actually controls the master volume, at least for my headphone Screenshot relevant to the 1st and 2nd points: ![image](https://user-images.githubusercontent.com/83356418/159570560-879f2508-d48c-4718-bf7e-34ee80a4c2e6.png) Additional information: - output of the alsa-info script: [alsa-info.txt](https://github.com/alsa-project/alsa-lib/files/8327703/alsa-info.txt) - Content of `/proc/asound/card*/codec#*` files: - [/proc/asound/card0/codec#0](https://github.com/alsa-project/alsa-lib/files/8327730/card0_codec0.txt) - [/proc/asound/card1/codec#0](https://github.com/alsa-project/alsa-lib/files/8327735/card1_codec0.txt) - note: card0 is the HDMI section of my graphics card. I never use it for audio, only jack and bluetooth, so it can probably be ignored - output of `lspci -vvnn`: [lspci.txt](https://github.com/alsa-project/alsa-lib/files/8327777/lspci.txt) Issue URL : https://github.com/alsa-project/alsa-lib/issues/219 Repository URL: https://github.com/alsa-project/alsa-lib