Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1245638rwd; Thu, 25 May 2023 09:52:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ53D8jWxAV+q/vO8OGr2/GtERmDSQ6gpOkjWuV2jYFN31Q4zb2ODk1i5sLsxAPe8X44tQYR X-Received: by 2002:a17:902:da8b:b0:1af:cabb:87b6 with SMTP id j11-20020a170902da8b00b001afcabb87b6mr3091437plx.19.1685033535150; Thu, 25 May 2023 09:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685033535; cv=none; d=google.com; s=arc-20160816; b=OVhZAA30o+onpMcGeqs2DJRakBjkVOHUC6eU+sD2wsyX3uDbiJ6r6EfT/MULds4Ya5 pd10jrUdwh+sVIRltG33Ruza3AXet/tBh2Yb/bRKoUiJhPKMJCuOxgdKTtzAzzLqN5IP JLJE7sNahZkgY+1Pc8bhAXY4SMXijJL3OaZQV0y015qeXXiVQYAnQmEd5LWyrNapQtOg VYk+aGjExf+3C6G1osbsXpYjXTD4r2qtJY2yHE1TwBfr1aqKEpp1Srl7darXA0GOTn/5 MY2k8jLchwWvsncjZpeQ8Lp22vsnNvpvcJw5PmFIgtcwOhEo6GXPBZv9/uY9uavfLooK eQcQ== 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=M2YKopLxZMLl8vrX3KUNYgd6icfb+EplOAS2b0jtiEpTQyFE0/HZyZcGJO31H3eS3f w0tFxrCvJCeTyhs+4u0btCh5OQ3SfU3h7lTcXtCQA5xvZUcA0Q2LJgjaZ7MJLjVQXrkG eFJDsFRHdmZ65EN5Fray6ZFteqSaWUjTHXtf5A6ASfJTn9hKLkX0jMPDeKhwYlJtB+4k SfEWq5SqKxvaM8KUkhIzOZO0erwya+F4cdLlQTs5N6powbovQHSf2Vdfwd4eDnDu/wFq 3O51wGkGbbQyELRo+JBhoFI2wMHxyFpd1pac5An9qZlB0sm0pWv6yYsShs6CrEwsWyt2 oIDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=P6kEFVpu; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 10-20020a170902c14a00b001a6d9cd5560si1787486plj.541.2023.05.25.09.52.00; Thu, 25 May 2023 09:52:15 -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=P6kEFVpu; 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 S240278AbjEYQ0y (ORCPT + 99 others); Thu, 25 May 2023 12:26:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240035AbjEYQ0m (ORCPT ); Thu, 25 May 2023 12:26:42 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 584F0195 for ; Thu, 25 May 2023 09:26:41 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34PEEWVI026032; Thu, 25 May 2023 11:26:29 -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=P6kEFVpuJvyAnQwgq2Hm33yzvTv7GYqe43Y9dRtOA3AQ+S2JeG73bAvWPrHULjIQ3wiW 155txzq0SbmhsJ2+Ct4b8tfN+je3KSYgFvGTNwov+GL3arsBxkcD4UT+/tvj0WN5q8H9 oHN75MXyn11YC4GmqjhV3Ogdyftl8OwSgKG6DAdShsB0sFR17gr91he58JgfABmCpxfT Lh66byOnAF7GXkt45/feDtOLMumPmZKZSZS4RtGPV2MyuhsVMAgqKGT/W+FqX0U18cxe hNE2P4v4bZIT3nO1Z5JADNkc3ExXMu1R8sgPiaj/V2cSD8kn5DpxPLwTK23goZfy74Uy 9g== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3qptmm74vu-7 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 May 2023 11:26:29 -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, 25 May 2023 11:26:26 -0500 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, 25 May 2023 11:26:26 -0500 Received: from EDIN4L06LR3.ad.cirrus.com (EDIN4L06LR3.ad.cirrus.com [198.61.65.166]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 9186011D4; Thu, 25 May 2023 16:26:26 +0000 (UTC) From: Richard Fitzgerald To: , , CC: , , , Simon Trimmer , Richard Fitzgerald Subject: [PATCH v2 11/12] ALSA: hda: Add mute_hook to hda_component Date: Thu, 25 May 2023 17:26:17 +0100 Message-ID: <20230525162618.20146-12-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230525162618.20146-1-rf@opensource.cirrus.com> References: <20230525162618.20146-1-rf@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: vk3diJfc1zPjVbj6gAe0NQ2fVR7GRDy2 X-Proofpoint-GUID: vk3diJfc1zPjVbj6gAe0NQ2fVR7GRDy2 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,URIBL_BLOCKED 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 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); }; -- 2.30.2