Message ID | 20230920155450.576287-1-sbinding@opensource.cirrus.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4381119vqi; Wed, 20 Sep 2023 12:40:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF1i2aWDfTzZEi8k4kVc3ZPju0Qnefwz6B0UGWG7CcDPZfTqAJ+hnpXYgaStggXm2B+wuKE X-Received: by 2002:a17:902:e546:b0:1bf:7dfd:5b05 with SMTP id n6-20020a170902e54600b001bf7dfd5b05mr8233036plf.27.1695238818198; Wed, 20 Sep 2023 12:40:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695238818; cv=none; d=google.com; s=arc-20160816; b=r/ysQDq2rZOG9AMo0NYnzbPPppdh8+FYFQ+78bI7ZfSbsI0eoqAlR1KA3SrVM7wt0T iXuBuEgsBzF7qux3RqoLBIZmm7xgLvx52Q01NpCHhub3lvFB/XCDNTbhI/RrdyBNb88V y+HKoe37ruv7tGGvEGut2Fxj3ATTziK7yjpuUNWBHk3SFPszaKESHsHNsNsGK6Qo5X3Y G89CzfzERmthFicUvUhryuT0Itd1nVgvGhlgkdMbbumLBF9xV1ZstFYTXwya0M2CDUYr OHviuHJzMU3GTt2EVk7AomLm5FY34oT8inIDseZe+3W4x3fmKHQARAa9j0o28pQI775b yg8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/BLxOc/tkBmcLEyGBDmhNnSyPG+SVhl9atiXF3hiU6g=; fh=w0YUzQ46fBcI9TSX4/vlEjRtiHb0kiqukhFXye02PR8=; b=iWloF6JrAzPose6HR7iiCzQ0VqN+0OyQTzBGmxRI+NyRXSRFSPpqfi0v6b47JAf7Xl gL7nMtAXTFh22z9EVcCKMJohdzvqMBqrPDbQ+/5HGwQp/R5OqTk590oMs3VjwhufN3le NsYPHmG0GzbxIB2jqo8yb98BHxMDnukPkZZGgG0mprelyz74x3L1UVZxC7+PEXN01pae PenAryC/Df8+JtAMEkPjfH1Wa4HM6ireqXvunp2wsAVHUKiKYLvSGi5yFiqQw+QTjs+s rdtpLwEI5CMUPrfI6EdgHwbsm3VuqRxPHVIKQbSw/srt4V0LAzHQv5I+DgKo7IGPliFm afJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=KfC4n0lH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y64-20020a638a43000000b00578b37ad24bsi3961599pgd.619.2023.09.20.12.40.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 12:40:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=KfC4n0lH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 68D86829C30A; Wed, 20 Sep 2023 09:34:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234784AbjITQeM (ORCPT <rfc822;realc9580@gmail.com> + 27 others); Wed, 20 Sep 2023 12:34:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234773AbjITQeH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 20 Sep 2023 12:34:07 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D782DE5 for <linux-kernel@vger.kernel.org>; Wed, 20 Sep 2023 09:34:00 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38KFt6MX023727; Wed, 20 Sep 2023 11:33:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=PODMain02222019; bh=/ BLxOc/tkBmcLEyGBDmhNnSyPG+SVhl9atiXF3hiU6g=; b=KfC4n0lHvxP+ihzuD IkYtwTBsPjnPqZMaHby2Byy6Ny1bZhHhNPBb/f2V8/mS9y3i5OEJzAI97GpRFu2Q E4oaJ4KFn8BWUHdsC0itH5kOLNwSmmN/fvATnd0Ngaxm1mJfnKfNVY+O72ThkLVT YyM2A+BXkT/AsWxbKshA0KnqZ4dV2L3C0F3VANiiSzfjk1zRkq7M7vonBlQBSrXs 9oXHPElq5MkRyE8xSAlN7M9tLvBp9/ihRQfsLDQNrBY/xyrMpq2oE9UM+uhOxgC5 bt0t6e/MrUpD7A6/Bq50abi2ZozhQLxdgYSdui3kA0Ey8DCBWFT1rwowLtG2oley 5Syqw== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3t58shvnd5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Sep 2023 11:33:38 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Wed, 20 Sep 2023 17:33:36 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.37 via Frontend Transport; Wed, 20 Sep 2023 17:33:36 +0100 Received: from sbinding-cirrus-dsktp2.ad.cirrus.com (unknown [198.90.238.135]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 5D9FC458; Wed, 20 Sep 2023 16:33:36 +0000 (UTC) From: Stefan Binding <sbinding@opensource.cirrus.com> To: Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com> CC: <alsa-devel@alsa-project.org>, <linux-kernel@vger.kernel.org>, <patches@opensource.cirrus.com>, Stefan Binding <sbinding@opensource.cirrus.com> Subject: [PATCH v4 0/4] Support mute notifications for CS35L41 HDA Date: Wed, 20 Sep 2023 16:54:46 +0100 Message-ID: <20230920155450.576287-1-sbinding@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: uF6gvtROUZ6B4XvAkqDpBQLy8315B14s X-Proofpoint-ORIG-GUID: uF6gvtROUZ6B4XvAkqDpBQLy8315B14s X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 20 Sep 2023 09:34:23 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777586738714886159 X-GMAIL-MSGID: 1777586738714886159 |
Series |
Support mute notifications for CS35L41 HDA
|
|
Message
Stefan Binding
Sept. 20, 2023, 3:54 p.m. UTC
Some systems use a special keyboard shortcut to mute speaker audio. On systems using CS35L41 HDA which have this shortcut, add a mechanism which uses ACPI notifications to determine when the shortcut is pressed, and then mute the amps inside the driver. Since this is not a normal mute mechanism, it does not go through userspace. To allow userspace to be able to track this special state, add an ALSA control which tracks the state of this forced mute Changes since v2: - Fixed compile issue when CONFIG_ACPI is missing Changes since v3: - Split first patch into 3 separate patches - Ensure all acpi code is protected by check for CONFIG_ACPI in realtek driver Stefan Binding (4): ALSA: hda: cs35l41: Add notification support into component binding ALSA: hda/realtek: Support ACPI Notification framework via component binding ALSA: hda: cs35l41: Support mute notifications for CS35L41 HDA ALSA: hda: cs35l41: Add read-only ALSA control for forced mute sound/pci/hda/cs35l41_hda.c | 132 ++++++++++++++++++++++++++++++---- sound/pci/hda/cs35l41_hda.h | 3 + sound/pci/hda/hda_component.h | 4 ++ sound/pci/hda/patch_realtek.c | 83 ++++++++++++++++++++- 4 files changed, 208 insertions(+), 14 deletions(-)
Comments
On Wed, 20 Sep 2023 17:54:46 +0200, Stefan Binding wrote: > > Some systems use a special keyboard shortcut to mute speaker audio. > On systems using CS35L41 HDA which have this shortcut, add a > mechanism which uses ACPI notifications to determine when the > shortcut is pressed, and then mute the amps inside the driver. > > Since this is not a normal mute mechanism, it does not go through > userspace. To allow userspace to be able to track this special > state, add an ALSA control which tracks the state of this forced > mute > > Changes since v2: > - Fixed compile issue when CONFIG_ACPI is missing > > Changes since v3: > - Split first patch into 3 separate patches > - Ensure all acpi code is protected by check for CONFIG_ACPI in > realtek driver > > Stefan Binding (4): > ALSA: hda: cs35l41: Add notification support into component binding > ALSA: hda/realtek: Support ACPI Notification framework via component > binding > ALSA: hda: cs35l41: Support mute notifications for CS35L41 HDA > ALSA: hda: cs35l41: Add read-only ALSA control for forced mute The patch 3 doesn't seem applicable cleanly. Could you rebase the patches on the top of my for-next branch? thanks, Takashi