From patchwork Mon Jun 12 11:09:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brent Lu X-Patchwork-Id: 10608 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2336004vqr; Sun, 11 Jun 2023 20:36:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4q8Ki8U/eeLTE0nklQCBefFMBecNI4ifJhYOhOeGQlUSdMY0os/zlRtA1GF+ygTtHpkFiU X-Received: by 2002:a05:6a20:a124:b0:10e:de4f:3437 with SMTP id q36-20020a056a20a12400b0010ede4f3437mr10007894pzk.39.1686541008703; Sun, 11 Jun 2023 20:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686541008; cv=none; d=google.com; s=arc-20160816; b=DIy9tGsFRF0OhJwPWIf0yCPPAibPN4NW6eddv/YGM2XJyTlffMISMfIDMq4B6zxRK7 PMV8HVTlEJ82dLDjyK+94uc9blFzdepLDf34WzkoBlTZjo0C4vXE2A3JD6NYVqL4SD/R 54pw5d7YDxSoW778hx1zvPM5aBT/IsHSkxUg0LHKweAjiE6ucvDZd8d8+L0qrq2kIOk0 TBg0EEeRB517SaC81eDIoaqOJJYMnQwpUTAs46tcK6ZswYSvEX+m5gjCv1I8n9luJMdU L54+c9CuW+7FHnQtkQsS9oWs1GSE+ohQopaXLFWAl6ER+9essoycf/2JQmwBPYPXERh2 e4tg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Y5M16VNU08TN6m3oQUwxHc4GNlLENBGl6UX9rUdtFHY=; b=CazaF6nX/7pvIsgOoimldIw+dIEpQWJVwDfKCUioeemO5ckgFAPU5jy8Nt+/lPONlD uQlsdTeZZ/uDz1NAk2KoHk7biU6c14SznxFAf3qf3O5nEipuF5b6oGveBod686Ta15rm 1tpPbDTYcAeRB68JU0miNsjciHWQNLKUnPpdv8YVJk0eNz57lnpYnqnTLa88kBJOFTnQ LIRASsmkFD9gDRWj9eoPSGFDQ1Ynng1R7IgciNFxwEzBhRp5uteQqC3aYTD4T4i06UyA vH7sL8UHGLgV9Bq/e2PHg1h0bVyo14DSBmjmwajszzbXIhbxR8WX/ZjvMYn+ilCkBiuN YgZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=g6fEjtj4; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b20-20020a637154000000b0053ef09db573si2732275pgn.247.2023.06.11.20.36.36; Sun, 11 Jun 2023 20:36:48 -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=@intel.com header.s=Intel header.b=g6fEjtj4; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234531AbjFLDQE (ORCPT + 99 others); Sun, 11 Jun 2023 23:16:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234551AbjFLDO7 (ORCPT ); Sun, 11 Jun 2023 23:14:59 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F96CE72 for ; Sun, 11 Jun 2023 20:14:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686539685; x=1718075685; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8gPCuDqBxy3w2rRnM7UsFSCqZxJx21nsM66FiPsiHcs=; b=g6fEjtj4vLbsRl44zLSsLNY/TvzhGAtrsPgYDJzAd9Mi1WRKME4eT8DT pHZnHKIKvFP2CbJbB1lrPOoVAm7xujbUCIJI2VwvE11Lrr2g2zsDOTDc1 B3WHGzZw0g+VogKgyULaw4S3DTRfSMMtKkRw57y652fZQdAWuzNAPtGMd DEh1zjKytRwKDVCakqU1JzkUbx1HRTkW9Gicij8rO0u55mrbNKz6FPhla ncuIQUeOYgjXeuoD08T6zZBeO0WqGPtpLZlvU8r2+uhzytaAnqVUCOaHp ZVgOKpTDGoOM1nafWPXKJYHs4e1rnqAt/9A0/4XfhtJ4kA8NVnxR7DkMH Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10738"; a="347578872" X-IronPort-AV: E=Sophos;i="6.00,235,1681196400"; d="scan'208";a="347578872" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2023 20:14:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10738"; a="776191865" X-IronPort-AV: E=Sophos;i="6.00,235,1681196400"; d="scan'208";a="776191865" Received: from brentlu-desktop.itwn.intel.com ([10.5.252.92]) by fmsmga008.fm.intel.com with ESMTP; 11 Jun 2023 20:14:41 -0700 From: Brent Lu To: alsa-devel@alsa-project.org Cc: Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Mark Brown , Jaroslav Kysela , Takashi Iwai , =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= , Brent Lu , linux-kernel@vger.kernel.org, Kuninori Morimoto Subject: [PATCH 00/12] ASoC: Intel: avs: remove redundant dapm routes Date: Mon, 12 Jun 2023 19:09:46 +0800 Message-Id: <20230612110958.592674-1-brent.lu@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768466424940953908?= X-GMAIL-MSGID: =?utf-8?q?1768466424940953908?= This patch series remove redundant dapm routes declared in multiple machine drivers. These routes will be created by snd_soc_dapm_connect_dai_link_widgets() during soundcard initialization. Following is the kernel log from a KBL chromebook nocturne. dmic: [ 13.773455] avs_dmic avs_dmic: connected DAI link dmic-codec:Capture -> dmic-platform:DMIC Rx [ 13.773460] avs_dmic avs_dmic: connected DAI link dmic-codec:Capture -> dmic-platform:DMIC WoV Rx max98373: [ 14.079536] avs_max98373 avs_max98373.1: connected DAI link avs_max98373.1-platform:ssp0 Tx -> i2c-MX98373:00:Right HiFi Playback [ 14.079545] avs_max98373 avs_max98373.1: connected DAI link i2c-MX98373:00:Right HiFi Capture -> avs_max98373.1-platform:ssp0 Rx [ 14.079550] avs_max98373 avs_max98373.1: connected DAI link avs_max98373.1-platform:ssp0 Tx -> i2c-MX98373:01:Left HiFi Playback [ 14.079554] avs_max98373 avs_max98373.1: connected DAI link i2c-MX98373:01:Left HiFi Capture -> avs_max98373.1-platform:ssp0 Rx hdaudio: [ 14.094818] avs_hdaudio avs_hdaudio.2: connected DAI link hdaudioB0D2-platform:hdaudioB0D2-cpu0 Tx -> hdaudioB0D2:HDMI 0 Playback [ 14.094824] avs_hdaudio avs_hdaudio.2: connected DAI link hdaudioB0D2-platform:hdaudioB0D2-cpu1 Tx -> hdaudioB0D2:HDMI 1 Playback [ 14.094828] avs_hdaudio avs_hdaudio.2: connected DAI link hdaudioB0D2-platform:hdaudioB0D2-cpu2 Tx -> hdaudioB0D2:HDMI 2 Playback Brent Lu (12): ASoC: Intel: avs-da7219: remove redundant dapm routes ASoC: Intel: avs-dmic: remove redundant dapm routes ASoC: Intel: avs-hdaudio: remove redundant dapm routes ASoC: Intel: avs-max98357a: remove redundant dapm routes ASoC: Intel: avs-max98373: remove redundant dapm routes ASoC: Intel: avs-max98927: remove redundant dapm routes ASoC: Intel: avs-nau8825: remove redundant dapm routes ASoC: Intel: avs-rt274: remove redundant dapm routes ASoC: Intel: avs-rt286: remove redundant dapm routes ASoC: Intel: avs-rt298: remove redundant dapm routes ASoC: Intel: avs-rt5682: remove redundant dapm routes ASoC: Intel: avs-ssm4567: remove redundant dapm routes sound/soc/intel/avs/boards/da7219.c | 45 ++---------------- sound/soc/intel/avs/boards/dmic.c | 2 - sound/soc/intel/avs/boards/hdaudio.c | 65 +------------------------- sound/soc/intel/avs/boards/max98357a.c | 39 ++-------------- sound/soc/intel/avs/boards/max98373.c | 45 ++---------------- sound/soc/intel/avs/boards/max98927.c | 45 ++---------------- sound/soc/intel/avs/boards/nau8825.c | 45 ++---------------- sound/soc/intel/avs/boards/rt274.c | 45 ++---------------- sound/soc/intel/avs/boards/rt286.c | 45 ++---------------- sound/soc/intel/avs/boards/rt298.c | 45 ++---------------- sound/soc/intel/avs/boards/rt5682.c | 45 ++---------------- sound/soc/intel/avs/boards/ssm4567.c | 57 ++-------------------- 12 files changed, 31 insertions(+), 492 deletions(-)