Hello!
I have cyanogenmod 10.1 (Android 4.2.2) with 3.1.10-g5174254 kernel
In chroot (LinuxOnAndroid) I don't have a sound, so I test some configuration, and I got it (in theory)
1) Binding /dev from android to chroot
Go (as root in console) to /data/data/com.zpwebsites.linuxonandroid/files
Open text editor and (i recommend nano) and change bootscript.sh file
Below "Mount all required partitions" write:
Now you can use USB Printers (tested, HP Deskjet 3745 work) and Scanners (etc) in Debian Chroot
2) Run Chroot
3) Play song by mplayer (for example)
4) Unmute some channels
amixer -set -c 0 EPDAC unmute
amixer -set -c 0 HSLDAC unmute
amixer -set -c 0 HSRDAC unmute
amixer -set -c 0 "CPCAP Mixer Stereo DAC" unmute
5) And the problem ...
When Music is ended, then this channels go automatically mute (Need Fix)
My fix - You should add it to init.sh (/root/init.sh)
This channels are only for headphones (and it should not working in phone speaker [probably need to unmute other channel]
You can also set a sound from headphones and phone speakers at the same time
Fervi
I have cyanogenmod 10.1 (Android 4.2.2) with 3.1.10-g5174254 kernel
In chroot (LinuxOnAndroid) I don't have a sound, so I test some configuration, and I got it (in theory)
1) Binding /dev from android to chroot
Go (as root in console) to /data/data/com.zpwebsites.linuxonandroid/files
Open text editor and (i recommend nano) and change bootscript.sh file
Below "Mount all required partitions" write:
Code:
$bbox mount --bind /dev $mnt/dev
if [ $? -ne 0 ]; then error_exit "Unable to mount $mnt/dev!"; fi
2) Run Chroot
3) Play song by mplayer (for example)
4) Unmute some channels
amixer -set -c 0 EPDAC unmute
amixer -set -c 0 HSLDAC unmute
amixer -set -c 0 HSRDAC unmute
amixer -set -c 0 "CPCAP Mixer Stereo DAC" unmute
When Music is ended, then this channels go automatically mute (Need Fix)
Code:
#!/bin/sh
while [ neverendingloop=1 ] ;
do
sleep 2s
if amixer cget numid=27 | grep values=off > /dev/null 2>&1
then
amixer set -c 0 EPDAC unmute > /dev/null 2>&1
amixer set -c 0 HSLDAC unmute > /dev/null 2>&1
amixer set -c 0 HSRDAC unmute > /dev/null 2>&1
amixer set -c 0 "CPCAP Mixer Stereo DAC" unmute > /dev/ull 2>&1
fi
done
This channels are only for headphones (and it should not working in phone speaker [probably need to unmute other channel]
You can also set a sound from headphones and phone speakers at the same time
Fervi
Last edited: