]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: uda1380: Modernize the driver
authorLinus Walleij <linusw@kernel.org>
Thu, 9 Apr 2026 21:39:31 +0000 (23:39 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 10 Apr 2026 10:27:52 +0000 (11:27 +0100)
commit0cb7aa965ad02e90ba7d6bf847f3de07e8d0c05e
treeb60f4ff4f7efde2a53488fd7104846253e38487a
parentfbb1f8ba4e2d847859d04220c4a775996f072d57
ASoC: uda1380: Modernize the driver

This codec driver depended on the legacy GPIO API, and nothing
in the kernel is defining the platform data, so get rid of this.

Two in-kernel device trees are defining this codec using
undocumented device tree properties, so support these for now.
The same properties can be defined using software nodes if board
files are desired. The device tree use the "-gpio" rather than
"-gpios" suffix but the GPIO DT parser will deal with that.

Since there may be out of tree users, migrate to GPIO descriptors,
drop the platform data that is unused, and assign the dac_clk the
value that was used in all platforms found in a historical dig,
and support setting the clock to the PLL using the undocumented
device tree property.

Add some menuconfig so the codec can be selected and tested.

Signed-off-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260409-asoc-uda1380-v3-1-b3d5a53f31be@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/uda1380.h [deleted file]
sound/soc/codecs/Kconfig
sound/soc/codecs/uda1380.c