From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Shenghao Ding <shenghao-ding@ti.com>
Cc: broonie@kernel.org, lgirdwood@gmail.com, perex@perex.cz,
pierre-louis.bossart@linux.intel.com, 13916275206@139.com,
alsa-devel@alsa-project.org, i-salazar@ti.com,
linux-kernel@vger.kernel.org, j-chadha@ti.com,
liam.r.girdwood@intel.com, jaden-yue@ti.com,
yung-chuan.liao@linux.intel.com, dipa@ti.com, kevin-lu@ti.com,
yuhsuan@google.com, tiwai@suse.de, baojun.xu@ti.com,
soyer@irl.hu, Baojun.Xu@fpt.com, judyhsiao@google.com,
navada@ti.com, cujomalainey@google.com, aanya@ti.com,
nayeem.mahmud@ti.com, savyasanchi.shukla@netradyne.com,
flaviopr@microsoft.com
Subject: Re: [PATCH v3] ASoc: tas2781: Enable RCA-based playback without DSP firmware download
Date: Wed, 29 May 2024 18:07:29 +0300 [thread overview]
Message-ID: <ZldEsZ7aSFbHOhd_@smile.fi.intel.com> (raw)
In-Reply-To: <20240529103543.2089-1-shenghao-ding@ti.com>
On Wed, May 29, 2024 at 06:35:41PM +0800, Shenghao Ding wrote:
> In only RCA(Reconfigurable Architecture) binary case, no DSP program will
"...RCA (..."
> be working inside tas2563/tas2781, that is dsp-bypass mode, do not support
> speaker protection, and audio acoustic algorithms in this mode.
Some minor issues below.
...
> - if (tas_priv->fw_state == TASDEVICE_DSP_FW_FAIL) {
> - dev_err(tas_priv->dev, "DSP bin file not loaded\n");
> + /*
> + * Only RCA-based Playback can still work with no dsp program running
> + * inside the chip?
> + */
> + if (!(tas_priv->fw_state == TASDEVICE_RCA_FW_OK ||
> + tas_priv->fw_state == TASDEVICE_DSP_FW_ALL_OK)) {
This line has broken indentation and I already pointed out a few times to
such issues. It makes harder to read the code.
> + dev_err(tas_priv->dev, "No firmware loaded\n");
> return;
> }
...
> scnprintf(tas_priv->coef_binaryname, 64, "%s_coef.bin",
> tas_priv->dev_name);
> +
Stray change?
> ret = tasdevice_dsp_parser(tas_priv);
...
> + if (tas_priv->fw_state == TASDEVICE_RCA_FW_OK) {
> + /*If DSP FW fail, DSP kcontrol won't be created */
Mind spaces in the comment.
> tasdevice_dsp_remove(tas_priv);
> }
...
> - if (tas_priv->fw_state != TASDEVICE_DSP_FW_ALL_OK) {
> - dev_err(tas_priv->dev, "DSP bin file not loaded\n");
> - ret = -EINVAL;
> + if (!(tas_priv->fw_state == TASDEVICE_DSP_FW_ALL_OK ||
> + tas_priv->fw_state == TASDEVICE_RCA_FW_OK)) {
Broken indentation.
> + dev_err(tas_priv->dev, "Bin file not loaded\n");
> + return -EINVAL;
> }
--
With Best Regards,
Andy Shevchenko
prev parent reply other threads:[~2024-05-29 15:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-29 10:35 [PATCH v3] ASoc: tas2781: Enable RCA-based playback without DSP firmware download Shenghao Ding
2024-05-29 14:23 ` Pierre-Louis Bossart
2024-05-29 15:07 ` Andy Shevchenko [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=ZldEsZ7aSFbHOhd_@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=13916275206@139.com \
--cc=Baojun.Xu@fpt.com \
--cc=aanya@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=baojun.xu@ti.com \
--cc=broonie@kernel.org \
--cc=cujomalainey@google.com \
--cc=dipa@ti.com \
--cc=flaviopr@microsoft.com \
--cc=i-salazar@ti.com \
--cc=j-chadha@ti.com \
--cc=jaden-yue@ti.com \
--cc=judyhsiao@google.com \
--cc=kevin-lu@ti.com \
--cc=lgirdwood@gmail.com \
--cc=liam.r.girdwood@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=navada@ti.com \
--cc=nayeem.mahmud@ti.com \
--cc=perex@perex.cz \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=savyasanchi.shukla@netradyne.com \
--cc=shenghao-ding@ti.com \
--cc=soyer@irl.hu \
--cc=tiwai@suse.de \
--cc=yuhsuan@google.com \
--cc=yung-chuan.liao@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