Update for current kernels (running linux 6.6.31 now): device and mixer_device need to change:
audio_output {
type "alsa"
name "BananaPi BuiltIn"
device "hw:1,0"
mixer_type "hardware"
mixer_device "hw:1"
mixer_control "Power Amplifier"
}
Or to (hopefully) protect from future renumberings:
audio_output {
type "alsa"
name "BananaPi BuiltIn"
device "hw:CARD=sun4icodec,DEV=0"
mixer_type "hardware"
mixer_device "hw:sun4icodec"
mixer_control "Power Amplifier"
}
See here for explanation of the device names to use in mpd with alsa: https://github.com/MusicPlayerDaemon/MPD/issues/374#issuecomment-432663715