From patchwork Thu Jun 13 06:37:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 13696189 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EAC2E137753; Thu, 13 Jun 2024 06:37:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718260680; cv=none; b=vAWaKN3XE0Pq8eDRoIL7zRI4dZn9h+/G6Pc6a/agOH1QHDEd2mbct3HmCMVK/3i5encFGJYfNQUIAM0MUyz+4V8uAluV9+/c1/PRHJebr8dE+WjMJp0s/h22gr+kDautsVe07ZHSCcE4zQfsxVLXLGK6EYswM5D8ib1fYsSmkO8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718260680; c=relaxed/simple; bh=tOZ91IT2s8wpY7yLumZ5kw412vfzz4MXb5MVorwZxpY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HeagUGCE+Vt3N2dO4ywl43GxsSiQQwpiS66gJ2GFTg8kELI6eDyvEu7EIUWKRREKKi7ofXy+WLuwKZ64SPKWMkyM1nu7hY55x9m/rlxypXbn89pYbn8bhko0aGxilk7eKi5jZT9irt8IHd2S05HKPpgxagRgIw1hsLZha9tT2cU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=FoqgzIOO; arc=none smtp.client-ip=192.198.163.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="FoqgzIOO" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718260679; x=1749796679; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tOZ91IT2s8wpY7yLumZ5kw412vfzz4MXb5MVorwZxpY=; b=FoqgzIOO5NKU5yQdYm2r1XYPM7CrrUDvVdUCnIjGDjhSb2UJbOqJcC55 IFGV84NxJZmGq1JALj6TvKrNveGTueB/ZnhJMaSrrAB/TDAopZX3Ll06R 9ywNTz9sHo4FvSRiisngSx80nk67icEpmAJiDwvcoI3CRhw+HXkEacGEi wgjeqtJ4hDpS8rCdkFsaS0R6XEj81gPexMw4LTXv4vNpa4DDuGv/NbGcm cOxrruxoEVjcjdteLMFxF9vRKrKW5Sj7ERx8nYK54m4z9aBhYV9SZ1NyA zVnGukue6DDck2DnMMnyrmA18cKHwpwNOk+Qj2FPibEIv4T/g7V/83i6M A==; X-CSE-ConnectionGUID: jcE+BKhyRsuvdL4jQ3OUeg== X-CSE-MsgGUID: AGWoVklSS2+x6CFFHcyA/A== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="25736644" X-IronPort-AV: E=Sophos;i="6.08,234,1712646000"; d="scan'208";a="25736644" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 23:37:59 -0700 X-CSE-ConnectionGUID: 6R9a3YwdQruo7RPqCtq4wg== X-CSE-MsgGUID: tyzxhkqlQIKI/WzbuttsPw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,234,1712646000"; d="scan'208";a="39960976" Received: from fdefranc-mobl3.ger.corp.intel.com (HELO pbossart-mobl6.intel.com) ([10.245.246.108]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 23:37:55 -0700 From: Pierre-Louis Bossart To: linux-sound@vger.kernel.org Cc: alsa-devel@alsa-project.org, tiwai@suse.de, broonie@kernel.org, Bjorn Helgaas , linux-pci@vger.kernel.org, Bard Liao , =?utf-8?q?P=C3=A9ter_Ujfalusi?= , Ranjani Sridharan , Pierre-Louis Bossart Subject: [PATCH v2 4/5] ASoC: Intel: soc-acpi-intel-ptl-match: add rt711-sdca table Date: Thu, 13 Jun 2024 08:37:31 +0200 Message-ID: <20240613063732.241157-5-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240613063732.241157-1-pierre-louis.bossart@linux.intel.com> References: <20240613063732.241157-1-pierre-louis.bossart@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Bard Liao Add rt711-sdca on sdw link0. Reviewed-by: Péter Ujfalusi Reviewed-by: Ranjani Sridharan Signed-off-by: Bard Liao Signed-off-by: Pierre-Louis Bossart --- .../intel/common/soc-acpi-intel-ptl-match.c | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/sound/soc/intel/common/soc-acpi-intel-ptl-match.c b/sound/soc/intel/common/soc-acpi-intel-ptl-match.c index dba45fa7a453..ce4234fd3895 100644 --- a/sound/soc/intel/common/soc-acpi-intel-ptl-match.c +++ b/sound/soc/intel/common/soc-acpi-intel-ptl-match.c @@ -15,6 +15,31 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_machines[] = { }; EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_ptl_machines); +static const struct snd_soc_acpi_endpoint single_endpoint = { + .num = 0, + .aggregated = 0, + .group_position = 0, + .group_id = 0, +}; + +static const struct snd_soc_acpi_adr_device rt711_sdca_0_adr[] = { + { + .adr = 0x000030025D071101ull, + .num_endpoints = 1, + .endpoints = &single_endpoint, + .name_prefix = "rt711" + } +}; + +static const struct snd_soc_acpi_link_adr ptl_rvp[] = { + { + .mask = BIT(0), + .num_adr = ARRAY_SIZE(rt711_sdca_0_adr), + .adr_d = rt711_sdca_0_adr, + }, + {} +}; + /* this table is used when there is no I2S codec present */ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = { /* mockup tests need to be first */ @@ -36,6 +61,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = { .drv_name = "sof_sdw", .sof_tplg_filename = "sof-ptl-rt715-rt711-rt1308-mono.tplg", }, + { + .link_mask = BIT(0), + .links = ptl_rvp, + .drv_name = "sof_sdw", + .sof_tplg_filename = "sof-ptl-rt711.tplg", + }, {}, }; EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_ptl_sdw_machines);