From patchwork Mon Oct 23 09:54:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TWFzbyBIdWFuZyAo6buD5Yqg56u5KQ==?= X-Patchwork-Id: 15750 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1182646vqx; Mon, 23 Oct 2023 02:56:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+WTV9EDTpG18dZPXgtVCFw3n618kyg0SGSPSXeYtust6eAxdy0nSmxX9PIJU6b+EN9u5Y X-Received: by 2002:a05:6870:90cd:b0:1ea:c913:3494 with SMTP id s13-20020a05687090cd00b001eac9133494mr10771686oab.6.1698055011783; Mon, 23 Oct 2023 02:56:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698055011; cv=none; d=google.com; s=arc-20160816; b=QTpefbNKQ7YTzzNR9id14oBZ4ZQULef89zZILw4v0mUf2C2dH5DwaHdTbM6KeyCqMc AFII3VHHBawpRrycaA4yI9+69/gSNSVmpHwNRpOThcv+4NMn0B88ntakcCtxIuwYOJIc SZLJKoha4qFwCkpE5U4fn7MGT+Fq5D8pdicLKInEskFSq9Vjs3g6x4wby6G5ftI99FBa zLXY7egB9nrAKv3dqu8pg6zbIKPM/o0tT8Qqlm2GWCgrqm4tgYvf3SVS4pwWNhwPXOsB ET0cpKXcul4fH9oM3H3ILFCBjHtrC6iluN0JsZL7ImjpLpa4FYaZjWG8/L9q7arfrohu swXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=Qmbr2w5tujfuurOZRA3SRLMQeRjiZeSosCGmD3RvDX0=; fh=JK4CFQ8GWUIPGXLDWWc8KlajGC5ELjySWqtosj4q5Ec=; b=o1AzcuNustKZr+fgJtR5HU5Vv80nkWSWZ5aApcVsuLAMXXz9Ka7r/BzTSNzJbTnJvV xoP5g3T47pBtoN5t3dZiyJkDSNtjoHdaypblHun6bARVHwUYONQflDauG34h0LfriJbX 6d1prn/c0Pm/ZjjZtu+EaWt9A9XEHGfI0A92r1q+pPCU8uKXQQhFNYKMOIuIgnL9+rcB duM3Ql2HGdGqVkV0J0SV8Rh4JgJs9Q5NTRpS9rjyiG7y2hg1HHxOnwwlPqZY8tT3mYdA J967WLMxfho4oZ6X00xNZsGGUpacGIk5ouiB7GGa1uV+p3xBdNzUYRqlIJFshsiPLKe9 c5TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=lelYArMj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id k29-20020a637b5d000000b00578c8ce14edsi6428828pgn.252.2023.10.23.02.56.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 02:56:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=lelYArMj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 21CAD809818B; Mon, 23 Oct 2023 02:56:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233658AbjJWJ4l (ORCPT + 27 others); Mon, 23 Oct 2023 05:56:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233609AbjJWJ4G (ORCPT ); Mon, 23 Oct 2023 05:56:06 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA7041BDC for ; Mon, 23 Oct 2023 02:55:14 -0700 (PDT) X-UUID: 4157680e718a11eea33bb35ae8d461a2-20231023 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=Qmbr2w5tujfuurOZRA3SRLMQeRjiZeSosCGmD3RvDX0=; b=lelYArMj6Z8CYRXKqWwADfGZFFDv+nvM/JZBlhCGHlOy+uCCvI6nkZIL07jJwtkmqIjo5uL2zDB7gTt8Zd2Yp4+B3BB+9r1sIBmmCI/R18oOd0o19Wgtf+E6m7QE1j1ZpdEqkPndQy3CevCr9mGTOK9v9vt7jXdccUvhM3n1B+U=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.32,REQID:958110a5-7c95-4c0f-908d-d7c4d33ebd1e,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:5f78ec9,CLOUDID:ee12a9fb-4a48-46e2-b946-12f04f20af8c,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO, DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 4157680e718a11eea33bb35ae8d461a2-20231023 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1612167485; Mon, 23 Oct 2023 17:55:11 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by MTKMBS14N1.mediatek.inc (172.21.101.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 23 Oct 2023 17:55:07 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 23 Oct 2023 17:55:07 +0800 From: Maso Huang To: Liam Girdwood , Mark Brown , Matthias Brugger , AngeloGioacchino Del Regno , Jaroslav Kysela , Takashi Iwai , , , , CC: Maso Huang Subject: [PATCH 0/2] ASoC: mediatek: Remove redundant code and add sample rate checker of MT7986 SoC Date: Mon, 23 Oct 2023 17:54:51 +0800 Message-ID: <20231023095453.4860-1-maso.huang@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--1.888400-8.000000 X-TMASE-MatchedRID: 1cUIhvZrMEAyRohotsnq51z+axQLnAVBojQrbrPpzzptJv7x/D93bILy KdE2c/PXKi8kfHJWoY+gVbxI8zQaQh8TzIzimOwP0C1sQRfQzEHEQdG7H66TyN+E/XGDLHcM5H4 ky09s9NKNLGOuO04vodSYd3t+km3SiC7Dlcya3aYyzYzUVqX0RXmVKZusLp922v9OjYWA2uMMsw g45VMfPadst5iAforfVlxr1FJij9s= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--1.888400-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 5C758EFB01D13D8E60F6A8BE080B9F24FB0F074251EB3EF620CBB287C29401A22000:8 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_SPF_TEMPERROR,UNPARSEABLE_RELAY 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 23 Oct 2023 02:56:51 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780539731944833402 X-GMAIL-MSGID: 1780539731944833402 1. Remove redundant remove function. 2. Add sample rate checker. Patches are based on broonie tree "for-next" branch. Maso Huang (2): ASoC: mediatek: mt7986: remove redundant remove function ASoC: mediatek: mt7986: add sample rate checker sound/soc/mediatek/mt7986/mt7986-dai-etdm.c | 22 +++++++++-- sound/soc/mediatek/mt7986/mt7986-wm8960.c | 43 ++++++--------------- 2 files changed, 30 insertions(+), 35 deletions(-)