From patchwork Mon Apr 18 13:27:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maurizio Avogadro X-Patchwork-Id: 12818066 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 C81E2C433EF for ; Tue, 19 Apr 2022 11:54:07 +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 C3D3C17E9; Tue, 19 Apr 2022 13:53:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C3D3C17E9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1650369245; bh=oLR/pw3icfRlc0wqZvPHwVWCp/h1tW4289vnuBMtYwM=; h=Date:From:To:Subject:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=pakXm1CRG0ffCRLhJM8ifq9e/pntk+d4E78uQFbdjGykmcSVzlj24h7u6YwGDH0HM anpnhWIXKQXcyjEnQNO5ig8E2EQfaunK9fYtaeDJZ4+MAaJiBqnZUjBMBNwQ8jumnT KUxyenrIOFW2QXjh16Jp0uAMyBnlJ+nZVts81zT0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id CA80FF804FB; Tue, 19 Apr 2022 13:52:25 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id F3EE6F8014E; Mon, 18 Apr 2022 15:28:07 +0200 (CEST) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id A3A4DF80121 for ; Mon, 18 Apr 2022 15:28:04 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A3A4DF80121 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LJ5T0cy9" Received: by mail-ej1-x62d.google.com with SMTP id s18so26939534ejr.0 for ; Mon, 18 Apr 2022 06:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=nkYV7T1aixHjHVn90tgTWbE9t0QEJM6StqL3GUrlAlk=; b=LJ5T0cy9J4PoTu2Gd8yp/uT1fnd+pbUuNHOuNNn89UJS8blNpb3NIOyZFbECSoeQcL DcZzQARnZ/5ZPC0G2rwBGsqQfKnsgvJgIpgBoTEYQe8ioKPrrvjKkPVIuA69qqb4g8DY NWg1yC27X17kcs5BKDp57PF9wPy06dijZTrxb4V8xl0/5Evb4zQyPB3o8WFYc99ZXhJv Cb9za5/p+OORSs/5+nxe6YFmjXWDigF9v+v7TG5iAkOYanf+jsB7T48gUxEKlXLn2abz 7TG977jkIN85MD0Wzni8o/Dh8UxPcD/ECX13UaffuXbLncB0JHhYlFSgQ6BkfcD0d0IB Ez1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=nkYV7T1aixHjHVn90tgTWbE9t0QEJM6StqL3GUrlAlk=; b=a/2KQ6IoquhoUhKdCG2Ss9nqVHXR4Ygh7qUx4EWRo8I3N5ZDBbqTBtnZ4JGm+s+4s4 fCbkDjD5OxYZdbHTyrRKNq5WLh2MQ5Py9jihN5wG2oN7BX5vHw7ZRGP4MbQIJIlB+j9k T5t2/jTkTtngXe7SPd3CXLWBiquuD/xatId/8r34YKvDnuVO3zvY8UdzqS0o0zfnxCFs 6rzJ1kchPxL/fAnSXSYP2TKX2Jcwo1NcomNkYxACLxFJbUcy4+FZVsEcot3I1IEdbuOJ hqGnM4YkHeWzpMTqKpFSa4+VK/JY6XdCnJ5upU9NCsBl58lDgXSyGAH0jcrSmuOTtquC Zeeg== X-Gm-Message-State: AOAM532Z44G17odbzgg2IZ7BwtiNVEnL9QBastgPdKSPEmEUOc4cLuWy dTPWJCEDwAllOAaHLGlFQuXzolZARtU+EQ== X-Google-Smtp-Source: ABdhPJwWqLeK8fB27393z2QZpt7Z0xPsk0D8WVyrVl7h6EkfMopl9RFZbXWs6a/WiIcQSwI3zXri9g== X-Received: by 2002:a17:906:58d2:b0:6da:b635:fbf3 with SMTP id e18-20020a17090658d200b006dab635fbf3mr8830951ejs.40.1650288480437; Mon, 18 Apr 2022 06:28:00 -0700 (PDT) Received: from ryzen ([2001:b07:2e3:dacc:d3f3:c3c5:d3a2:5ee7]) by smtp.gmail.com with ESMTPSA id g16-20020a170906521000b006d58773e992sm4619829ejm.188.2022.04.18.06.27.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 06:28:00 -0700 (PDT) Date: Mon, 18 Apr 2022 15:27:57 +0200 From: Maurizio Avogadro To: alsa-devel@alsa-project.org Subject: [PATCH] ALSA: usb-audio: add mapping for MSI MAG X570S Torpedo MAX. Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Mailman-Approved-At: Tue, 19 Apr 2022 13:52:22 +0200 Cc: Andrea Fagiani , Takashi Iwai , linux-kernel@vger.kernel.org, Maurizio Avogadro , Timo Gurr 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" The USB audio device 0db0:419c based on the Realtek ALC4080 chipset exposes all playback volume controls as "PCM". This makes distinguishing the individual functions hard: the mapping already adopted for device 0db0:419c fixes the issue, apply it. Signed-off-by: Maurizio Avogadro --- sound/usb/mixer_maps.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/usb/mixer_maps.c b/sound/usb/mixer_maps.c index 64f5544d0a0a..7ef7a8abcc2b 100644 --- a/sound/usb/mixer_maps.c +++ b/sound/usb/mixer_maps.c @@ -599,6 +599,10 @@ static const struct usbmix_ctl_map usbmix_ctl_maps[] = { .id = USB_ID(0x0db0, 0x419c), .map = msi_mpg_x570s_carbon_max_wifi_alc4080_map, }, + { /* MSI MAG X570S Torpedo Max */ + .id = USB_ID(0x0db0, 0xa073), + .map = msi_mpg_x570s_carbon_max_wifi_alc4080_map, + }, { /* MSI TRX40 */ .id = USB_ID(0x0db0, 0x543d), .map = trx40_mobo_map,