projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
007d9a6
)
ASoC: Intel: cht_bsw_rt5672: check return value
author
Chao Song
<chao.song@linux.intel.com>
Mon, 27 Nov 2023 15:26:31 +0000
(17:26 +0200)
committer
Mark Brown
<broonie@kernel.org>
Mon, 27 Nov 2023 16:32:51 +0000
(16:32 +0000)
Set codec sysclk could fail and return error, add
error check for it.
Signed-off-by: Chao Song <chao.song@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link:
https://lore.kernel.org/r/20231127152654.28204-5-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/cht_bsw_rt5672.c
patch
|
blob
|
history
diff --git
a/sound/soc/intel/boards/cht_bsw_rt5672.c
b/sound/soc/intel/boards/cht_bsw_rt5672.c
index f6da24f3c466e42686534400d1d48b4312c5ce8f..8cf0b33cc02eb5763acbb572ab0387efbe8da325 100644
(file)
--- a/
sound/soc/intel/boards/cht_bsw_rt5672.c
+++ b/
sound/soc/intel/boards/cht_bsw_rt5672.c
@@
-93,8
+93,12
@@
static int platform_clock_control(struct snd_soc_dapm_widget *w,
* when codec is runtime suspended. Codec needs clock for jack
* detection and button press.
*/
- snd_soc_dai_set_sysclk(codec_dai, RT5670_SCLK_S_RCCLK,
- 48000 * 512, SND_SOC_CLOCK_IN);
+ ret = snd_soc_dai_set_sysclk(codec_dai, RT5670_SCLK_S_RCCLK,
+ 48000 * 512, SND_SOC_CLOCK_IN);
+ if (ret < 0) {
+ dev_err(card->dev, "failed to set codec sysclk: %d\n", ret);
+ return ret;
+ }
if (ctx->mclk)
clk_disable_unprepare(ctx->mclk);