Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) // SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * soc-apci-intel-jsl-match.c - tables and support for JSL ACPI enumeration.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (c) 2019-2020, Intel Corporation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include <sound/soc-acpi.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <sound/soc-acpi-intel-match.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) static struct snd_soc_acpi_codecs jsl_7219_98373_codecs = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	.num_codecs = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	.codecs = {"MX98373"}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) static struct snd_soc_acpi_codecs rt1015_spk = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	.num_codecs = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	.codecs = {"10EC1015"}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) static struct snd_soc_acpi_codecs mx98360a_spk = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	.num_codecs = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	.codecs = {"MX98360A"}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)  * When adding new entry to the snd_soc_acpi_intel_jsl_machines array,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)  * use .quirk_data member to distinguish different machine driver,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)  * and keep ACPI .id field unchanged for the common codec.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) struct snd_soc_acpi_mach snd_soc_acpi_intel_jsl_machines[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 		.id = "DLGS7219",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 		.drv_name = "sof_da7219_max98373",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 		.sof_fw_filename = "sof-jsl.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 		.sof_tplg_filename = "sof-jsl-da7219.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 		.machine_quirk = snd_soc_acpi_codec_list,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 		.quirk_data = &jsl_7219_98373_codecs,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 		.id = "DLGS7219",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 		.drv_name = "sof_da7219_max98360a",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 		.sof_fw_filename = "sof-jsl.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 		.sof_tplg_filename = "sof-jsl-da7219-mx98360a.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 		.id = "10EC5682",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 		.drv_name = "jsl_rt5682_rt1015",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 		.sof_fw_filename = "sof-jsl.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 		.machine_quirk = snd_soc_acpi_codec_list,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 		.quirk_data = &rt1015_spk,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) 		.sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) 		.id = "10EC5682",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 		.drv_name = "jsl_rt5682_max98360a",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) 		.sof_fw_filename = "sof-jsl.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) 		.machine_quirk = snd_soc_acpi_codec_list,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) 		.quirk_data = &mx98360a_spk,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) 		.sof_tplg_filename = "sof-jsl-rt5682-mx98360a.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) 	{},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_jsl_machines);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) MODULE_LICENSE("GPL v2");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) MODULE_DESCRIPTION("Intel Common ACPI Match module");