History log of /linux/sound/soc/codecs/nau8360.c (Results 1 – 5 of 5)
Revision Date Author Comments
# 4862e73e 14-Sep-2026 Neo Chang <YLCHANG2@nuvoton.com>

ASoC: codecs: nau8360: Fix AB-BA deadlock in mux update

nau8360_dac_mux_put_enum() acquires nau8360->lock before the DAPM mutex,
causing an AB-BA lock inversion. This deadlocks with concurrent strea

ASoC: codecs: nau8360: Fix AB-BA deadlock in mux update

nau8360_dac_mux_put_enum() acquires nau8360->lock before the DAPM mutex,
causing an AB-BA lock inversion. This deadlocks with concurrent stream
startups or mixer updates, which acquire locks in the reverse order.

Fix this by replacing nau8360->lock with the DAPM mutex to protect
pre-checks, releasing it before calling snd_soc_dapm_put_enum_double().

Reported-by: Sashiko AI <sashiko-bot@kernel.org>
Link: https://sashiko.dev/#/patchset/20260908030342.222655-1-YLCHANG2@nuvoton.com?part=1
Signed-off-by: Neo Chang <YLCHANG2@nuvoton.com>
Link: https://patch.msgid.link/20260914015648.311986-3-YLCHANG2@nuvoton.com
Signed-off-by: Mark Brown <broonie@kernel.org>

show more ...


# eeff736e 14-Sep-2026 Neo Chang <YLCHANG2@nuvoton.com>

ASoC: codecs: nau8360: Block DSP path selection when firmware load fails

Block the DSP path selection if the firmware fails to load to prevent
invalid routing states.

If the firmware is not ready,

ASoC: codecs: nau8360: Block DSP path selection when firmware load fails

Block the DSP path selection if the firmware fails to load to prevent
invalid routing states.

If the firmware is not ready, nau8360_dac_mux_put_enum() will print
a rate-limited warning and return -EBUSY. This rejects the invalid
userspace request and maintains the original hardware state without
causing audio wrong status.

Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/linux-sound/aqK_oOpMAXVhxkHJ@stanley.mountain/
Suggested-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Neo Chang <YLCHANG2@nuvoton.com>
Link: https://patch.msgid.link/20260914015648.311986-2-YLCHANG2@nuvoton.com
Signed-off-by: Mark Brown <broonie@kernel.org>

show more ...


# 366e4d4f 04-Sep-2026 Neo Chang <YLCHANG2@nuvoton.com>

ASoC: codecs: nau8360: Add default PEQ band number for DSP init

Set a default PEQ band number during DSP initialization to prevent
invalid state or uninitialized parameters before user configuration

ASoC: codecs: nau8360: Add default PEQ band number for DSP init

Set a default PEQ band number during DSP initialization to prevent
invalid state or uninitialized parameters before user configuration
is applied.

Signed-off-by: Neo Chang <YLCHANG2@nuvoton.com>
Link: https://patch.msgid.link/20260904060035.196399-3-YLCHANG2@nuvoton.com
Signed-off-by: Mark Brown <broonie@kernel.org>

show more ...


# 3b056668 03-Sep-2026 Neo Chang <YLCHANG2@nuvoton.com>

ASoC: codecs: nau8360: Fix static declarations and endianness

Fix warnings reported by the kernel test robot:
1. Make the 'nau8360_dsp_addr' array static to resolve namespace pollution.
2. Change th

ASoC: codecs: nau8360: Fix static declarations and endianness

Fix warnings reported by the kernel test robot:
1. Make the 'nau8360_dsp_addr' array static to resolve namespace pollution.
2. Change the variable type to '__be16' to fix the incorrect type.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202609021121.a4mHPAyZ-lkp@intel.com/
Signed-off-by: Neo Chang <YLCHANG2@nuvoton.com>
Link: https://patch.msgid.link/20260903033845.76540-1-YLCHANG2@nuvoton.com
Signed-off-by: Mark Brown <broonie@kernel.org>

show more ...


# be88847a 25-Aug-2026 Neo Chang <YLCHANG2@nuvoton.com>

ASoC: codecs: nau8360: Add support for NAU83G60 amplifier

Add support for the Nuvoton NAU83G60 audio codec. The NAU83G60 is a
stereo 30W+30W smart amplifier with an integrated low-latency
Advanced A

ASoC: codecs: nau8360: Add support for NAU83G60 amplifier

Add support for the Nuvoton NAU83G60 audio codec. The NAU83G60 is a
stereo 30W+30W smart amplifier with an integrated low-latency
Advanced Audio DSP.

Signed-off-by: Neo Chang <YLCHANG2@nuvoton.com>
Link: https://patch.msgid.link/20260825021644.1203076-3-YLCHANG2@nuvoton.com
Signed-off-by: Mark Brown <broonie@kernel.org>

show more ...