All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	alsa-devel@alsa-project.org
Cc: tiwai@suse.de, vinod.koul@intel.com, broonie@kernel.org,
	liam.r.girdwood@linux.intel.com
Subject: Re: [PATCH 3/8] ASoC: ACPI: add new fields for SOF support
Date: Fri, 13 Oct 2017 12:17:32 -0500	[thread overview]
Message-ID: <ade9cab2-7ae2-5d42-d640-86ce2e637d45@linux.intel.com> (raw)
In-Reply-To: <1507912517.16112.463.camel@linux.intel.com>

On 10/13/17 11:35 AM, Andy Shevchenko wrote:
> On Thu, 2017-10-12 at 18:49 -0500, Pierre-Louis Bossart wrote:
> 
>> - * @fw_filename: firmware file name.
>> + * @fw_filename: firmware file name. Used when SOF is not enabled.
> 
>> + * @sof_fw_filename: Sound Open Firmware file name, if enabled
>> + * @sof_tplg_filename: Sound Open Firmware topology file name, if
>> enabled
> 
> Naming looks a bit awkward to me, though I would like to bring something
> else here, i.e. unifying those firmwares somehow here.
> 
> It might be dealt with using two different (embedded) structs, e.g.
> 
> enum fw_type fw_type;
> union {
>   struct regular_fw fw;
>   struct sof_fw sof;
> }
> 
> It looks for me slightly cleaner to this struct than bring everything
> inside it.
> 
> What do you think?

It'll be up to users/distributions to select if they want the existing 
drivers, or the SOF-based ones. I don't see how a union might accomplish 
this - maybe I missed your point completely.
We wanted to store all the information required for both cases in one 
structure tied to a specific HID. The fields for the existing solutions 
were kept as is (except for the type renaming), and SOF stuff was added 
as extensions.


> 
>> +	const char *sof_fw_filename;
>> +	const char *sof_tplg_filename;
>> +	const char *asoc_plat_name;
>> +	struct platform_device * (*new_mach_data)(void *pdata);
> 

  reply	other threads:[~2017-10-13 17:17 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-12 23:49 [PATCH 0/8] ASoC: Prepare Sound Open Firmware (SOF) driver integration Pierre-Louis Bossart
2017-10-12 23:49 ` [PATCH 1/8] ASoC: move ACPI common code out of Intel/sst tree Pierre-Louis Bossart
2017-10-12 23:49 ` [PATCH 2/8] ASoC: Intel: common: use c99 syntax for ACPI/machine tables Pierre-Louis Bossart
2017-10-12 23:49 ` [PATCH 3/8] ASoC: ACPI: add new fields for SOF support Pierre-Louis Bossart
2017-10-13 16:35   ` Andy Shevchenko
2017-10-13 17:17     ` Pierre-Louis Bossart [this message]
2017-10-21 10:30   ` Applied "ASoC: ACPI: add new fields for SOF support" to the asoc tree Mark Brown
2017-10-12 23:49 ` [PATCH 4/8] ASoC: Intel: move all ACPI match tables to common module Pierre-Louis Bossart
2017-10-13 16:38   ` Andy Shevchenko
2017-10-13 17:21     ` Pierre-Louis Bossart
2017-10-21 10:29   ` Applied "ASoC: Intel: move all ACPI match tables to common module" to the asoc tree Mark Brown
2017-10-12 23:49 ` [PATCH 5/8] ASoC: Intel: add SOF firmare/topology file information Pierre-Louis Bossart
2017-10-21 10:29   ` Applied "ASoC: Intel: add SOF firmare/topology file information" to the asoc tree Mark Brown
2017-10-12 23:49 ` [PATCH 6/8] ASoC: Intel: move machine drivers to dedicated KConfig Pierre-Louis Bossart
2017-10-12 23:49 ` [PATCH 7/8] ASoC: Intel: reorder boards Kconfig by chronological order Pierre-Louis Bossart
2017-10-12 23:49 ` [PATCH 8/8] ASoC: Intel: clarify Kconfig dependencies Pierre-Louis Bossart
2017-10-19 21:18 ` [PATCH 0/8] ASoC: Prepare Sound Open Firmware (SOF) driver integration Liam Girdwood

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=ade9cab2-7ae2-5d42-d640-86ce2e637d45@linux.intel.com \
    --to=pierre-louis.bossart@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=broonie@kernel.org \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=tiwai@suse.de \
    --cc=vinod.koul@intel.com \
    /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.