From patchwork Wed Apr 22 04:46:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 192936 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F62CC38A30 for ; Wed, 22 Apr 2020 04:47:48 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CD9AA2072D for ; Wed, 22 Apr 2020 04:47:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="m8J+xArR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD9AA2072D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=renesas.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2D98C16BA; Wed, 22 Apr 2020 06:46:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2D98C16BA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1587530866; bh=wegmIjdxxPwqXJB81qrLKVVtw2XOSrI8ylk1fFtm8qg=; h=Date:From:Subject:To:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=m8J+xArRbs2nfL6qjsfjS3ZzccWJR6j/O5V2fu1nPfAgdEvKNd672WL6XfqzCTIQm cSfpFYh8zG3eTdRD1fFyfe1BlD0SiXiTQN/+HN9GGoPy1fKHx6YPFO+N0qu5fXmT6X YDaUk3zKB0BR8NU3C9x0oLyb4o8iJ0HhvtcjLSws= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 875E5F80108; Wed, 22 Apr 2020 06:46:55 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id F2069F801D9; Wed, 22 Apr 2020 06:46:50 +0200 (CEST) Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by alsa1.perex.cz (Postfix) with ESMTP id 747E7F80108 for ; Wed, 22 Apr 2020 06:46:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 747E7F80108 Date: 22 Apr 2020 13:46:30 +0900 X-IronPort-AV: E=Sophos;i="5.72,412,1580742000"; d="scan'208";a="45382248" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 22 Apr 2020 13:46:30 +0900 Received: from mercury.renesas.com (unknown [10.166.252.133]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 10BF341C17D7; Wed, 22 Apr 2020 13:46:30 +0900 (JST) Message-ID: <87d080unyx.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 0/4] ASoC:: don't use snd_soc_rtdcom_lookup() User-Agent: Wanderlust/2.15.9 Emacs/25.2 Mule/6.0 To: Mark Brown MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Cc: Kate Stewart , Cezary Rojewski , Jie Yang , alsa-devel@alsa-project.org, Liam Girdwood , Richard Fontana , Shunli Wang , YueHaibing , Pierre-Louis Bossart , Jiaxin Yu , linux-arm-kernel@lists.infradead.org, Vijendar Mukunda , Stephen Boyd , linux-mediatek@lists.infradead.org, Eason Yen , Matthias Brugger , Thomas Gleixner , Allison Randal , Takashi Iwai , Ravulapati Vishnu vardhan rao , Colin Ian King X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Hi Mark Cc related engineer These patches are tring to not to use snd_soc_rtdcom_lookup() function on each drivers as much as possible, because we might have same name component under multi component situation. It can't find correct component in such case. I tried to add new feature on each drivers to not to use it, but I can't test. Thus, these patches should get Acked-by or Tested-by from each drivers user/maintenor. Please test these. After these patches, Intel / SOF drivers are still using snd_soc_rtdcom_lookup(). Because it is very complex, I couldn't try not to use it. If possible, each drivers should try to not use it, and it should be removed from ASoC. Kuninori Morimoto (4): ASoC: mediatek: don't use snd_soc_rtdcom_lookup() ASoC: intel: baytrail: don't use snd_soc_rtdcom_lookup() ASoC: intel: haswell: don't use snd_soc_rtdcom_lookup() ASoC: amd: don't use snd_soc_rtdcom_lookup() sound/soc/amd/raven/acp3x-pcm-dma.c | 6 ------ sound/soc/intel/baytrail/sst-baytrail-pcm.c | 13 +++++++------ sound/soc/intel/haswell/sst-haswell-pcm.c | 4 +++- sound/soc/mediatek/common/mtk-afe-fe-dai.c | 12 +++++------- sound/soc/mediatek/common/mtk-afe-fe-dai.h | 3 ++- sound/soc/mediatek/common/mtk-base-afe.h | 6 ++++-- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 6 ++++-- sound/soc/mediatek/mt6797/mt6797-afe-pcm.c | 11 ++++------- sound/soc/mediatek/mt8173/mt8173-afe-pcm.c | 7 ++++--- sound/soc/mediatek/mt8183/mt8183-afe-pcm.c | 11 ++++------- 10 files changed, 37 insertions(+), 42 deletions(-)