lkml.org 
[lkml]   [2021]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 3/3] ASoC: Intel: sof_rt5682: use id_alt to enumerate rt5682s
    >  };
    >
    > +static struct snd_soc_acpi_codecs adl_rt5682s_hp = {
    > + .num_codecs = 1,
    > + .codecs = {"RTL5682"}
    > +};
    > +
    > struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = {
    > {
    > .id = "10EC5682",
    > + .id_alt = &adl_rt5682s_hp,
    > .drv_name = "adl_mx98373_rt5682",
    > .machine_quirk = snd_soc_acpi_codec_list,
    > .quirk_data = &adl_max98373_amp,
    > @@ -296,6 +302,7 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = {
    > },
    > {
    > .id = "10EC5682",
    > + .id_alt = &adl_rt5682s_hp,
    > .drv_name = "adl_mx98357_rt5682",
    > .machine_quirk = snd_soc_acpi_codec_list,
    > .quirk_data = &adl_max98357a_amp,
    > @@ -304,6 +311,7 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = {
    > },
    > {
    > .id = "10EC5682",
    > + .id_alt = &adl_rt5682s_hp,
    > .drv_name = "adl_mx98360_rt5682",
    > .machine_quirk = snd_soc_acpi_codec_list,
    > .quirk_data = &adl_max98360a_amp,

    Is there any way we can collapse this and the primary id into a single
    list to avoid having 2 locations to track for the IDs?

    \
     
     \ /
      Last update: 2021-10-06 20:35    [W:4.788 / U:0.192 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site