OSDN Git Service

ASoC: SOF: Intel: hda: set I2S slave before enabling DSP
authorZhu Yingjiang <yingjiang.zhu@linux.intel.com>
Tue, 30 Apr 2019 23:09:22 +0000 (18:09 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 3 May 2019 05:58:11 +0000 (14:58 +0900)
commit74ed4097f5894a07b515361dd673ad3fadb665b2
tree5fc5e23d5b1786428c30616357cb9056e9d621ca
parentb095fe47bc1e1c3bf114fde7b76a387ee7b16934
ASoC: SOF: Intel: hda: set I2S slave before enabling DSP

By default, the I2S ports are configured in master mode during
DSP powerup sequences, the FS and BCLK lines will be driven on
startup, even when the topology file explicitly requires the
SSP to be slave.

This may be problematic for external components configured in
master mode who don't expect the Intel SOC/PCH to drive. Fix by
configuring the SSP as slave before the SSP outputs are enabled
to avoid this transient behavior.

When the topology file configures the SSP as clock master, the
initial slave configuration will be overridden.

Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-loader.c
sound/soc/sof/intel/hda.h