ASoC: Intel: add frame and data polarity to ssp config
authorVinod Koul <vinod.koul@intel.com>
Wed, 6 May 2015 16:36:40 +0000 (22:06 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 6 May 2015 18:50:22 +0000 (19:50 +0100)
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: Praveen Diwakar <praveen.diwakar@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst-atom-controls.c
sound/soc/intel/atom/sst-atom-controls.h

index 90aa5c0476f3ec2feb111ff1f6d2a8fa67533d41..59517b3fa04d78d1f8a336e3460e65ec665f0715 100644 (file)
@@ -789,6 +789,8 @@ static const struct sst_ssp_config sst_ssp_configs = {
        .fs_frequency = SSP_FS_48_KHZ,
        .active_slot_map = 0xF,
        .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)
index c55f76a535b3e5e359f4a166253a1aac76bc5bbe..eea715605130ac34c6eca0507e421f4f63b9caef 100644 (file)
@@ -562,6 +562,8 @@ struct sst_ssp_config {
        u8 active_slot_map;
        u8 start_delay;
        u16 fs_width;
+       u8 frame_sync_polarity;
+       u8 data_polarity;
 };
 
 struct sst_ssp_cfg {