ASoC: mediatek: add the .probe() callback in mt2701_afe_pcm_dai_component
authorRyder Lee <ryder.lee@mediatek.com>
Mon, 30 Apr 2018 12:15:31 +0000 (20:15 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 1 May 2018 20:52:32 +0000 (05:52 +0900)
commit10abdc7c149a058c74be803f33c9ffb1080ad07e
tree13810b8535049cce096cd37df5f660e4adf78106
parentbf14adcc4ddd101088237179bee6daa19bac1669
ASoC: mediatek: add the .probe() callback in mt2701_afe_pcm_dai_component

For the sake of uniformity, this patch adds a callback mt2701_afe_pcm_probe()
in mt2701_afe_pcm_dai_component to retrieve the regmap - the canonical way to
obtain the pointer..

Doing so, we could switch to use devm_snd_soc_register_component() to register
the component driver.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c