ASoC: Intel: avs: pcm3168a board selection
authorCezary Rojewski <cezary.rojewski@intel.com>
Mon, 3 Feb 2025 14:10:45 +0000 (15:10 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 3 Feb 2025 14:04:56 +0000 (14:04 +0000)
Populate board table with avs_pcm3168a machine driver for RPL-M-based
and ADL-N-based platforms with pcm3168a codec onboard to allow the sound
card to enumerate.

While at it, drop comma the terminator entries to align with the coding
standard.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20250203141051.2361323-6-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/board_selection.c

index 0266edeafc19de3b3b4d18f073792ff936ec0cc5..2d706edcbf92453dcda642808f04011f3a281f8e 100644 (file)
@@ -312,6 +312,18 @@ static struct snd_soc_acpi_mach avs_tgl_i2s_machines[] = {
        {},
 };
 
+static struct snd_soc_acpi_mach avs_mbl_i2s_machines[] = {
+       {
+               .id = "PCM3168A",
+               .drv_name = "avs_pcm3168a",
+               .mach_params = {
+                       .i2s_link_mask = AVS_SSP(0) | AVS_SSP(2),
+               },
+               .tplg_filename = "pcm3168a-tplg.bin",
+       },
+       {}
+};
+
 static struct snd_soc_acpi_mach avs_test_i2s_machines[] = {
        {
                .drv_name = "avs_i2s_test",
@@ -378,10 +390,11 @@ static const struct avs_acpi_boards i2s_boards[] = {
        AVS_MACH_ENTRY(HDA_ICL_LP,      avs_icl_i2s_machines),
        AVS_MACH_ENTRY(HDA_TGL_LP,      avs_tgl_i2s_machines),
        AVS_MACH_ENTRY(HDA_EHL_0,       avs_tgl_i2s_machines),
+       AVS_MACH_ENTRY(HDA_ADL_N,       avs_mbl_i2s_machines),
        AVS_MACH_ENTRY(HDA_ADL_P,       avs_tgl_i2s_machines),
        AVS_MACH_ENTRY(HDA_RPL_P_0,     avs_tgl_i2s_machines),
-       AVS_MACH_ENTRY(HDA_RPL_M,       avs_tgl_i2s_machines),
-       {},
+       AVS_MACH_ENTRY(HDA_RPL_M,       avs_mbl_i2s_machines),
+       {}
 };
 
 static const struct avs_acpi_boards *avs_get_i2s_boards(struct avs_dev *adev)