Skip to content

Commit

Permalink
ASoC: Intel: Fix simultaneous Baytrail SST capture and playback
Browse files Browse the repository at this point in the history
I managed to drop a change to stream ID setting from commit 49fee17
("ASoC: Intel: Only export one Baytrail DAI") leading to non-working
simultaneous capture-playback since after one DAI conversion
rtd->cpu_dai->id + 1 will be the same for both playback and capture.

Use substream->stream + 1 like it was in original Liam's patch.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Jarkko Nikula authored and Mark Brown committed May 15, 2014
1 parent 49fee17 commit 8c44b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/intel/sst-baytrail-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ static int sst_byt_pcm_open(struct snd_pcm_substream *substream)

snd_soc_set_runtime_hwparams(substream, &sst_byt_pcm_hardware);

pcm_data->stream = sst_byt_stream_new(byt, rtd->cpu_dai->id + 1,
pcm_data->stream = sst_byt_stream_new(byt, substream->stream + 1,
byt_notify_pointer, pcm_data);
if (pcm_data->stream == NULL) {
dev_err(rtd->dev, "failed to create stream\n");
Expand Down

0 comments on commit 8c44b2b

Please sign in to comment.