Hi
My findings re-sound on an Acer Switch SW5-012/Android-x86_64-7.1-r4 - kernel 4.9.194-android-x86_64
Get the script file bytcrrt5640.sh kindly provided by youli... in this thread (Thanks)
Put the script on your Switch - use a smb share of another pc or a usb or any other way that you're comfortable with
lI used cx file explorer to access a smb share on my linux box
Lets put bytcrrt5640.sh in /storage/emulated/0/
run terminal
then type the following
$ su -
This changes user to root, the '-' means to load or run any root environment - in old unix we used to call this 'become root'
Respond to the system asking permission to become root user or admin permissions (cant remember the prompt)
Now proceed to execute the following lines one at a time
# /system/bin/sh /storage/emulated/0/bytcrrt5640.shmy sound worked at this point now the rest is to make it persist
# cd /system/etc/alsa
# ls -al
I get the following :
drwxr-xr-x 2 root root 4096 2020-12-01 20:36 .
drwxr-xr-x 11 root root 4096 2020-11-29 17:56 ..
-rw-r-xr-x 1 root root 50449 2020-11-29 20:29 bytcrrt5640.state
-rw-r-xr-x 1 root root 48847 2020-11-29 20:21 chtrt5645.state
now do ..
# mv bytcrrt5640.state bytcrrt5640_default.state
# alsa_ctl store -f /system/etc/alsa/bytcrrt5640.state
reboot and sound worked for me (you can actually type reboot at the # prompt if you like)
There's a curiousity here - under ?nix alsa_mixer stores and loads its state at boot time from /var/lib/alsa/asound.state
Android does not seem to do so. Instead it seems to load it from /system/etc/alsa which is fine.
What concerns me is that ALL the state files at that location seem to be getting loaded at boot. but in what order??
There are many differences in the two state files running diff on the two of them showed numerous control stanzas being different.
I urg anyone experimenting to run alsa_ctl store -f /storage/emulated/0/state_after_I_changed_something.state
and change the file name each time, this way it you get it going then break it you can troll through the files to see whats different.
Now I'm on to getting other stuff sorted (there is no try)
Screen: properly switch off including the backlight.
Audio - Microphone not working
Batter charge indicator
I forget the other annoyances - but its almost useful now - sound will be awesome for voice calls on FB
Backlight and battery stuff just to properly monitor and control battery and get the most out of this thing
PS I had many issues with android misbehaving and the gui crashing the taskbar crashing, many things freezing UNTIL I put 64 bit Android on this box. Yup 32bit UEFI loaded a 64bit OS just fine.
I'l get a few more things sorted out before I upgrade and try to apply my changes to a newer version.
Goodluck, hope this helps someone!
Ez