From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Terry Chen <terry_chen@wistron.corp-partner.google.com>
Cc: alsa-devel@alsa-project.org, cezary.rojewski@intel.com,
liam.r.girdwood@linux.intel.com, yang.jie@linux.intel.com,
broonie@kernel.org, perex@perex.cz, tiwai@suse.com,
brent.lu@intel.com, cujomalainey@chromium.org,
Sean Paul <seanpaul@chromium.org>,
casey.g.bowman@intel.com,
Mark Hsieh <mark_hsieh@wistron.corp-partner.google.com>,
vamshi.krishna.gopal@intel.com, Mac Chiang <mac.chiang@intel.com>,
kai.vehmanen@linux.intel.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [v2] ASoC: Intel: sof_cs42l42: adding support for ADL configuration and BT offload audio
Date: Wed, 11 May 2022 09:02:58 -0500 [thread overview]
Message-ID: <a71c4a2c-06f9-faa7-07ee-783ee7f136ec@linux.intel.com> (raw)
In-Reply-To: <CAMmR3bFad5ODKYUCg8Tp8GVk__AdaQHcpLnRmFyAGXu8Wpycog@mail.gmail.com>
On 5/11/22 01:33, Terry Chen wrote:
> Hi Pierre-Louis
>
>> @@ -522,6 +578,14 @@ static struct snd_soc_dai_link *sof_card_dai_links_create(struct device *dev,
>> goto devm_err;
>> }
>> break;
>> + case LINK_BT:
>> + ret = create_bt_offload_dai_links(dev, links, cpus, &id, ssp_bt);
>> + if (ret < 0) {
>> + dev_err(dev, "fail to create bt offload dai links, ret %d\n",
>> + ret);
>
> For this point, we just follow Intel member to write for this coding
> style. The other component also was the same style.
the magic of copy-paste, eh? Please update this, thanks.
> > @@ -384,6 +384,14 @@ struct snd_soc_acpi_mach
> snd_soc_acpi_intel_adl_machines[] = {
> > .sof_fw_filename = "sof-adl.ri",
> > .sof_tplg_filename = "sof-adl-cs35l41.tplg",
> > },
> > + {
> > + .id = "10134242",
> > + .drv_name = "adl_mx98360a_cs4242",
> > + .machine_quirk = snd_soc_acpi_codec_list,
> > + .quirk_data = &adl_max98360a_amp,
> > + .sof_fw_filename = "sof-adl.ri",
>
> This also was the same style with others.
No, it's not a matter of style but rather that this field was *REMOVED*,
this cannot possibly compile.
see commit a6264056b39ee ("ASoC: soc-acpi: remove sof_fw_filename
")
If you had submitted this patch through the SOF tree, you would have
seen a compilation error.
>
> > + .sof_tplg_filename = "sof-adl-max98360a-rt5682.tplg",
>
> Why would you refer to a topology that uses a different codec?
>
>
> Because Intel college use the same naming style for the same audio codec.
It's bad practice to use the same topology name for different platforms
based on different codecs. One evolution of the topology would impact an
unrelated platform. Please use a symlink or duplicate the topology with
a different name, this is not future-proof and will be problematic for
releases.
prev parent reply other threads:[~2022-05-11 14:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-10 10:48 [PATCH] [v2] ASoC: Intel: sof_cs42l42: adding support for ADL configuration and BT offload audio Terry Chen
2022-05-10 14:40 ` Pierre-Louis Bossart
2022-05-11 6:49 ` Lu, Brent
[not found] ` <CAMmR3bFad5ODKYUCg8Tp8GVk__AdaQHcpLnRmFyAGXu8Wpycog@mail.gmail.com>
2022-05-11 14:02 ` 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=a71c4a2c-06f9-faa7-07ee-783ee7f136ec@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=brent.lu@intel.com \
--cc=broonie@kernel.org \
--cc=casey.g.bowman@intel.com \
--cc=cezary.rojewski@intel.com \
--cc=cujomalainey@chromium.org \
--cc=kai.vehmanen@linux.intel.com \
--cc=liam.r.girdwood@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mac.chiang@intel.com \
--cc=mark_hsieh@wistron.corp-partner.google.com \
--cc=perex@perex.cz \
--cc=seanpaul@chromium.org \
--cc=terry_chen@wistron.corp-partner.google.com \
--cc=tiwai@suse.com \
--cc=vamshi.krishna.gopal@intel.com \
--cc=yang.jie@linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox