]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: codecs: wcd938x: fix mux error handling
authorMark Brown <broonie@kernel.org>
Fri, 25 Apr 2025 17:40:40 +0000 (18:40 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 25 Apr 2025 17:40:40 +0000 (18:40 +0100)
commitb0090115001a3602d0d18828960e8eb1ae129b41
tree9e6f9f330ca497c95e788127dd0357ea5a8d3904
parent0787a08ae785366b9473905fc8bf23f165a08b8d
parente358e012a69a3d553803cbe62d9f6eeea57726fc
ASoC: codecs: wcd938x: fix mux error handling

Merge series from Johan Hovold <johan+linaro@kernel.org>:

A recent change added support for looking up an optional mux control
before falling back to gpio control for us-euro plug selection.

The mux framework does however not yet support optional muxes and an
error message is now incorrectly logged on machines like the Lenovo
ThinkPad X13s which do not have one:

    wcd938x_codec audio-codec: /audio-codec: failed to get mux-control (0)

Suppress the bogus error and add the missing mux error handling by
making sure that the 'mux-controls' DT property is present before
looking up the mux control.

Included is also a related cleanup.