From patchwork Thu Jun 1 15:47:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Fitzgerald X-Patchwork-Id: 102059 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp432467vqr; Thu, 1 Jun 2023 08:55:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5XA8VzRkkfLpDAqnKhC/sm4belI+ye4pLRPuivmHt5qsquiSuATtZCB6TrSqtTdGqYDNh9 X-Received: by 2002:a05:6a00:1aca:b0:64d:1d84:aeb4 with SMTP id f10-20020a056a001aca00b0064d1d84aeb4mr8596435pfv.24.1685634939807; Thu, 01 Jun 2023 08:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685634939; cv=none; d=google.com; s=arc-20160816; b=VBIq1PICGMKaZ2ZpFCSM3zWSSLm30XPnwEYvWSNCNm0VO5dQtqMtieBZs7Oyr55NZd xirW0zoNTKgtXLRg+1Ew34fr66HkyCsTGwOpbfQTtdUibK11Y2klj198Dwlrkb0CVL6W H/b1S3ZWJUgnV6VsN5Z/rCZ+QOIJSBGN+oKvVBd52mfG9xioUV4xFzQU2cNPu0GGI5s0 sbwzSwaYzd+DjK+OaBee9p9nhBzLIeX1nesCwrq/uiD4u4RDCfYEmoDQc3OqYWif86m6 5FV3J/TaYX3ghES7dG20PEzFm/1oRvp3dxSfKo8BT2zaSYz68BrEXBmq59Tw3/WXfIus bT4w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2PmIs0Q08Dk6L0sS+J7nSOBP8MhP2M6e7/lxtiv4sR0=; b=Dq78XIbJUXlfrhN8I+QJrRUDwKjIghiYmjJTwagl7GNfcbHsYAhtYQBSoN42sRVfUm FFJlJuhwlV5HOSMFG4t8yXUKlVwtLU4oTbnYsBBKtX6+McfsvJMZEOqvotaqxTfbgwzr YmAgBXn2NseO5UL0dEERPbQxIv4jY7njYAeYkUl1SyA15uFR6ve3G4YMWNVi/moHf+5u U/WfRViGnIacDMTFmJ5HRCw8vhLfBNtUDyf3uZpm9U/Pxbqny5T7MHIIzDnVt0SYZLi9 W5DxLTqFmZ37xSxj2qNbFNahq9VIR4bf1YzQlRRL0kCaLHChLyOCMR46JFm9LXEetsUY mG0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=NlM66qHE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020aa79806000000b0064f1f169b61si5540865pfl.218.2023.06.01.08.55.24; Thu, 01 Jun 2023 08:55:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=NlM66qHE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233505AbjFAPrz (ORCPT + 99 others); Thu, 1 Jun 2023 11:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232319AbjFAPry (ORCPT ); Thu, 1 Jun 2023 11:47:54 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CAD5F2 for ; Thu, 1 Jun 2023 08:47:53 -0700 (PDT) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 351CPISb014930; Thu, 1 Jun 2023 10:47:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=2PmIs0Q08Dk6L0sS+J7nSOBP8MhP2M6e7/lxtiv4sR0=; b=NlM66qHEOFu4NNxgOZ7t1ao0wMUYNrj/F5L5mCMJK8/e3lCb27hHx/BbzLBNrUxbmGqb lw/jhq9vP+x8/Y7TNAsbolDL5mxgRXiHqC+nSC8/mk+acR+ldT5iIYuldK/96PG/B7L0 ifmarhFI+4NMuAer8sWevHtJ6t6E98cWk+LZnlIv/9dR2xsU1vVE0k2BXhvTKL3chsI5 GSX4wmVfqCRrvM06UDuI+b4YQHO2VEGP8BuSXn1FEaqxi15Riuj0vBWuZthpby4DVCIK Ox02aKIfWwPVdFF4cYcrXNGNU/13y3cxLKTdlBfFbZMIY9PLdu5XL5eij8L4m7zi9LPf gQ== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3quf90x42d-7 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Jun 2023 10:47:38 -0500 Received: from ediex01.ad.cirrus.com (198.61.84.80) 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.26; Thu, 1 Jun 2023 16:47:32 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 1 Jun 2023 16:47:32 +0100 Received: from edi-sw-dsktp-006.ad.cirrus.com (edi-sw-dsktp-006.ad.cirrus.com [198.90.251.127]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id E7DC315B7; Thu, 1 Jun 2023 15:47:31 +0000 (UTC) From: Richard Fitzgerald To: , , CC: , , , Simon Trimmer , Richard Fitzgerald Subject: [PATCH v4 11/12] ALSA: hda: Add mute_hook to hda_component Date: Thu, 1 Jun 2023 16:47:30 +0100 Message-ID: <20230601154731.3210572-12-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230601154731.3210572-1-rf@opensource.cirrus.com> References: <20230601154731.3210572-1-rf@opensource.cirrus.com> MIME-Version: 1.0 X-Proofpoint-GUID: hzxxi4eL9sSZKMDNWlAMEAkYhXIyzHOG X-Proofpoint-ORIG-GUID: hzxxi4eL9sSZKMDNWlAMEAkYhXIyzHOG X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767516342215613229?= X-GMAIL-MSGID: =?utf-8?q?1767516342215613229?= From: Simon Trimmer Add a hook into hda_component to allow the amplifier mute to be controlled by the owning HDA codec driver. Signed-off-by: Simon Trimmer Signed-off-by: Richard Fitzgerald --- sound/pci/hda/hda_component.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/hda_component.h b/sound/pci/hda/hda_component.h index 534e845b9cd1..2a2dfed3aed4 100644 --- a/sound/pci/hda/hda_component.h +++ b/sound/pci/hda/hda_component.h @@ -16,4 +16,5 @@ struct hda_component { char name[HDA_MAX_NAME_SIZE]; struct hda_codec *codec; void (*playback_hook)(struct device *dev, int action); + void (*mute_hook)(struct device *dev, bool mute); };