summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/skylake/skl-topology.c
diff options
context:
space:
mode:
authorJeeja KP2017-03-24 18:40:25 +0100
committerMark Brown2017-03-29 13:53:06 +0200
commit7f975a385b9313a03c13fb0be0a129c626f9a54e (patch)
tree1697ad56ba42657de76d8fa85906d0e5ce814acb /sound/soc/intel/skylake/skl-topology.c
parentMerge branch 'topic/hda' of git://git.kernel.org/pub/scm/linux/kernel/git/bro... (diff)
downloadkernel-qcow2-linux-7f975a385b9313a03c13fb0be0a129c626f9a54e.tar.gz
kernel-qcow2-linux-7f975a385b9313a03c13fb0be0a129c626f9a54e.tar.xz
kernel-qcow2-linux-7f975a385b9313a03c13fb0be0a129c626f9a54e.zip
ASoC: Intel: Skylake: Use the sig_bits to define dai bps capability
For calculating the HDA DMA format, use the max_bps supported by the DAI caps instead of fixing it to 32/24. For host DMA the Max bps support is 32, but in case of link DMA, this depends on the codec capability. So use the sig_bits to define the bps supported by dai. Signed-off-by: Jeeja KP <jeeja.kp@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-topology.c')
-rw-r--r--sound/soc/intel/skylake/skl-topology.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c
index c6bd4bb49ec0..43f9cb380a76 100644
--- a/sound/soc/intel/skylake/skl-topology.c
+++ b/sound/soc/intel/skylake/skl-topology.c
@@ -1242,10 +1242,12 @@ static void skl_tplg_fill_dma_id(struct skl_module_cfg *mcfg,
case SKL_DEVICE_HDALINK:
pipe->p_params->link_dma_id = params->link_dma_id;
pipe->p_params->link_index = params->link_index;
+ pipe->p_params->link_bps = params->link_bps;
break;
case SKL_DEVICE_HDAHOST:
pipe->p_params->host_dma_id = params->host_dma_id;
+ pipe->p_params->host_bps = params->host_bps;
break;
default: