OSDN Git Service

ASoC: Intel: Skylake: Fix dma buffer size calculation
authorRamesh Babu <ramesh.babu@intel.com>
Mon, 19 Jun 2017 06:29:20 +0000 (11:59 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 19 Jun 2017 15:33:13 +0000 (16:33 +0100)
commitf6e6ab1d16ec9dafa65557b5637f5217b32702ef
treeed97eac74ba6728a82bda5d4109e592017c25d70
parent939df3ada789ccd61a01721df8fc7955aab3aad7
ASoC: Intel: Skylake: Fix dma buffer size calculation

DMA buffer size for gateway copier will be calculated based on:

For host DMA copier:
Input buffer size (ibs) for output direction (playback)
Output buffer size (obs) for input direction (capture)

For link DMA copier:
IBS for input direction (capture)
OBS for output direction (playback)

Update the driver to use the above.

Signed-off-by: Ramesh Babu <ramesh.babu@intel.com>
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-messages.c