Skip to content

Commit

Permalink
ASoC: Intel: catpt: Drop SND_SOC_ACPI_INTEL_MATCH dependency
Browse files Browse the repository at this point in the history
catpt-driver does not make use of most of the fields found in the
descriptor table and is the sole user of haswell machines list. Move the
tables to local directory and clean them up so it's clear what's
actually used by the solution.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
  • Loading branch information
crojewsk-intel authored and intel-lab-lkp committed Dec 16, 2021
1 parent b83e761 commit 1ad5d08
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sound/soc/intel/Kconfig
Expand Up @@ -23,7 +23,7 @@ config SND_SOC_INTEL_CATPT
depends on ACPI || COMPILE_TEST
depends on DMADEVICES && SND_DMA_SGBUF
select DW_DMAC_CORE
select SND_SOC_ACPI_INTEL_MATCH
select SND_SOC_ACPI
select WANT_DEV_COREDUMP
select SND_INTEL_DSP_CONFIG
help
Expand Down
33 changes: 30 additions & 3 deletions sound/soc/intel/catpt/device.c
Expand Up @@ -22,7 +22,6 @@
#include <sound/intel-dsp-config.h>
#include <sound/soc.h>
#include <sound/soc-acpi.h>
#include <sound/soc-acpi-intel-match.h>
#include "core.h"
#include "registers.h"

Expand Down Expand Up @@ -313,8 +312,36 @@ static int catpt_acpi_remove(struct platform_device *pdev)
return 0;
}

struct snd_soc_acpi_mach lpt_machines[] = {
{
.id = "INT33CA",
.drv_name = "haswell-audio",
},
{}
};

struct snd_soc_acpi_mach wpt_machines[] = {
{
.id = "INT343A",
.drv_name = "broadwell-audio",
},
{
.id = "10EC5650",
.drv_name = "bdw-rt5650",
},
{
.id = "RT5677CE",
.drv_name = "bdw-rt5677",
},
{
.id = "INT33CA",
.drv_name = "haswell-audio",
},
{}
};

static struct catpt_spec lpt_desc = {
.machines = snd_soc_acpi_intel_haswell_machines,
.machines = lpt_machines,
.core_id = 0x01,
.host_dram_offset = 0x000000,
.host_iram_offset = 0x080000,
Expand All @@ -329,7 +356,7 @@ static struct catpt_spec lpt_desc = {
};

static struct catpt_spec wpt_desc = {
.machines = snd_soc_acpi_intel_broadwell_machines,
.machines = wpt_machines,
.core_id = 0x02,
.host_dram_offset = 0x000000,
.host_iram_offset = 0x0A0000,
Expand Down

0 comments on commit 1ad5d08

Please sign in to comment.