Skip to content

Commit

Permalink
ASoC: amd: acp: Add acp_machine struct for renoir platform.
Browse files Browse the repository at this point in the history
Add acpi_mach struct for renoir platform to select machine driver
based on codec and amp ACPI id.

Signed-off-by: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>
Link: https://lore.kernel.org/r/20211025074808.471333-1-AjitKumar.Pandey@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Ajit Kumar Pandey authored and Mark Brown committed Oct 25, 2021
1 parent e8e8c4a commit 8a8e1b9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
19 changes: 19 additions & 0 deletions sound/soc/amd/acp/acp-renoir.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,25 @@

#define DRV_NAME "acp_asoc_renoir"

static struct snd_soc_acpi_codecs amp_rt1019 = {
.num_codecs = 1,
.codecs = {"10EC1019"}
};

static struct snd_soc_acpi_mach snd_soc_acpi_amd_acp_machines[] = {
{
.id = "10EC5682",
.drv_name = "rn_rt5682_rt1019",
.machine_quirk = snd_soc_acpi_codec_list,
.quirk_data = &amp_rt1019,
},
{
.id = "AMDI1019",
.drv_name = "renoir-acp",
},
{},
};

static struct snd_soc_dai_driver acp_renoir_dai[] = {
{
.name = "acp-i2s-sp",
Expand Down
1 change: 0 additions & 1 deletion sound/soc/amd/acp/amd.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ int acp_platform_register(struct device *dev);
int acp_platform_unregister(struct device *dev);

int acp_machine_select(struct acp_dev_data *adata);
extern struct snd_soc_acpi_mach snd_soc_acpi_amd_acp_machines[];

static inline u64 acp_get_byte_count(struct acp_dev_data *adata, int dai_id, int direction)
{
Expand Down

0 comments on commit 8a8e1b9

Please sign in to comment.