(04-29-2016, 12:49 PM)longsleep Wrote: It works just fine when the mixer settings are configured correctly. Though this is not simple due to the gazillion playback settings with useless defaults this driver provides. You can control them all using "alsamixer".
Important alsamixer settings:
- Unmute "Headphone"
- Set ADCL Mux to "DMIC"
- Set ADCR Mux to "DMIC"
- Set AIF1 DAC timeslot 0 volume to "65"
- Set AIF1IN0L Mux to "AIF1_DA0L"
- Set AIFIN0R Mux to "AIF1_DA0R"
- Set digital volume to "0"
- Set headphone volume to "75"
And it works pretty good.
I see that this might be difficult, so i just added a sane alsa state file to https://github.com/longsleep/build-pine6...ound.state - put that file at /var/lib/alsa/asound.state and reboot - voila.
Does not work for me. Added asound.state and verified alsamixer manually.
Also did the module load:
cat <<EOF >/etc/modules-load.d/pine64-audiojack.conf
sunxi_codec
sunxi_i2s
sunxi_sndcodec
EOF
The only change I see after module load change is that every once in a while the system halts (or at least all network connectivity dies).
aplay -l:
**** List of PLAYBACK Hardware Devices ****
card 0: audiocodec [audiocodec], device 0: SUNXI-CODEC codec-aif1-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: audiocodec [audiocodec], device 1: bb Voice codec-aif2-1 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: audiocodec [audiocodec], device 2: bb-bt-clk codec-aif2-2 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: audiocodec [audiocodec], device 3: bt Voice codec-aif3-3 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: sndhdmi [sndhdmi], device 0: SUNXI-HDMIAUDIO sndhdmi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
Any other advice please?