ASoC: mediatek: common: add some helpers to control mtk_memif
authorEason Yen <eason.yen@mediatek.com>
Fri, 15 Nov 2019 10:48:45 +0000 (18:48 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 9 Dec 2019 18:33:25 +0000 (18:33 +0000)
commit9cdf85a19b3a67433fff2c8c798dc80e81d34a94
treecd92f027c39e9d9632a6ef43341c3ae6acd67895
parent573892b6e66114898a1e3838c74603dba6bf0fbc
ASoC: mediatek: common: add some helpers to control mtk_memif

1. Add the following helper in mtk-afe-fe-dai to control
to control mtk_memif
- mtk_memif_set_enable
- mtk_memif_set_disable
- mtk_memif_set_addr
- mtk_memif_set_channel
- mtk_memif_set_rate
- mtk_memif_set_rate_substream
- mtk_memif_set_format
- mtk_memif_set_pbuf_size

2.extend mtk_base_memif_data struct for new platform

Signed-off-by: Eason Yen <eason.yen@mediatek.com>
Link: https://lore.kernel.org/r/1573814926-15805-2-git-send-email-eason.yen@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/common/mtk-afe-fe-dai.c
sound/soc/mediatek/common/mtk-afe-fe-dai.h
sound/soc/mediatek/common/mtk-base-afe.h