From: Jean-Francois Moine Date: Fri, 3 Jan 2014 08:19:18 +0000 (+0100) Subject: ASoC: pcm: Fix lack of platform bespoke_trigger() call X-Git-Tag: v3.14-rc1~16^2~11^2^2~5^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dcf0fa27a56025793a700e81edd261ee3369e294;p=profile%2Fivi%2Fkernel-x86-ivi.git ASoC: pcm: Fix lack of platform bespoke_trigger() call When the platform driver has no ops, the platform function bespoke_trigger() is no more called. The problem was introduced by the commit c5914b0aaea6494aaa9e415cbd32f8b7eb604af0 "ASoC: pcm: Check for ops before deferencing them" Signed-off-by: Jean-Francois Moine Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index feb0f28..d70eecd 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -769,7 +769,7 @@ static int soc_pcm_bespoke_trigger(struct snd_pcm_substream *substream, return ret; } - if (platform->driver->ops && platform->driver->bespoke_trigger) { + if (platform->driver->bespoke_trigger) { ret = platform->driver->bespoke_trigger(substream, cmd); if (ret < 0) return ret;