summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaweł Harłoziński <pawel.harlozinski@intel.com>2019-06-13 21:04:31 +0200
committerMark Brown <broonie@kernel.org>2019-06-25 15:32:36 +0100
commitd5fcaaba54ce729a018e50938aa6d355cffc7ef4 (patch)
tree7dc0d24716aed2b77ace175391921c81d8a4242a /include
parent24043d60ff50ac3b72644ddbdfb7fa2df93fd648 (diff)
downloadlinux-d5fcaaba54ce729a018e50938aa6d355cffc7ef4.tar.gz
linux-d5fcaaba54ce729a018e50938aa6d355cffc7ef4.tar.bz2
linux-d5fcaaba54ce729a018e50938aa6d355cffc7ef4.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/sound/hda_codec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/hda_codec.h b/include/sound/hda_codec.h
index cc7c8d42d4fd..ad46a082b00f 100644
--- a/include/sound/hda_codec.h
+++ b/include/sound/hda_codec.h
@@ -31,6 +31,9 @@
#include <sound/hda_verbs.h>
#include <sound/hda_regmap.h>
+#define IS_BXT(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x5a98)
+#define IS_CFL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0xa348)
+
/*
* Structures
*/