diff options
author | Yong Zhi <yong.zhi@intel.com> | 2016-05-27 07:30:15 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-05-30 20:16:44 +0300 |
commit | f65cf7d666371562ef83b487a31e73642f3a3564 (patch) | |
tree | f63d27e08341700cb221106be3d180172e1ed892 /sound/soc/intel/skylake/skl-nhlt.h | |
parent | 0c7941a63a0f46cfd4c41f30e5fcd55e678d535c (diff) | |
download | linux-f65cf7d666371562ef83b487a31e73642f3a3564.tar.xz |
ASoC: Intel: Skylake: Add api to retrieve dmic array info from nhlt
Skylake can be configured with either both 2 and 4 channel DMIC
array, or 2 channel DMIC array only, this patch provides an API to
retrieve the DMIC info from nhlt.
Signed-off-by: Yong Zhi <yong.zhi@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/skylake/skl-nhlt.h')
-rw-r--r-- | sound/soc/intel/skylake/skl-nhlt.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sound/soc/intel/skylake/skl-nhlt.h b/sound/soc/intel/skylake/skl-nhlt.h index 3769f9fefe2b..116534e7b3c5 100644 --- a/sound/soc/intel/skylake/skl-nhlt.h +++ b/sound/soc/intel/skylake/skl-nhlt.h @@ -103,4 +103,26 @@ struct nhlt_resource_desc { u64 length; } __packed; +#define MIC_ARRAY_2CH 2 +#define MIC_ARRAY_4CH 4 + +struct nhlt_tdm_config { + u8 virtual_slot; + u8 config_type; +} __packed; + +struct nhlt_dmic_array_config { + struct nhlt_tdm_config tdm_config; + u8 array_type; +} __packed; + +enum { + NHLT_MIC_ARRAY_2CH_SMALL = 0xa, + NHLT_MIC_ARRAY_2CH_BIG = 0xb, + NHLT_MIC_ARRAY_4CH_1ST_GEOM = 0xc, + NHLT_MIC_ARRAY_4CH_L_SHAPED = 0xd, + NHLT_MIC_ARRAY_4CH_2ND_GEOM = 0xe, + NHLT_MIC_ARRAY_VENDOR_DEFINED = 0xf, +}; + #endif |