mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 10:42:21 +03:00
001188d41c4f3b3fc770e2f2d5001d5e5e6aef3f
Machine DAPM widgets are currently defined in the driver and are used to connect to DAPM input/output widgets of external codecs. This routing map is exposed from DT. Since the machine driver is common to multiple platforms, all widgets defined in the driver are not always required. Instead of statically defining the widgets in the driver, these can be exposed from DT. Any platform DT can then add required number of widgets and can define a corresponding routing map. This patch removes the static array for DAPM widgets and instead helper function, snd_soc_of_parse_audio_simple_widgets(), is used to populate given DAPM widgets for the sound card. Bug 200503387 Change-Id: I8ff9f0d52e3c1cc10b6ab1682d05a7b7ef7e2684 Signed-off-by: Sameer Pujar <spujar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2257383 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Mohan Kumar D <mkumard@nvidia.com> Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Description
No description provided