Commit 1f2d86f1 authored by Vinod Koul's avatar Vinod Koul Committed by Mark Brown

ASoC: Intel: add frame and data polarity to ssp config

The current ssp configuration was not configuring the frame sync polarity
and data polarity. Some codecs do need these different so add them in ssp
configuration now
Signed-off-by: default avatarPraveen Diwakar <praveen.diwakar@intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 673c4f89
...@@ -789,6 +789,8 @@ static const struct sst_ssp_config sst_ssp_configs = { ...@@ -789,6 +789,8 @@ static const struct sst_ssp_config sst_ssp_configs = {
.fs_frequency = SSP_FS_48_KHZ, .fs_frequency = SSP_FS_48_KHZ,
.active_slot_map = 0xF, .active_slot_map = 0xF,
.start_delay = 0, .start_delay = 0,
.frame_sync_polarity = SSP_FS_ACTIVE_HIGH,
.data_polarity = 1,
}; };
int send_ssp_cmd(struct snd_soc_dai *dai, const char *id, bool enable) int send_ssp_cmd(struct snd_soc_dai *dai, const char *id, bool enable)
......
...@@ -562,6 +562,8 @@ struct sst_ssp_config { ...@@ -562,6 +562,8 @@ struct sst_ssp_config {
u8 active_slot_map; u8 active_slot_map;
u8 start_delay; u8 start_delay;
u16 fs_width; u16 fs_width;
u8 frame_sync_polarity;
u8 data_polarity;
}; };
struct sst_ssp_cfg { struct sst_ssp_cfg {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment