Skip to content

Commit 5bd7044

Browse files
plbossartbroonie
authored andcommitted
ASoC: soc-dai: revert all changes to DAI startup/shutdown sequence
On Baytrail/Cherrytrail, the Atom/SST driver fails miserably: [ 9.741953] intel_sst_acpi 80860F28:00: FW Version 01.0c.00.01 [ 9.832992] intel_sst_acpi 80860F28:00: FW sent error response 0x40034 [ 9.833019] intel_sst_acpi 80860F28:00: FW alloc failed ret -4 [ 9.833028] intel_sst_acpi 80860F28:00: sst_get_stream returned err -5 [ 9.833033] sst-mfld-platform sst-mfld-platform: ASoC: DAI prepare error: -5 [ 9.833037] Baytrail Audio Port: ASoC: prepare FE Baytrail Audio Port failed [ 9.853942] intel_sst_acpi 80860F28:00: FW sent error response 0x40034 [ 9.853974] intel_sst_acpi 80860F28:00: FW alloc failed ret -4 [ 9.853984] intel_sst_acpi 80860F28:00: sst_get_stream returned err -5 [ 9.853990] sst-mfld-platform sst-mfld-platform: ASoC: DAI prepare error: -5 [ 9.853994] Baytrail Audio Port: ASoC: prepare FE Baytrail Audio Port failed Commit b56be80 ("ASoC: soc-pcm: call snd_soc_dai_startup()/shutdown() once") was the initial problematic commit. Commit 1ba616b ("ASoC: soc-dai: fix DAI startup/shutdown sequence") was an attempt to fix things but it does not work on Baytrail, reverting all changes seems necessary for now. Fixes: 1ba616b ("ASoC: soc-dai: fix DAI startup/shutdown sequence") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Tested-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20200415030437.23803-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 26d8788 commit 5bd7044

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

‎include/sound/soc-dai.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ struct snd_soc_dai {
351351

352352
/* bit field */
353353
unsigned int probed:1;
354-
unsigned int started[SNDRV_PCM_STREAM_LAST + 1];
355354
};
356355

357356
static inline struct snd_soc_pcm_stream *

‎sound/soc/soc-dai.c‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -295,24 +295,17 @@ int snd_soc_dai_startup(struct snd_soc_dai *dai,
295295
{
296296
int ret = 0;
297297

298-
if (!dai->started[substream->stream] &&
299-
dai->driver->ops->startup)
298+
if (dai->driver->ops->startup)
300299
ret = dai->driver->ops->startup(substream, dai);
301300

302-
if (ret == 0)
303-
dai->started[substream->stream] = 1;
304-
305301
return ret;
306302
}
307303

308304
void snd_soc_dai_shutdown(struct snd_soc_dai *dai,
309305
struct snd_pcm_substream *substream)
310306
{
311-
if (dai->started[substream->stream] &&
312-
dai->driver->ops->shutdown)
307+
if (dai->driver->ops->shutdown)
313308
dai->driver->ops->shutdown(substream, dai);
314-
315-
dai->started[substream->stream] = 0;
316309
}
317310

318311
int snd_soc_dai_prepare(struct snd_soc_dai *dai,

0 commit comments

Comments
 (0)