ASoC: amd: pte offset related dma driver changes
authorMukunda, Vijendar <Vijendar.Mukunda@amd.com>
Tue, 8 May 2018 04:47:47 +0000 (10:17 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 21 May 2018 15:18:29 +0000 (16:18 +0100)
commite188c525b9e193bc5aec97c824bc0cd1a9cb6aeb
treea6cd40a8188c1ed4ce5d71fca04297c16a019dcc
parenta4ae3af59bd58514b5417d7d802a37e82bfcfd8f
ASoC: amd: pte offset related dma driver changes

Added pte offset variable in audio_substream_data structure.
Added Stoney related PTE offset macros in acp header file.
Modified hw_params callback to assign the pte offset value
based on asic_type.
PTE Offset macros used to calculate no of PTE entries
need to be programmed when memory allocated for audio buffer.
Depending upon allocated audio buffer size, PTE offset values
will change.
Compared to CZ, Stoney has SRAM memory limitation i.e 48k
It is required to define separate PTE Offset macros for
Stoney.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-pcm-dma.c
sound/soc/amd/acp.h