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=-5.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 A31A8C28CBC for ; Sun, 3 May 2020 07:43:27 +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 2F5C520836 for ; Sun, 3 May 2020 07:43:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="XoMfDFdA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2F5C520836 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 7AA6416BF; Sun, 3 May 2020 09:42:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7AA6416BF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1588491805; bh=sO1JAlOmiuZxsYu5m4rGGqVO2uRoE/s5bmaq/9yETH4=; h=From:To:In-Reply-To:References:Subject:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=XoMfDFdA+31qR0xUzogb/IQOXgi7TT4Q4G2RGOn6KeI0kEC5QanU3H7JewsJQAsbD AW8jvaXKVgqFdJeF7HXY3YMexpGvgMh3HwIH2O1f6ClATPh1IqTyrEBYt0po4iV/VQ GwREnn8ZmuoPGFQBsvF9y3LHzxNDXVj25/l55OrQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 0CB2CF800EE; Sun, 3 May 2020 09:42:35 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B0BF6F8015F; Sun, 3 May 2020 09:42:22 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (gate.perex.cz [77.48.224.242]) by alsa1.perex.cz (Postfix) with ESMTP id 136E7F800EE for ; Sun, 3 May 2020 09:42:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 136E7F800EE MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub issues - edited To: alsa-devel@alsa-project.org In-Reply-To: <1588491739855946064-webhooks-bot@alsa-project.org> References: <1588491739855946064-webhooks-bot@alsa-project.org> Subject: helem (MIXER, 'Master Playback Volume', 0, 1, 0) appears twice or more cannot load mixer controls: Invalid argument Message-Id: <20200503074222.B0BF6F8015F@alsa1.perex.cz> Date: Sun, 3 May 2020 09:42:22 +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 #47 was edited from igrekster: I have a PCIE Asus Sound Card (Asus Xonar AE) that uses USB interface: ``` Bus 003 Device 002: ID 0b05:180f ASUSTek Computer, Inc. ``` It's been working fine on earlier versions of kernel/alsa-lib but at some point the volume control stopped working (the playback still works fine): ``` $ alsamixer -c 1 ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.2-r1/work/alsa-lib-1.2.2/src/mixer/simple_none.c:1544:(simple_add1) helem (MIXER,'Master Playback Volume',0,1,0) appears twice or more cannot load mixer controls: Invalid argument ``` This is on kernel 5.4.37/alsa 1.2.2. Unfortunately I cannot downgrade to the point when it was working to pinpoint the issue. I tried kernels 5.3.11 and alsa 1.1.8. I've tried building the latest alsa-lib, and it is still showing the error. I'm happy to try patches to alsa or kernel modules to help debug this. ``` $ amixer -c 1 controls numid=7,iface=CARD,name='Clock Source 18 Validity' numid=10,iface=CARD,name='Clock Source 19 Validity' numid=17,iface=CARD,name='Clock Source 22 Validity' numid=11,iface=CARD,name='IEC958 In - Output Jack' numid=18,iface=CARD,name='Keep Interface' numid=14,iface=CARD,name='Line - Input Jack' numid=12,iface=CARD,name='Mic - Input Jack' numid=8,iface=CARD,name='Speaker - Output Jack' numid=20,iface=MIXER,name='Master Playback Volume' numid=19,iface=MIXER,name='Master Playback Volume',device=1 numid=5,iface=MIXER,name='PCM Playback Switch' numid=9,iface=MIXER,name='PCM Playback Switch',index=1 numid=16,iface=MIXER,name='PCM Capture Source' numid=15,iface=MIXER,name='Line Capture Switch' numid=13,iface=MIXER,name='Mic Capture Switch' numid=6,iface=MIXER,name='Input Gain Pad Control' numid=4,iface=PCM,name='Capture Channel Map' numid=1,iface=PCM,name='Playback Channel Map' numid=2,iface=PCM,name='Playback Channel Map',device=1 numid=3,iface=PCM,name='Playback Channel Map',device=2 ``` `amixer -c scontrols` fails withe the same error as `alsamixer`. A few more details: [alsa-info.txt](https://github.com/alsa-project/alsa-lib/files/4569764/alsa-info.txt) [proc-asound.txt](https://github.com/alsa-project/alsa-lib/files/4569766/proc-asound.txt) Issue URL : https://github.com/alsa-project/alsa-lib/issues/47 Repository URL: https://github.com/alsa-project/alsa-lib