ASoC: intel: sof_sdw_cs42l43: Some trivial formatting clean ups
No functional change, just some trivial whitespace fixups. Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20231019173411.166759-3-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
28809aaeab
commit
a92ccd5743
@@ -47,7 +47,8 @@ static int cs42l43_hs_rtd_init(struct snd_soc_pcm_runtime *rtd)
|
||||
struct snd_soc_card *card = rtd->card;
|
||||
int ret;
|
||||
|
||||
card->components = devm_kasprintf(card->dev, GFP_KERNEL, "%s hs:cs42l43", card->components);
|
||||
card->components = devm_kasprintf(card->dev, GFP_KERNEL, "%s hs:cs42l43",
|
||||
card->components);
|
||||
if (!card->components)
|
||||
return -ENOMEM;
|
||||
|
||||
@@ -60,7 +61,6 @@ static int cs42l43_hs_rtd_init(struct snd_soc_pcm_runtime *rtd)
|
||||
|
||||
ret = snd_soc_dapm_add_routes(&card->dapm, cs42l43_hs_map,
|
||||
ARRAY_SIZE(cs42l43_hs_map));
|
||||
|
||||
if (ret) {
|
||||
dev_err(card->dev, "cs42l43 hs map addition failed: %d\n", ret);
|
||||
return ret;
|
||||
@@ -104,7 +104,6 @@ int sof_sdw_cs42l43_hs_init(struct snd_soc_card *card, const struct snd_soc_acpi
|
||||
* No need to test if (!playback) like other codecs as cs42l43 uses separated dai for
|
||||
* playback and capture, and sof_sdw_cs42l43_init is only linked to the playback dai.
|
||||
*/
|
||||
|
||||
dai_links->init = cs42l43_hs_rtd_init;
|
||||
|
||||
return 0;
|
||||
@@ -129,7 +128,6 @@ static int cs42l43_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd)
|
||||
|
||||
ret = snd_soc_dapm_add_routes(&card->dapm, cs42l43_dmic_map,
|
||||
ARRAY_SIZE(cs42l43_dmic_map));
|
||||
|
||||
if (ret)
|
||||
dev_err(card->dev, "cs42l43 dmic map addition failed: %d\n", ret);
|
||||
|
||||
@@ -141,5 +139,6 @@ int sof_sdw_cs42l43_dmic_init(struct snd_soc_card *card, const struct snd_soc_ac
|
||||
bool playback)
|
||||
{
|
||||
dai_links->init = cs42l43_dmic_rtd_init;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user