From: Mark Brown Date: Fri, 25 Apr 2025 17:40:40 +0000 (+0100) Subject: ASoC: codecs: wcd938x: fix mux error handling X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b0090115001a3602d0d18828960e8eb1ae129b41;p=users%2Fjedix%2Flinux-maple.git ASoC: codecs: wcd938x: fix mux error handling Merge series from Johan Hovold : 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. --- b0090115001a3602d0d18828960e8eb1ae129b41