diff options
| author | Linus Walleij <linusw@kernel.org> | 2026-04-09 23:39:31 +0200 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-04-10 11:27:52 +0100 |
| commit | 0cb7aa965ad02e90ba7d6bf847f3de07e8d0c05e (patch) | |
| tree | b60f4ff4f7efde2a53488fd7104846253e38487a /include | |
| parent | fbb1f8ba4e2d847859d04220c4a775996f072d57 (diff) | |
| download | lwn-0cb7aa965ad02e90ba7d6bf847f3de07e8d0c05e.tar.gz lwn-0cb7aa965ad02e90ba7d6bf847f3de07e8d0c05e.zip | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/uda1380.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/sound/uda1380.h b/include/sound/uda1380.h deleted file mode 100644 index 2e42ea2d0cfd..000000000000 --- a/include/sound/uda1380.h +++ /dev/null @@ -1,19 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -/* - * UDA1380 ALSA SoC Codec driver - * - * Copyright 2009 Philipp Zabel - */ - -#ifndef __UDA1380_H -#define __UDA1380_H - -struct uda1380_platform_data { - int gpio_power; - int gpio_reset; - int dac_clk; -#define UDA1380_DAC_CLK_SYSCLK 0 -#define UDA1380_DAC_CLK_WSPLL 1 -}; - -#endif /* __UDA1380_H */ |
