]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5974a937d28f1766187d15199f83b54af8874c02
tree7dc0d24716aed2b77ace175391921c81d8a4242a
parent73dddfb381eace51b5aa904fde02070c72586a05
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