From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Joel Holdsworth <joel@airwebreathe.org.uk>, alsa-devel@alsa-project.org
Subject: Re: [PATCH] Asoc: Intel: common: Removed unused sst_acpi_mach fields
Date: Mon, 25 Apr 2016 22:17:07 -0500 [thread overview]
Message-ID: <571EDDB3.9050907@linux.intel.com> (raw)
In-Reply-To: <571EDD22.1050909@linux.intel.com>
On 4/25/16 10:14 PM, Pierre-Louis Bossart wrote:
> On 4/25/16 9:44 PM, Joel Holdsworth wrote:
>> The fields in question are currently unused, and are unlikely to be
>> useful in the future:
>>
>> - "board" is a very vague name not related to a concrete matching
>> criteria such as a DMI match or ACPI OEM IDs.
>>
>> - "machine_quirk" lacks the pointer arguments to be able to
>> manipulate any sst-acpi structures. For it to be useful these
>> would need to be added. Furthermore, a quirk function is much
>> more likely to be relevant to a whole chipset, rather than a
>> single board.
>>
>> - Without "machine_quirk", "pdata" serves no purpose and should
>> be removed.
>
> please don't touch this. I just used pdata for baytrail-CR work.
And you missed the code in soc/intel/atom/sst/sst_acpi.c so your patches
won't work in the first place.
>
>> ---
>> sound/soc/intel/common/sst-acpi.c | 8 ++++----
>> sound/soc/intel/common/sst-acpi.h | 5 -----
>> 2 files changed, 4 insertions(+), 9 deletions(-)
>>
>> diff --git a/sound/soc/intel/common/sst-acpi.c
>> b/sound/soc/intel/common/sst-acpi.c
>> index 2c5eda1..aba6575 100644
>> --- a/sound/soc/intel/common/sst-acpi.c
>> +++ b/sound/soc/intel/common/sst-acpi.c
>> @@ -180,7 +180,7 @@ static int sst_acpi_remove(struct platform_device
>> *pdev)
>> }
>>
>> static struct sst_acpi_mach haswell_machines[] = {
>> - { "INT33CA", "haswell-audio", "intel/IntcSST1.bin", NULL, NULL,
>> NULL },
>> + { "INT33CA", "haswell-audio", "intel/IntcSST1.bin" },
>> {}
>> };
>>
>> @@ -198,7 +198,7 @@ static struct sst_acpi_desc sst_acpi_haswell_desc = {
>> };
>>
>> static struct sst_acpi_mach broadwell_machines[] = {
>> - { "INT343A", "broadwell-audio", "intel/IntcSST2.bin", NULL, NULL,
>> NULL },
>> + { "INT343A", "broadwell-audio", "intel/IntcSST2.bin" },
>> {}
>> };
>>
>> @@ -217,8 +217,8 @@ static struct sst_acpi_desc
>> sst_acpi_broadwell_desc = {
>>
>> #if !IS_ENABLED(CONFIG_SND_SST_IPC_ACPI)
>> static struct sst_acpi_mach baytrail_machines[] = {
>> - { "10EC5640", "byt-rt5640",
>> "intel/fw_sst_0f28.bin-48kHz_i2s_master", NULL, NULL, NULL },
>> - { "193C9890", "byt-max98090",
>> "intel/fw_sst_0f28.bin-48kHz_i2s_master", NULL, NULL, NULL },
>> + { "10EC5640", "byt-rt5640",
>> "intel/fw_sst_0f28.bin-48kHz_i2s_master" },
>> + { "193C9890", "byt-max98090",
>> "intel/fw_sst_0f28.bin-48kHz_i2s_master" },
>> {}
>> };
>>
>> diff --git a/sound/soc/intel/common/sst-acpi.h
>> b/sound/soc/intel/common/sst-acpi.h
>> index 4dcfb7e..9eb8ade 100644
>> --- a/sound/soc/intel/common/sst-acpi.h
>> +++ b/sound/soc/intel/common/sst-acpi.h
>> @@ -28,9 +28,4 @@ struct sst_acpi_mach {
>> const char *drv_name;
>> /* firmware file name */
>> const char *fw_filename;
>> -
>> - /* board name */
>> - const char *board;
>> - void (*machine_quirk)(void);
>> - void *pdata;
>> };
>>
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
prev parent reply other threads:[~2016-04-26 3:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-26 2:44 [PATCH] Asoc: Intel: common: Removed unused sst_acpi_mach fields Joel Holdsworth
2016-04-26 3:14 ` Pierre-Louis Bossart
2016-04-26 3:17 ` Pierre-Louis Bossart [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=571EDDB3.9050907@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=joel@airwebreathe.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.