summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/sst-haswell-ipc.c
diff options
context:
space:
mode:
authorLiam Girdwood2014-10-16 16:29:15 +0200
committerMark Brown2014-10-20 13:20:33 +0200
commitf07e51c51e44a6e4e6d003f3bccbbf8a1b2cda0d (patch)
treef7aa4bd37765b270f7a6bcb3600d23dc1547387d /sound/soc/intel/sst-haswell-ipc.c
parentASoC: intel: turn off COMPILE_TEST for medfield (diff)
downloadkernel-qcow2-linux-f07e51c51e44a6e4e6d003f3bccbbf8a1b2cda0d.tar.gz
kernel-qcow2-linux-f07e51c51e44a6e4e6d003f3bccbbf8a1b2cda0d.tar.xz
kernel-qcow2-linux-f07e51c51e44a6e4e6d003f3bccbbf8a1b2cda0d.zip
ASoC: Intel: Add TDM support to HSW/BDW SSP port
Add TDM support to SSP port via DSP IPC SetDeviceFormat message. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/sst-haswell-ipc.c')
-rw-r--r--sound/soc/intel/sst-haswell-ipc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/intel/sst-haswell-ipc.c b/sound/soc/intel/sst-haswell-ipc.c
index b6291516dbbf..92d625ab6415 100644
--- a/sound/soc/intel/sst-haswell-ipc.c
+++ b/sound/soc/intel/sst-haswell-ipc.c
@@ -1630,6 +1630,10 @@ int sst_hsw_device_set_config(struct sst_hsw *hsw,
config.clock_frequency = mclk;
config.mode = mode;
config.clock_divider = clock_divider;
+ if (mode == SST_HSW_DEVICE_TDM_CLOCK_MASTER)
+ config.channels = 4;
+ else
+ config.channels = 2;
trace_hsw_device_config_req(&config);