From patchwork Tue Sep 19 09:11:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bard Liao X-Patchwork-Id: 13390986 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 5EEBDCD54A9 for ; Tue, 19 Sep 2023 09:04:37 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A4924DF4; Tue, 19 Sep 2023 11:03:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A4924DF4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1695114275; bh=wjJNHe3POaLkrY9bapAar3klV50FM2YTqa+eELMjU1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=HfnwsdBhsIE5t6Vs64reE5awuVEyD8duwwUqj3j33/Uo/+evN/InlRGHKKZKIU6KU U/oqPsx6rIE9zQHYM7hagqTrfZiJwjIlMWy20yKr+YKLfdS7xWR2cscvmvnLkF3RAb 6mYXEI+xWcCHVc/ogVw5iG2hZ6orM1SFflR9UhlM= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3565BF80578; Tue, 19 Sep 2023 11:02:38 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 73165F8057E; Tue, 19 Sep 2023 11:02:38 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3C706F80125; Tue, 19 Sep 2023 11:02:33 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id F1623F801F5 for ; Tue, 19 Sep 2023 11:02:27 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz F1623F801F5 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=mUMblqI9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695114150; x=1726650150; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wjJNHe3POaLkrY9bapAar3klV50FM2YTqa+eELMjU1Y=; b=mUMblqI9TdtELwEc7YiWx5dsVccvKE3kVqRYzLiMsRo21wYgxhuQw1r2 f0d7y7P2UnOrd4OgYh1P5dZiY+bj+XR6I36hRnpo/lhoB/9Hf1XkRU+t/ uh4tBZ4FfXAQ+TG4H8C4Gfr4WI6g5/A+5/U2BBvzzivdwXKIsZiNzVF5x xYPvl8DURPh2M3T9WSkWjpwVmcIZpFqoAiiAlIw3XTZkXfEUZnb/fDhuT Tu3TP8jKU0NB2HkEfk6r5Rw6yYQwwmr9xPgqxmPerj3wIWwVM3uR1aaIe jCNxaOjGbgDo4h10/k5c3kiVm3b9Subo/7Nr0zFJWrfxb6fr3Wgqd2EPx A==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="379793446" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="379793446" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 02:02:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="869904303" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="869904303" Received: from bard-ubuntu.sh.intel.com ([10.239.185.57]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 02:02:23 -0700 From: Bard Liao To: broonie@kernel.org, tiwai@suse.de Cc: alsa-devel@alsa-project.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com, peter.ujfalusi@linux.intel.com Subject: [PATCH 1/2] ASoC: Intel: soc-acpi: Add entry for sof_es8336 in MTL match table. Date: Tue, 19 Sep 2023 17:11:35 +0800 Message-Id: <20230919091136.1922253-2-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230919091136.1922253-1-yung-chuan.liao@linux.intel.com> References: <20230919091136.1922253-1-yung-chuan.liao@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: NENKS7I2MJFUUUD6NDBVC6H2OWI44KCG X-Message-ID-Hash: NENKS7I2MJFUUUD6NDBVC6H2OWI44KCG X-MailFrom: yung-chuan.liao@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Balamurugan C Adding support for ES83x6 codec in MTL match table. Signed-off-by: Balamurugan C Reviewed-by: Pierre-Louis Bossart Signed-off-by: Bard Liao --- sound/soc/intel/common/soc-acpi-intel-mtl-match.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sound/soc/intel/common/soc-acpi-intel-mtl-match.c b/sound/soc/intel/common/soc-acpi-intel-mtl-match.c index b6409d2bd1fb..da3fba7acaf1 100644 --- a/sound/soc/intel/common/soc-acpi-intel-mtl-match.c +++ b/sound/soc/intel/common/soc-acpi-intel-mtl-match.c @@ -30,6 +30,11 @@ static const struct snd_soc_acpi_codecs mtl_rt5682_rt5682s_hp = { .codecs = {"10EC5682", "RTL5682"}, }; +static const struct snd_soc_acpi_codecs mtl_essx_83x6 = { + .num_codecs = 3, + .codecs = { "ESSX8316", "ESSX8326", "ESSX8336"}, +}; + struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_machines[] = { { .comp_ids = &mtl_rt5682_rt5682s_hp, @@ -52,6 +57,14 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_machines[] = { .quirk_data = &mtl_rt1019p_amp, .sof_tplg_filename = "sof-mtl-rt1019-rt5682.tplg", }, + { + .comp_ids = &mtl_essx_83x6, + .drv_name = "sof-essx8336", + .sof_tplg_filename = "sof-mtl-es8336", /* the tplg suffix is added at run time */ + .tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_SSP_NUMBER | + SND_SOC_ACPI_TPLG_INTEL_SSP_MSB | + SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER, + }, {}, }; EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_mtl_machines); From patchwork Tue Sep 19 09:11:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bard Liao X-Patchwork-Id: 13390982 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 217E4CD54A9 for ; Tue, 19 Sep 2023 09:04:18 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 18A1BDEC; Tue, 19 Sep 2023 11:03:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 18A1BDEC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1695114256; bh=5GBU//6WJLjcFWJDH9+2j8XowqocdNCy3DkAtPjM2M4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=M/iSPsE8pTDys++fBvMLUE3Cf8cFNX4XdZYoDIyEyCd0GkdzfowzG+aomIqUq7HcK MmYzIG7uwjVpClFU/MmWTbwP8DtsVQc6VcD7uvAUk62NGHa+kq49ZGCFZRsj5n14Rc z23VPTfDra4f3VLgcUp7/zZtQYTytz0Os9ccN8Oc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5F2DFF8055C; Tue, 19 Sep 2023 11:02:36 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id BA0BDF801F5; Tue, 19 Sep 2023 11:02:35 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id EB530F8025A; Tue, 19 Sep 2023 11:02:31 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 7D63CF800F4 for ; Tue, 19 Sep 2023 11:02:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7D63CF800F4 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=YZ8nUbnp DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695114149; x=1726650149; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5GBU//6WJLjcFWJDH9+2j8XowqocdNCy3DkAtPjM2M4=; b=YZ8nUbnp9akxNlxqEyNyVlewxCG6Of6i4FZOv5W4OEJYuuEuSFIrnWKs 8bP5MXuugPlquHKNr7FoArSorJ34qZHm6oedwBOLdzyujvNxxGJh+6rCs xHgcuGnc5hKO1OfMYfX/KOCdF3xwQ2SXN3hFUXJZyUb0TN/3b5NmI71Y+ 65IPEjYoxXjZjjREYn216A4FnohhpIQlib/hoL9XTvtWvqkz5uEP3NVh4 K+SSR+FGH+tucdD0rHrLr4zBwtQe1Y03cnqjy7x829MS75zIpjdOSGTPu lTNdftrtMOrV2v65rFCiktMW+xNzVFkqLDG8AvhuvNAUe0VcV+yKc+6MV Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="379793457" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="379793457" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 02:02:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="869904321" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="869904321" Received: from bard-ubuntu.sh.intel.com ([10.239.185.57]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 02:02:25 -0700 From: Bard Liao To: broonie@kernel.org, tiwai@suse.de Cc: alsa-devel@alsa-project.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com, peter.ujfalusi@linux.intel.com Subject: [PATCH 2/2] ASoC: Intel: soc-acpi: Add entry for HDMI_In capture support in MTL match table Date: Tue, 19 Sep 2023 17:11:36 +0800 Message-Id: <20230919091136.1922253-3-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230919091136.1922253-1-yung-chuan.liao@linux.intel.com> References: <20230919091136.1922253-1-yung-chuan.liao@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: SQ5A23P7KAHAJGDQNZNWLATAPLKCBEHC X-Message-ID-Hash: SQ5A23P7KAHAJGDQNZNWLATAPLKCBEHC X-MailFrom: yung-chuan.liao@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Balamurugan C Adding HDMI-In capture via I2S feature support in MTL platform. Signed-off-by: Balamurugan C Reviewed-by: Pierre-Louis Bossart Signed-off-by: Bard Liao --- sound/soc/intel/boards/sof_es8336.c | 10 ++++++++++ sound/soc/intel/common/soc-acpi-intel-mtl-match.c | 12 ++++++++++++ 2 files changed, 22 insertions(+) diff --git a/sound/soc/intel/boards/sof_es8336.c b/sound/soc/intel/boards/sof_es8336.c index f8a3e8a91761..9904a9e33ccc 100644 --- a/sound/soc/intel/boards/sof_es8336.c +++ b/sound/soc/intel/boards/sof_es8336.c @@ -808,6 +808,16 @@ static const struct platform_device_id board_ids[] = { SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK | SOF_ES8336_JD_INVERTED), }, + { + .name = "mtl_es83x6_c1_h02", + .driver_data = (kernel_ulong_t)(SOF_ES8336_SSP_CODEC(1) | + SOF_NO_OF_HDMI_CAPTURE_SSP(2) | + SOF_HDMI_CAPTURE_1_SSP(0) | + SOF_HDMI_CAPTURE_2_SSP(2) | + SOF_SSP_HDMI_CAPTURE_PRESENT | + SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK | + SOF_ES8336_JD_INVERTED), + }, { } }; MODULE_DEVICE_TABLE(platform, board_ids); diff --git a/sound/soc/intel/common/soc-acpi-intel-mtl-match.c b/sound/soc/intel/common/soc-acpi-intel-mtl-match.c index da3fba7acaf1..fbacabc93d6d 100644 --- a/sound/soc/intel/common/soc-acpi-intel-mtl-match.c +++ b/sound/soc/intel/common/soc-acpi-intel-mtl-match.c @@ -35,6 +35,11 @@ static const struct snd_soc_acpi_codecs mtl_essx_83x6 = { .codecs = { "ESSX8316", "ESSX8326", "ESSX8336"}, }; +static const struct snd_soc_acpi_codecs mtl_lt6911_hdmi = { + .num_codecs = 1, + .codecs = {"INTC10B0"} +}; + struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_machines[] = { { .comp_ids = &mtl_rt5682_rt5682s_hp, @@ -57,6 +62,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_machines[] = { .quirk_data = &mtl_rt1019p_amp, .sof_tplg_filename = "sof-mtl-rt1019-rt5682.tplg", }, + { + .comp_ids = &mtl_essx_83x6, + .drv_name = "mtl_es83x6_c1_h02", + .machine_quirk = snd_soc_acpi_codec_list, + .quirk_data = &mtl_lt6911_hdmi, + .sof_tplg_filename = "sof-mtl-es83x6-ssp1-hdmi-ssp02.tplg", + }, { .comp_ids = &mtl_essx_83x6, .drv_name = "sof-essx8336",