ASoC: ti: davinci-mcasp: Simplify the configuration parameter handling
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 6 Nov 2020 07:25:50 +0000 (09:25 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 6 Nov 2020 17:46:03 +0000 (17:46 +0000)
commit1125d925990b8d8166c45396c9281e2a705c97f8
treedffbff6865de5eb30db2e628a51746637818656a
parentdb8793a39b293d5a8983e1713a70a76cb039c2fe
ASoC: ti: davinci-mcasp: Simplify the configuration parameter handling

Replace the davinci_mcasp_set_pdata_from_of() function which returned a
pdata pointer with davinci_mcasp_get_config() to return an actual error
code and handle all pdata validation and private mcasp struct setup in
there.

Drop the unused ram-size-playback and sram-size-capture query from DT at
the same time.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20201106072551.689-4-peter.ujfalusi@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/davinci-mcasp.c