ASoC: Intel: Skylake: Use recommended SDxFMT programming sequence
authorPaweł Harłoziński <pawel.harlozinski@intel.com>
Thu, 13 Jun 2019 19:04:31 +0000 (21:04 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 25 Jun 2019 14:32:36 +0000 (15:32 +0100)
commitd5fcaaba54ce729a018e50938aa6d355cffc7ef4
tree7dc0d24716aed2b77ace175391921c81d8a4242a
parent24043d60ff50ac3b72644ddbdfb7fa2df93fd648
ASoC: Intel: Skylake: Use recommended SDxFMT programming sequence

For BXT platforms, the recommended sequence to program the SDxFMT is to
first couple the stream, write the format and decouple again.
For all other platforms said sequence remains unchanged.

To prevent code duplication, IS_BXT (and consequently IS_CFL) macro is
relocated to hda_codec.h file so it can be accessed by SKL driver.

Signed-off-by: Paweł Harłoziński <pawel.harlozinski@intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/hda_codec.h
sound/pci/hda/hda_intel.c
sound/soc/intel/skylake/skl-pcm.c