lkml.org 
[lkml]   [2021]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 03/10] ASoC: soc-acpi: tgl: add table for SoundWire mockup devices
    Date
    From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

    Follow the same idea as for CNL/UpExtreme and add mockup test
    first. They will only be selected if the SSDT is modified to add such
    mockup devices.

    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Reviewed-by: Rander Wang <rander.wang@intel.com>
    Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
    ---
    .../intel/common/soc-acpi-intel-tgl-match.c | 23 +++++++++++++++++++
    1 file changed, 23 insertions(+)

    diff --git a/sound/soc/intel/common/soc-acpi-intel-tgl-match.c b/sound/soc/intel/common/soc-acpi-intel-tgl-match.c
    index 66595e3ab13f..e2488f0eaff8 100644
    --- a/sound/soc/intel/common/soc-acpi-intel-tgl-match.c
    +++ b/sound/soc/intel/common/soc-acpi-intel-tgl-match.c
    @@ -8,6 +8,7 @@

    #include <sound/soc-acpi.h>
    #include <sound/soc-acpi-intel-match.h>
    +#include "soc-acpi-intel-sdw-mockup-match.h"

    static const struct snd_soc_acpi_codecs tgl_codecs = {
    .num_codecs = 1,
    @@ -351,6 +352,28 @@ EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_tgl_machines);

    /* this table is used when there is no I2S codec present */
    struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_sdw_machines[] = {
    + /* mockup tests need to be first */
    + {
    + .link_mask = GENMASK(3, 0),
    + .links = sdw_mockup_headset_2amps_mic,
    + .drv_name = "sof_sdw",
    + .sof_fw_filename = "sof-tgl.ri",
    + .sof_tplg_filename = "sof-tgl-rt711-rt1308-rt715.tplg",
    + },
    + {
    + .link_mask = BIT(0) | BIT(1) | BIT(3),
    + .links = sdw_mockup_headset_1amp_mic,
    + .drv_name = "sof_sdw",
    + .sof_fw_filename = "sof-tgl.ri",
    + .sof_tplg_filename = "sof-tgl-rt711-rt1308-mono-rt715.tplg",
    + },
    + {
    + .link_mask = BIT(0) | BIT(1) | BIT(2),
    + .links = sdw_mockup_mic_headset_1amp,
    + .drv_name = "sof_sdw",
    + .sof_fw_filename = "sof-tgl.ri",
    + .sof_tplg_filename = "sof-tgl-rt715-rt711-rt1308-mono.tplg",
    + },
    {
    .link_mask = 0x7,
    .links = tgl_sdw_rt711_link1_rt1308_link2_rt715_link0,
    --
    2.17.1
    \
     
     \ /
      Last update: 2021-07-14 05:23    [W:2.148 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site