Skip to content
Unverified Commit 559aebe4 authored by Ondrej Jirman's avatar Ondrej Jirman Committed by Mark Brown
Browse files

ASoC: sun8i-codec: Fix build with CONFIG_SND_JACK_INPUT_DEV disabled



When CONFIG_SND_JACK_INPUT_DEV is disabled, struct snd_jack doesn't
have 'type' field. We can't rely on this field being always present,
so store the jack_type in the codec driver itself.

Signed-off-by: default avatarOndrej Jirman <megi@xff.cz>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202403261243.kcXCPAYs-lkp@intel.com/
Link: https://msgid.link/r/20240327080542.3649840-1-megi@xff.cz


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent cc983803
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment