Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F036C433E1 for ; Sun, 19 Jul 2020 01:47:38 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 1119620882 for ; Sun, 19 Jul 2020 01:47:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="l+efHZWg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1119620882 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=alsa-project.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org 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 66C6615F9; Sun, 19 Jul 2020 03:46:46 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 66C6615F9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1595123256; bh=S62L8OB28usSewvl76985h1cg1fdMCcBVXBBNdPYDwk=; h=From:To:In-Reply-To:References:Subject:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=l+efHZWghiNgUBVea+jS/+SFJIays1X0e2wdRP34WSGx3IH/V4ApOkjJpeoBstgOV k4++ySmunGX6FrSTzYh3Q9Db/qBpPIKuw/3Fzl67uQVCZpPSlgOSCYdQg1wxWh4TRu 65tf2GSMNWKN9ZW7JYFWCxTm4wbDjumG8N8AGV20= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id DB0EFF80141; Sun, 19 Jul 2020 03:46:45 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 66F69F801F5; Sun, 19 Jul 2020 03:46:43 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (gate.perex.cz [77.48.224.242]) by alsa1.perex.cz (Postfix) with ESMTP id 9F741F800F5 for ; Sun, 19 Jul 2020 03:46:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9F741F800F5 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: <1595123194546633959-webhooks-bot@alsa-project.org> References: <1595123194546633959-webhooks-bot@alsa-project.org> Subject: Realtek ALC892 produces low volume garbled output. Message-Id: <20200719014643.66F69F801F5@alsa1.perex.cz> Date: Sun, 19 Jul 2020 03:46:43 +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-lib issue #69 was opened from RoryO: I'm sorry if this isn't the correct project for this. I don't know if this problem is relevant to the Alsa project or the Linux kernel directly and I don't know how to find that out. Personal background === Programmer, experienced. First used Linux with Red Hat Linux 6 about 20 years ago. Mostly using Linux on the server side of things since. I'm not afraid to try things so have at it. Problem === PCM audio to device heavily distorted and extremely low volume. Happens with all applications. Works flawlessly with Windows. Bypassing PulseAudio using aplay or speaker-test does not help. Interestingly, playing a raw sine wave with speaker-test works fine! Therefore it's only PCM based output causing an issue. Even using something like VLC which has it's own codecs and outputs directly to the sound buffer exhibits this issue, so it's not a system codec issue. For example, this produces a perfectly fine sounding sine wave speaker-test -l 3 -t sine -c 2 And this produces nothing speaker-test -l 3 -t wav -c 2 If I play something on Spotify or Youtube and max out the volume I can barely hear some heavily distorted, clipped noise vaguely sounding like it should. I only have powered headphones for testing, no powered external speakers. Relevant details === Latest KDE neon, which is Ubuntu 18.04 base with the GUI switched from Gnome to KDE Plasma. Hardware is an Asus z170 motherboard, integrated Realtek/Intel audio. Using the rear green line out jack. I think there are headphone jack headers on the board as well, they are unused. lspci output 00:1f.3 Audio device: Intel Corporation 100 Series/C230 Series Chipset Family HD Audio Controller (rev 31) 01:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1) kernel messages regarding snd snd_hda_intel 0000:01:00.1: Disabling MSI snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC892: line_outs=3 (0x14/0x15/0x16/0x0/0x0) type:line snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0) snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0 snd_hda_codec_realtek hdaudioC0D0: dig-out=0x11/0x1e snd_hda_codec_realtek hdaudioC0D0: inputs: snd_hda_codec_realtek hdaudioC0D0: Front Mic=0x19 snd_hda_codec_realtek hdaudioC0D0: Rear Mic=0x18 snd_hda_codec_realtek hdaudioC0D0: Line=0x1a Output of alsa-info dumping everything it knows about https://pastebin.com/wCif6Qzv I'm stuck and don't know where to go from here. Since utilities like aplay and sound-test bypass PulseAudio I think it's a problem with Alsa or the device driver for this card. That's as far as I can discover on my own. Things I have tried === - Using alsamixer, confirming all volume sliders at max, none are muted. Maxing out all sliders is when I can barely make out garbled output through powered headphones. - Using Ubuntu Mainline Kernel Installer, signing it properly, and upgrading the kernel from 5.3.0 to 5.7.9 - Using `hdajackretask` and overriding jack plugin detection - Modifying PulseAudio config to not resample and force sampling to 44.1khz - Playing around with `pavucontrol` and kde equivalents, disabling the unused nvidia output and trying different jack configurations I also found some modprobe settings for Realtek devices, however usually that information was usually about 6-8 years old and didn't look relevant. Issue URL : https://github.com/alsa-project/alsa-lib/issues/69 Repository URL: https://github.com/alsa-project/alsa-lib