Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 2 additions & 16 deletions sound/soc/intel/common/soc-acpi-intel-hda-match.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,13 @@

#include <sound/soc-acpi.h>
#include <sound/soc-acpi-intel-match.h>
#include "../skylake/skl.h"

static struct skl_machine_pdata hda_pdata = {
.use_tplg_pcm = true,
};

struct snd_soc_acpi_mach snd_soc_acpi_intel_hda_machines[] = {
{
/* .id is not used in this file */
.drv_name = "skl_hda_dsp_generic",

/* .fw_filename is dynamically set in skylake driver */

.sof_tplg_filename = "sof-hda-generic.tplg",

/*
* .machine_quirk and .quirk_data are not used here but
* can be used if we need a more complicated machine driver
* combining HDA+other device (e.g. DMIC).
*/
.pdata = &hda_pdata,
.sof_tplg_filename = "sof-hda-generic", /* the tplg suffix is added at run time */
.tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER,
},
{},
};
Expand Down
22 changes: 2 additions & 20 deletions sound/soc/intel/skylake/skl.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,20 +471,6 @@ static struct skl_ssp_clk skl_ssp_clks[] = {
{.name = "ssp5_sclkfs"},
};

static struct snd_soc_acpi_mach *skl_find_hda_machine(struct skl_dev *skl,
struct snd_soc_acpi_mach *machines)
{
struct snd_soc_acpi_mach *mach;

/* point to common table */
mach = snd_soc_acpi_intel_hda_machines;

/* all entries in the machine table use the same firmware */
mach->fw_filename = machines->fw_filename;

return mach;
}

static int skl_find_machine(struct skl_dev *skl, void *driver_data)
{
struct hdac_bus *bus = skl_to_bus(skl);
Expand All @@ -493,12 +479,8 @@ static int skl_find_machine(struct skl_dev *skl, void *driver_data)

mach = snd_soc_acpi_find_machine(mach);
if (!mach) {
dev_dbg(bus->dev, "No matching I2S machine driver found\n");
mach = skl_find_hda_machine(skl, driver_data);
if (!mach) {
dev_err(bus->dev, "No matching machine driver found\n");
return -ENODEV;
}
dev_err(bus->dev, "No matching I2S machine driver found\n");
return -ENODEV;
}

skl->mach = mach;
Expand Down
Loading