diff options
author | Zhu Yingjiang <yingjiang.zhu@linux.intel.com> | 2019-05-01 01:09:22 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-03 07:58:11 +0200 |
commit | 74ed4097f5894a07b515361dd673ad3fadb665b2 (patch) | |
tree | 5fc5e23d5b1786428c30616357cb9056e9d621ca /sound/soc/sof/intel/hda.h | |
parent | ASoC: SOF: Intel: hda: add SSP info to the chip info struct (diff) | |
download | linux-74ed4097f5894a07b515361dd673ad3fadb665b2.tar.xz linux-74ed4097f5894a07b515361dd673ad3fadb665b2.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | sound/soc/sof/intel/hda.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/sof/intel/hda.h b/sound/soc/sof/intel/hda.h index b2cf6fa15575..3799a3518106 100644 --- a/sound/soc/sof/intel/hda.h +++ b/sound/soc/sof/intel/hda.h @@ -349,6 +349,12 @@ #define APL_SSP_COUNT 6 #define CNL_SSP_COUNT 3 +/* SSP Registers */ +#define SSP_SSC1_OFFSET 0x4 +#define SSP_SET_SCLK_SLAVE BIT(25) +#define SSP_SET_SFRM_SLAVE BIT(24) +#define SSP_SET_SLAVE (SSP_SET_SCLK_SLAVE | SSP_SET_SFRM_SLAVE) + #define HDA_IDISP_CODEC(x) ((x) & BIT(2)) struct sof_intel_dsp_bdl { |