diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-10-18 01:46:49 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-20 12:28:02 -0400 |
commit | e244bb9bc1883547d44642c99f483c2e57e2a940 (patch) | |
tree | 178e93a70067eda9ec68a3d9ba751c448fba8ef0 /sound/soc/generic | |
parent | 61e6cfa80de5760bbe406f4e815b7739205754d2 (diff) |
ASoC: simple-card: un-implemented set_fmt is not error
Current simple-card returns error if DAI doesn't
support .set_fmt callback.
But the error is -ENOTSUPP (= not supported),
and it is not error.
This patch avoids such case
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/generic')
-rw-r--r-- | sound/soc/generic/simple-card.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 8c49147db84c..b2fbb7075a6c 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c | |||
@@ -27,6 +27,11 @@ static int __asoc_simple_card_dai_init(struct snd_soc_dai *dai, | |||
27 | if (!ret && daifmt) | 27 | if (!ret && daifmt) |
28 | ret = snd_soc_dai_set_fmt(dai, daifmt); | 28 | ret = snd_soc_dai_set_fmt(dai, daifmt); |
29 | 29 | ||
30 | if (ret == -ENOTSUPP) { | ||
31 | dev_dbg(dai->dev, "ASoC: set_fmt is not supported\n"); | ||
32 | ret = 0; | ||
33 | } | ||
34 | |||
30 | if (!ret && set->sysclk) | 35 | if (!ret && set->sysclk) |
31 | ret = snd_soc_dai_set_sysclk(dai, 0, set->sysclk, 0); | 36 | ret = snd_soc_dai_set_sysclk(dai, 0, set->sysclk, 0); |
32 | 37 | ||