Message ID | 20230414152552.574502-5-sbinding@opensource.cirrus.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp467631vqo; Fri, 14 Apr 2023 08:30:23 -0700 (PDT) X-Google-Smtp-Source: AKy350YCq/mDSfjgx5nB76x6X87p0cgH6LoZJsRnPTy5fbiK2YhE7z4DWAc57SKBKmvzatWX9SH9 X-Received: by 2002:a05:6a00:1acd:b0:635:a4fb:35e2 with SMTP id f13-20020a056a001acd00b00635a4fb35e2mr9186460pfv.3.1681486222895; Fri, 14 Apr 2023 08:30:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681486222; cv=none; d=google.com; s=arc-20160816; b=oPtSzm8Y1I6or761lHSrXLxmF8A+eXl0U9Q/IozSTFan7EKQK4gtXtv/t+ymTFXBRD fMCjYt7ttjnwQo2PQA7zFqpcBKKZgLEXiqvvCcO16bP4WH2YZn+WwItA+cpZnOOxhl3x ire58sIeFaJPN/Ag+XuaG1TeynlqYQkJ4lvz6aZx7I6FybZ2qGYdSTZVIHDU3oi9L4zJ hvmmT8c6IZ+/aecblRkBe2RpAh+gxlufSR4oh00N9md9zyHIHn9pO8Qgj8yf8XWlZYjT QOOwpLGYWJyL4DAGV6YzAiICEoOijTyqOyqZK4vsBDLZOMNTaY3MVGTEdmzuWPMDHQb4 EqWw== 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=uiepQRJc6hSwibfyXox6IpHGvJY0zVutwuW3J5LXHm8=; b=myMpHdqxU71syAaahhF00WXQqdsl1Kw5IvZ5dhIBQk6liXD55gtSy/ErPPefYxRHxV 1Gt+eIjGWG6pP107RvNURMgX8VfuG2vDDwUIkTFhBvAUvyhqXoFwWsHY60lWIu8lgsyM jpJ3Lk4wYyYlCT1EQifJ/Ao4sPP7NB7GERAnAgZRZiz/zMmc1lKnIWFLOnAjIYJVfkoS RqTbstmN8n/oX4h7CU9PQjafV90Xr4/QrZQ+k21RxnemZU2uOlDLmCZEPnHy0um7kjx/ TMjGxND/gJMbwhOVTal48bckbd/f290dg4UFy89aU6r8/RTxHPD+dkvkqBHpI4gjbxbV z5Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=lffR9rAF; 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 124-20020a620682000000b0063b1421d10fsi4517831pfg.222.2023.04.14.08.30.06; Fri, 14 Apr 2023 08:30:22 -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=lffR9rAF; 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 S229950AbjDNP1a (ORCPT <rfc822;leviz.kernel.dev@gmail.com> + 99 others); Fri, 14 Apr 2023 11:27:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231349AbjDNP1K (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Apr 2023 11:27:10 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCEF0FF2A for <linux-kernel@vger.kernel.org>; Fri, 14 Apr 2023 08:26:34 -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 33EDVEGp030487; Fri, 14 Apr 2023 10:26:03 -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=uiepQRJc6hSwibfyXox6IpHGvJY0zVutwuW3J5LXHm8=; b=lffR9rAF2TvlA5UVdy2L784HaL99xv6BEHVEVqtxMGmiSImaAEBm8a+hm97At8fmn49Z Y15Hu9cxquqpWi/5ApRHSpOqjTSEslpVaBVQiNmj2zMLVMo2kGdp306fYsiCJUr7HSM6 UhbXCVI/7Dnj+iIqIDZ0b5reAPGh9D6azwwWXn/7tk7uIebRI1UVqATtRJvyCkFW4yuL 1Ff9PNaKlpfwu4O8hdBUWKqb5NpR6imTE33QJpogBpdKAyU4K7Uj+rmC1un2nX46NjZe N/27btx8c3WXXdLcBbMH1xldfJlcY++fkrofl3hcd+EvdRTUQDEPdR9++E6oV/Fj7vRA Xw== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3pu5p3skxn-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Apr 2023 10:26:03 -0500 Received: from ediex02.ad.cirrus.com (198.61.84.81) 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; Fri, 14 Apr 2023 10:26:00 -0500 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.26 via Frontend Transport; Fri, 14 Apr 2023 10:26:00 -0500 Received: from sbinding-cirrus-dsktp2.ad.cirrus.com (unknown [198.90.238.135]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 0980845D; Fri, 14 Apr 2023 15:26:00 +0000 (UTC) From: Stefan Binding <sbinding@opensource.cirrus.com> To: Mark Brown <broonie@kernel.org>, 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 v1 4/4] ALSA: hda/realtek: Delete cs35l41 component master during free Date: Fri, 14 Apr 2023 16:25:52 +0100 Message-ID: <20230414152552.574502-5-sbinding@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230414152552.574502-1-sbinding@opensource.cirrus.com> References: <20230414152552.574502-1-sbinding@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: E2mLVeeRv9wTXg4ldyB9dpCwOjvo4cvB X-Proofpoint-GUID: E2mLVeeRv9wTXg4ldyB9dpCwOjvo4cvB 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: <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?1763166098036386547?= X-GMAIL-MSGID: =?utf-8?q?1763166098036386547?= |
Series |
Fixes and cleanup for CS35L41 HDA
|
|
Commit Message
Stefan Binding
April 14, 2023, 3:25 p.m. UTC
This ensures that the driver is properly cleaned up when freed.
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
---
sound/pci/hda/patch_realtek.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 3b9f077a227f7..bbeffbb84091e 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6757,6 +6757,8 @@ static void cs35l41_generic_fixup(struct hda_codec *cdc, int action, const char else spec->gen.pcm_playback_hook = comp_generic_playback_hook; break; + case HDA_FIXUP_ACT_FREE: + component_master_del(dev, &comp_master_ops); } }