aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorIliyan Malchev <malchev@google.com>2011-09-21 21:34:06 -0700
committerIliyan Malchev <malchev@google.com>2011-09-21 21:34:06 -0700
commitef8762f5f58e96fea3ddd665559945a46f44f7ad (patch)
tree011ce5285945b59b0a0ed029978ce676baeeaf83 /sound
parent69f32f10b430a63ae2b49ec0bea28bb22b59ca32 (diff)
parent7bd26b77838eb98a56e21821e8a1a9f90eb12eec (diff)
downloadkernel_samsung_tuna-ef8762f5f58e96fea3ddd665559945a46f44f7ad.zip
kernel_samsung_tuna-ef8762f5f58e96fea3ddd665559945a46f44f7ad.tar.gz
kernel_samsung_tuna-ef8762f5f58e96fea3ddd665559945a46f44f7ad.tar.bz2
Merge branch 'linux-omap-3.0' into android-omap-3.0
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/omap/omap-mcbsp.c3
-rw-r--r--sound/soc/soc-dsp.c8
2 files changed, 4 insertions, 7 deletions
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c
index 36d1cae..219ca45 100644
--- a/sound/soc/omap/omap-mcbsp.c
+++ b/sound/soc/omap/omap-mcbsp.c
@@ -516,6 +516,9 @@ static int omap_mcbsp_dai_set_dai_sysclk(struct snd_soc_dai *cpu_dai,
struct omap_mcbsp_reg_cfg *regs = &mcbsp_data->regs;
int err = 0;
+ if (mcbsp_data->active)
+ return 0;
+
/* The McBSP signal muxing functions are only available on McBSP1 */
if (clk_id == OMAP_MCBSP_CLKR_SRC_CLKR ||
clk_id == OMAP_MCBSP_CLKR_SRC_CLKX ||
diff --git a/sound/soc/soc-dsp.c b/sound/soc/soc-dsp.c
index 24c8e5e..fd1610d 100644
--- a/sound/soc/soc-dsp.c
+++ b/sound/soc/soc-dsp.c
@@ -1040,18 +1040,12 @@ static int dsp_run_update_startup(struct snd_soc_pcm_runtime *fe, int stream)
fe->cpu_dai->driver->capture.stream_name,
SNDRV_PCM_TRIGGER_START);
- /* determine trigger command */
- if (fe->dsp[stream].state == SND_SOC_DSP_STATE_START)
- cmd = SNDRV_PCM_TRIGGER_START;
- else
- cmd = SNDRV_PCM_TRIGGER_STOP;
-
if (dsp_link->trigger[stream] == SND_SOC_DSP_TRIGGER_BESPOKE) {
/* call trigger on the frontend - FE takes care of all BE triggers */
dev_dbg(&fe->dev, "dsp: bespoke trigger FE %s cmd start\n",
fe->dai_link->name);
- ret = soc_pcm_bespoke_trigger(substream, cmd);
+ ret = soc_pcm_bespoke_trigger(substream, SNDRV_PCM_TRIGGER_START);
if (ret < 0) {
dev_err(&fe->dev,"dsp: trigger FE failed %d\n", ret);
return ret;