git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5dd6a1
)
ASoC: omap-mcbsp: fix start_threshold hack
author
Grazvydas Ignotas
<notasas@gmail.com>
Thu, 10 May 2012 23:16:09 +0000
(
02:16
+0300)
committer
Grazvydas Ignotas
<notasas@gmail.com>
Sun, 13 May 2012 14:38:11 +0000
(17:38 +0300)
should only apply to playback streams..
sound/soc/omap/omap-mcbsp.c
patch
|
blob
|
history
diff --git
a/sound/soc/omap/omap-mcbsp.c
b/sound/soc/omap/omap-mcbsp.c
index
569b258
..
f7ee0e8
100644
(file)
--- a/
sound/soc/omap/omap-mcbsp.c
+++ b/
sound/soc/omap/omap-mcbsp.c
@@
-614,6
+614,9
@@
static int omap_mcbsp_dai_prepare(struct snd_pcm_substream *substream,
struct snd_pcm_runtime *runtime = substream->runtime;
int size;
+ if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
+ return 0;
+
size = omap_mcbsp_get_fifo_size(mcbsp_data->bus_id);
size /= substream->runtime->channels;