Mainline 4.9: http://dietpi.com/downloads/testing/4.9_image_tests/DietPi_BananaPiPro-armv7-(Jessie).7z
audio codec made it to kernel 4.4. Surely AC97 isn't required?Sound on 3,5mm jack is working on my BananaPi (not PRO) with self compiled Armbian kernel 4.9. Had to reset alsamixer settings though. Settings: Left Mixer Left DAC : muted / Power Amplifier DAC : unmuted / Power Amplifier Mixer :muted / Power Amplifier Mute : unmuted / Right Mixer Left DAC : muted / Right Mixer Right DAC : muted. HDMI ouput seems to be gone, but I don't care for my setup (remember what I said about reset /default values of soundcards ;-) )
I have a little problem with configuring the ondemand governor: sample rate setting is not accessible due to /sys changes, CPU stays at max-frequency. Will investigate further.
@gpo123
Thanks for info 👍
Sound on 3,5mm jack is working on my BananaPi (not PRO) with self compiled Armbian kernel 4.9. Had to reset alsamixer settings though
Yeah, i did play with the mixer settings, but had no joy on both hdmi and 3.5mm. I'll replicate your amixer settings and re-test.
ok, got the ondemand bug: line 1195 in dietpi-config should read: MIN_VALUE=$(( $(cat /sys/devices/system/cpu/cpufreq/ondemand/min_sampling_rate) / 1000 )). After fiddling with the settings CPU is now scaling up and down nicely. According to http://linux-sunxi.org/Cpufreq you should also set io_is_busy to 1. Had good results on my cubietruck.
Do you intend to support all governors available on 4.9 ?
@gpo123
Are you Jórg by any chance 😃 ?
https://github.com/Fourdee/DietPi/blob/master/dietpi/dietpi-cpuinfo#L153
We'll need to add an array of possible locations for:
/sys/devices/system/cpu/cpufreq/ondemand/min_sampling_rate
/sys/devices/system/cpu/cpu$i/cpufreq/scaling_min_freq
Do you intend to support all governors available on 4.9 ?
All, excluding ones not available on mainline (eg:interactive)
io_is_busy to 1
We'll need to add that in here: https://github.com/Fourdee/DietPi/blob/master/dietpi/dietpi-cpu_set#L99-L123
Yes, I'm Jörg. I will try to make the approbiate changes to dietpi-config to support both kernels on BananaPi (PRO) later on.
@gpo123
Yep, still no joy with BPi Pro. Tried various combinations, no sound:

Hi Dan,
These are my settings with alsamixer -V all:

Should I upload my kernel / Armbian deb / kernel config somewhere ?
Regards Jörg
Am 27.01.2017 um 14:43 schrieb Dan:
>
@gpo123 https://github.com/gpo123
Yep, still no joy with BPi Pro. Tried various combinations, no sound:
image
https://cloud.githubusercontent.com/assets/7077026/22372777/82f71698-e496-11e6-9fca-47de16642c1f.png—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Fourdee/DietPi/issues/732#issuecomment-275667710,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AI-eS2mBakJkgrR_jGvbbE6A_u2kpCTMks5rWfRkgaJpZM4Ltuth.
@gpo123
alsamixer -V
alsamixer -V -c 0
Legend 👍. Now it works on 3.5mm!

Ok so, 3.5mm, we need to set:
amixer sset 'Left Mixer Left DAC' off
amixer sset 'Power Amplifier' 62
amixer sset 'Power Amplifier DAC' on
amixer sset 'Power Amplifier Mixer' off
amixer sset 'Power Amplifier Mute' on
amixer sset 'Right Mixer Left DAC' off
amixer sset 'Right Mixer Right DAC' off
Fine. But how do we deal with HDMI gone? Delete from config or wait for upstream changes ? File a bug report at armbian ?
Actually I have a liitle problem with noise on BananaPi with 3,5mm jack on mainline kernel. This was not the case with legacy kernel. Did you observe the same ? I first thought it was a faulty cable or power supply but others seem to have this problem too as you can read here:
https://forum.armbian.com/index.php/topic/397-mainline-a10a20-audio-driver/
Do you know by chance how to convert *.dtb files into readable format ?
I took the chance and updated cubietruck also to mainline 4.9. Running good so far:

These are the the processes running:

Quite good for this "deprecated" device ! Must prove itself now as stable and I am contended. Although HDMI is also missing.
This was not the case with legacy kernel. Did you observe the same ?
Didn't check if i'am honest, I believe in the assumption of basic onboard audio support, then USB DAC/HAT's for serious audio usage.
Although if it was fine on 3.x, its most likely an issue with the codec driver on 4.9. Seems the solution is per:
https://forum.armbian.com/index.php/topic/397-mainline-a10a20-audio-driver/#entry13933
Do you know by chance how to convert *.dtb files into readable format ?
From compiled back to source? Nope sorry.
Fine. But how do we deal with HDMI gone? Delete from config or wait for upstream changes ? File a bug report at armbian ?
https://forum.armbian.com/index.php/topic/397-mainline-a10a20-audio-driver/#entry24185
Tasks:
I'll get these done.
Image live.
Most helpful comment
I took the chance and updated cubietruck also to mainline 4.9. Running good so far:
These are the the processes running:

Quite good for this "deprecated" device ! Must prove itself now as stable and I am contended. Although HDMI is also missing.