Message ID | 20230525150659.25409-13-rf@opensource.cirrus.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp453486vqr; Thu, 25 May 2023 08:23:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Om6V/M/FAj5GNKOjdbzRLs3v1oDsRYzgDYbTsxWNUWEmtNFOf4uzoKt6p+8IzM8NvcBJE X-Received: by 2002:a05:6a00:1ad3:b0:646:f971:b179 with SMTP id f19-20020a056a001ad300b00646f971b179mr4309283pfv.16.1685028194729; Thu, 25 May 2023 08:23:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685028194; cv=none; d=google.com; s=arc-20160816; b=DecvMXGyIxo7nEtuECONN+c6SJpX0cDrOU0boVhiyB+QVH+cvs4rqyLz/hF6LnIriF eeBH17EvKV1dpANhc1yBegJUg/6Isyv7gPRLyEonHiIi5crWzxblKr3gof6DZg059Qzh kBbOagMidNoJMUXifgcmnS6h904KbaMIcFoWB8VeoIVmZ5iioEDEfY5dXiPTlqXvJA5O ddPijyIuJZPIrfl2V45GtUYKunby/CcJvLyno4kjkx8h1Iq+JQeC71fqqH30sVXaX9HG /0/ju5n6Bpm7Jc6UhMNZXFiOcNZdriCIcym7B1fSq8VOVycQ0ifi4U6St+n/pzCgVr9n pHtQ== 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=j//rrUQxfVzCsUnk1XwChpztnzLzgjWb6qOLJ/wITKRA4sGiJwGB9JmYCvwnCwQshc nCsEfRlh1ovxmiXD3lPXxW8i3VGJeP7pm8XZpPa+r5HWNTNjJcxATq0x1QZm/YWSvR7j NwHeW4hSHY2Jan5QcObdqQVLkYqyDndwqSUs278VwVZsZyuFJR8jUAwh4dnqrZEwI2Lk ZouXNYHvXdk3JU3H8Wn9WyiSrZRQ5vfo8EfqZDlh6zop/Ntk/0KNUQIwL8YoXQiDFPZ4 rHjpdthL/5fCt+8P5qoRBSwfTvksaxzZEvHvDglTF+nWLbAAv1QLzHJS2umqbLb7sgZo PCPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=LtAXdCbv; 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 a78-20020a621a51000000b0064d430f104csi1679605pfa.206.2023.05.25.08.22.59; Thu, 25 May 2023 08:23:14 -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=LtAXdCbv; 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 S241469AbjEYPHi (ORCPT <rfc822;ahmedalshaiji.dev@gmail.com> + 99 others); Thu, 25 May 2023 11:07:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241418AbjEYPH3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 25 May 2023 11:07:29 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A1F4195 for <linux-kernel@vger.kernel.org>; Thu, 25 May 2023 08:07:28 -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 34PEE1BM025344; Thu, 25 May 2023 10:07:09 -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=LtAXdCbvW5NSrZQ8cS39eUMbu1ycBu3EFttFCBuWPBMTO7tzN/s5V3ipxhWNhdakKXqC /XYBBf9cVAnHbzlYv/t7M+bmTkAmxvUGixe7ZppKy+wn50TEMrM7KcMFVNJKx6wK5b6T 6PUOcfmY4ICjuLz+tAkY3OIvjwyJ4tVlU67RSKCLqS+8f/P0Oerfx1TeMTscLh8ccpG5 Ph1BJWSZdLCCMPRmIGOZRtpqp1OxC/UNRAgkqABQdHW/an+cPHq2GGUtxFWscIALKYYa +yGqbXZ3qyZZm7T85EQyasKAMyF29goG1VpHCkchXO4ytP4PIaBwtak6/A5xrOCMUvgZ eQ== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3qptmm70m7-8 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 May 2023 10:07:09 -0500 Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) 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 10:07:06 -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 10:07:06 -0500 Received: from EDIN4L06LR3.ad.cirrus.com (EDIN4L06LR3.ad.cirrus.com [198.61.65.166]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id DEAA211D4; Thu, 25 May 2023 15:07:05 +0000 (UTC) From: Richard Fitzgerald <rf@opensource.cirrus.com> To: <tiwai@suse.com>, <broonie@kernel.org>, <perex@perex.cz> CC: <alsa-devel@alsa-project.org>, <linux-kernel@vger.kernel.org>, <patches@opensource.cirrus.com>, Simon Trimmer <simont@opensource.cirrus.com>, Richard Fitzgerald <rf@opensource.cirrus.com> Subject: [PATCH 12/13] ALSA: hda: Add mute_hook to hda_component Date: Thu, 25 May 2023 16:06:58 +0100 Message-ID: <20230525150659.25409-13-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230525150659.25409-1-rf@opensource.cirrus.com> References: <20230525150659.25409-1-rf@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 4DrHpUnrl3chcdxd2AUH9XExnQfg4cst X-Proofpoint-GUID: 4DrHpUnrl3chcdxd2AUH9XExnQfg4cst 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766880124324438135?= X-GMAIL-MSGID: =?utf-8?q?1766880124324438135?= |
Series |
ALSA: hda: Adding support for CS35L56 on HDA systems
|
|
Commit Message
Richard Fitzgerald
May 25, 2023, 3:06 p.m. UTC
From: Simon Trimmer <simont@opensource.cirrus.com> 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 <simont@opensource.cirrus.com> Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> --- 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); };