[alsa-devel] [PATCH] ASoC: rcar: fixup rsnd_platform_call() return value
![](https://secure.gravatar.com/avatar/2ea1ea42072986bc3dd023464d0c2de6.jpg?s=120&d=mm&r=g)
11 Oct
2013
11 Oct
'13
9:06 a.m.
Un-implemented platform callback is not error.
Signed-off-by: Kuninori Morimoto kuninori.morimoto.gx@renesas.com --- sound/soc/sh/rcar/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index fc83f0f..28c24fc 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -103,7 +103,7 @@ * rsnd_platform functions */ #define rsnd_platform_call(priv, dai, func, param...) \ - (!(priv->info->func) ? -ENODEV : \ + (!(priv->info->func) ? 0 : \ priv->info->func(param))
/*
--
1.7.9.5
3901
Age (days ago)
3901
Last active (days ago)
1 comments
2 participants
participants (2)
-
Kuninori Morimoto
-
Mark Brown