diff options
author | Rander Wang <rander.wang@linux.intel.com> | 2019-07-22 17:14:00 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-07-23 14:25:31 +0300 |
commit | 810dbea3656912d6ad8db691a9a4b2ad97d4b736 (patch) | |
tree | daebe916f90c661fbbd3a3840520367ba400b806 /sound/soc/sof/intel/hda-dsp.c | |
parent | 934bf82203d679a8f2ff22817e341bc059f5f7fc (diff) | |
download | linux-810dbea3656912d6ad8db691a9a4b2ad97d4b736.tar.xz |
ASoC: SOF: Intel: hda: fix stream id setting
snd_hdac_ext_link_clear_stream_id maps stream id to
link output, which is for playback, not capture.
Tested on Whiskey Lake platform.
Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190722141402.7194-20-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/intel/hda-dsp.c')
-rw-r--r-- | sound/soc/sof/intel/hda-dsp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sound/soc/sof/intel/hda-dsp.c b/sound/soc/sof/intel/hda-dsp.c index e38008194574..fb55a3c5afd0 100644 --- a/sound/soc/sof/intel/hda-dsp.c +++ b/sound/soc/sof/intel/hda-dsp.c @@ -450,9 +450,15 @@ int hda_dsp_set_hw_params_upon_resume(struct snd_sof_dev *sdev) link = snd_hdac_ext_bus_get_link(bus, name); if (!link) return -EINVAL; + + stream->link_prepared = 0; + + if (hdac_stream(stream)->direction == + SNDRV_PCM_STREAM_CAPTURE) + continue; + stream_tag = hdac_stream(stream)->stream_tag; snd_hdac_ext_link_clear_stream_id(link, stream_tag); - stream->link_prepared = 0; } } #endif |