From patchwork Thu May 25 13:59:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Binding X-Patchwork-Id: 99038 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp392158vqr; Thu, 25 May 2023 07:02:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5xlluOjZoZjuOJK72VlDML1tkOJLvRzYyC4rYkKG2YeN7BWJrNtRC3ooOLws9RZMve0KbI X-Received: by 2002:a05:6a20:d817:b0:101:2160:ff8f with SMTP id iv23-20020a056a20d81700b001012160ff8fmr19741274pzb.11.1685023326929; Thu, 25 May 2023 07:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685023326; cv=none; d=google.com; s=arc-20160816; b=ycBTG0WkUEuHb1o8JLdYKiu+FJKJjriOiObyOLHfm+tuEQLVGJuoZe/ok2PYl6vPuQ sEqoqkb/yKKynsLq4/vc2urJngDI15RjaQ9uOSJnWipLHLbv6oLXLNUOhiGcbOWQHfi7 AlOeMAPPrUMqQTcZiNwoXSL2J3FRK3pOo9g5CZ3YANUCj6xNxoU86N7BgeUGKyvDGTvE DnQAAg/Nfn5FsV+hwYP7OeQbik2MlukJENjcrIL4Be94c9moD6mPFTnee5WRvkiHW9KE 1s5lqDeIrb16PqcUApusFev8iV6DgZT1fjPA4RbZCBjfDcu72Rrue9CSjG3hty+xuHNy w0jw== 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=6wz2vaNUW7aZwUs1r4Wrw1zVQNO/7hVTjslreqKkGKE=; b=krYWr6CIg6032IMltAmhlzQcBJKksUgnRIT7WNRs/lDtFKNqmI3Vg7WP9is7z8WTFJ vrwwKqv63KeRy5bIfeTcNvy9rKdGpC+1P0OWENvVRDfqvWW8wA0/o8hZfs7AYy50ZuhE +WqigjWoUef3+L+cOujjBGoNbRRIwZ/eyA6NA2ENhAMDMHUDhXt5pwi73wcZyGCXH+/5 izpja030TWvr1eEDVMUnQysZKrSvOnBkUk7OvW3sd8MzK6o1h9e7lSJUADJr6J1vcKmh HL70I+nQF058SCnNde3kitFY0L1gj9dwpyZwZNAZPge2SYJol4Y4EwIwDH36LOPa6GHP zuMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=KXx5GHEJ; 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 d185-20020a6336c2000000b00538edfb070dsi1127670pga.478.2023.05.25.07.01.53; Thu, 25 May 2023 07:02:06 -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=KXx5GHEJ; 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 S241438AbjEYOAh (ORCPT + 99 others); Thu, 25 May 2023 10:00:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241443AbjEYOA2 (ORCPT ); Thu, 25 May 2023 10:00:28 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71213E44 for ; Thu, 25 May 2023 07:00:19 -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 34P8Mm6P016336; Thu, 25 May 2023 09:00:06 -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=6wz2vaNUW7aZwUs1r4Wrw1zVQNO/7hVTjslreqKkGKE=; b=KXx5GHEJEI67PDyzhvihgN06vrxfDxinV/ILLli7yUj4tFC5YZ1UAzRCRz+KcGVaJZDv f1hNMLXayHEuok1FW+Fl4Dc/bbhUNW7C/CjLr8pJz/Z2vd58uulg5aGNafD0IdrsBRLT hLdj0X0XkMDGVxUZ6VfoQYWAUpLF2T6xQeFfafICdvRzX7N+4fHEop1eUIciNjnwZpG8 SfrbZ0Ai24Nw6SKbTTme7H/QoXIoa/5j4oQ2p9dMkBAradaAMuxSHgJfxwsuiDXaDjCT UHRcZcxT5JKysfoVpif6CCenxHLHyiEsEPqxDT6fvEB9F8IOSSkMWIo5fA3PU4QHy8x/ fw== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3qsde8hsqk-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 May 2023 09:00:06 -0500 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.26; Thu, 25 May 2023 09:00:03 -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; Thu, 25 May 2023 09:00:03 -0500 Received: from sbinding-cirrus-dsktp2.ad.cirrus.com (unknown [198.90.238.43]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 8DE8815B4; Thu, 25 May 2023 14:00:03 +0000 (UTC) From: Stefan Binding To: Jaroslav Kysela , Takashi Iwai CC: , , , Stefan Binding Subject: [PATCH RESEND v1 3/3] ALSA: hda/realtek: Delete cs35l41 component master during free Date: Thu, 25 May 2023 14:59:55 +0100 Message-ID: <20230525135955.2108140-4-sbinding@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230525135955.2108140-1-sbinding@opensource.cirrus.com> References: <20230525135955.2108140-1-sbinding@opensource.cirrus.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: nxDTKbOQ0DHagdHqVxAuRyG70FBAwcGv X-Proofpoint-GUID: nxDTKbOQ0DHagdHqVxAuRyG70FBAwcGv 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766875019885040853?= X-GMAIL-MSGID: =?utf-8?q?1766875019885040853?= This ensures that the driver is properly cleaned up when freed. Signed-off-by: Stefan Binding --- 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 7b5f194513c7b..e3774903918fe 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); } }