diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2023-10-19 12:34:03 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-10-19 19:00:14 +0100 |
commit | a92ccd574390149d3d64488ec5fe1e9b80e5f74c (patch) | |
tree | 4547dba9b639dd622a562c098a9bfd3eddaa8181 /sound/soc/intel | |
parent | 28809aaeabdf2c01ffe597553146527d1fba3589 (diff) |
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>
Diffstat (limited to 'sound/soc/intel')
-rw-r--r-- | sound/soc/intel/boards/sof_sdw_cs42l43.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/soc/intel/boards/sof_sdw_cs42l43.c b/sound/soc/intel/boards/sof_sdw_cs42l43.c index dc3062cc3a43..9b072c745f10 100644 --- a/sound/soc/intel/boards/sof_sdw_cs42l43.c +++ b/sound/soc/intel/boards/sof_sdw_cs42l43.c @@ -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; } |