projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
002220a
)
ASoC: pcm: Fix lack of platform bespoke_trigger() call
author
Jean-Francois Moine
<
[email protected]
>
Fri, 3 Jan 2014 08:19:18 +0000
(09:19 +0100)
committer
Mark Brown
<
[email protected]
>
Tue, 7 Jan 2014 17:11:07 +0000
(17:11 +0000)
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 <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/soc-pcm.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-pcm.c
b/sound/soc/soc-pcm.c
index feb0f2843026cb9075befa4d7fe549d13f224ce7..d70eecd9e1683af1d9f69ebdb52a44efb9b1fe1b 100644
(file)
--- 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;