diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2019-08-30 13:38:41 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-08-30 14:23:04 +0300 |
commit | 69f34053f883a53e86fa8ff7b99a81d8b5d50dae (patch) | |
tree | f04a38098b6213f535486a2223d550be3ee65bbb /sound/soc/ti | |
parent | 27b7def93aaba0838eb90e6b3c3110a856bb09fc (diff) | |
download | linux-69f34053f883a53e86fa8ff7b99a81d8b5d50dae.tar.xz |
ASoC: ti: davinci-evm: Do not fail if the dai_set_sysclk returns -ENOTSUPP
The davinci McBSP (davinci-i2s) driver does not implement the set_sysclk
callback, which is fine and should not be treated as error.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20190830103841.25128-5-peter.ujfalusi@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/ti')
-rw-r--r-- | sound/soc/ti/davinci-evm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/ti/davinci-evm.c b/sound/soc/ti/davinci-evm.c index bfd8d1a03ba7..686b23d7a90d 100644 --- a/sound/soc/ti/davinci-evm.c +++ b/sound/soc/ti/davinci-evm.c @@ -68,7 +68,7 @@ static int evm_hw_params(struct snd_pcm_substream *substream, /* set the CPU system clock */ ret = snd_soc_dai_set_sysclk(cpu_dai, 0, sysclk, SND_SOC_CLOCK_OUT); - if (ret < 0) + if (ret < 0 && ret != -ENOTSUPP) return ret; return 0; |