I use this app to change the volume https://play.google.com/store/apps/details?id=com.revsodev.volumecontrol
We're still working on recording, Skype and getting it to work without kicking mediaserver.
Volume works fine, you just have to use a USB keyboard or an USB audio adapter with HID volume buttons.
Don't you get a popup graphic of a speaker with dots under it?
cd /system/lib/hw
mv alsa.zoom2.so alsa.zoom2.bak
# arecord --disable-resample --disable-channels -c 1 -r 8000 -f S16_LE -d 10 /sdcard/test.wav
Recording WAVE '/sdcard/test.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
Warning: rate is not accurate (requested = 8000Hz, got = 44100Hz)
Will try today in school.No black dot on 03:00 HID? That seems strange.
If you have a USB multimedia keyboard, try that.
Can you get it to show that the drivers are loaded?
Yes, with XorZones buttons - it's there and working.Can you get the big speaker icon to pop up?
Personally, with only 4 buttons I'd be reluctant to give up 2 for volume.
Fast Record
I can see both of them. But I've never tried what's the real recordings value. Will do that today.What sample rates do you see in AudioCtl? Only 8K mono, 16K mono?
pcm.AndroidCapture
{
type hooks
slave.pcm
{
type hw
card 1
device 0
}
hooks.0
{
type ctl_elems
hook_args
[
{ name 'Mic Capture Switch' value on }
{ name 'Mic Capture Volume' value 12 }
{ name 'Mic Playback Switch' value on }
{ name 'Mic Playback Volume' value 20 }
]
}
}
That's what I was thinking of, but there are some tiny challenges :putting circuits of ebay-bought USB hub + USB sound card directly into NST casing.
alsa_amixer contents
defaults.ctl.card 1
defaults.pcm.card 1
defaults.timer.card 1
ctl.AndroidOut
{
type hw
card 1
}
ctl.AndroidIn
{
type hw
card 1
}
pcm.AndroidPlayback
{
type hooks
slave.pcm
{
type hw
card 1
device 0
}
hooks.0
{
type ctl_elems
hook_args
[
{ name 'Speaker Playback Switch' value on }
{ name 'Speaker Playback Volume' value [150 150] }
]
}
}
pcm.AndroidPlayback_Speaker
{
type hooks
slave.pcm
{
type hw
card 1
device 0
}
hooks.0
{
type ctl_elems
hook_args
[
{ name 'Speaker Playback Switch' value on }
{ name 'Speaker Playback Volume' value [150 150] }
]
}
}
pcm.AndroidPlayback_Speaker_normal
{
type hooks
slave.pcm
{
type hw
card 1
device 0
}
hooks.0
{
type ctl_elems
hook_args
[
{ name 'Speaker Playback Switch' value on }
{ name 'Speaker Playback Volume' value [150 150] }
]
}
}
pcm.AndroidCapture
{
type hooks
slave.pcm
{
type hw
card 1
device 0
}
hooks.0
{
type ctl_elems
hook_args
[
{ name 'Mic Capture Switch' value on }
{ name 'Mic Capture Volume' value 12 }
{ name 'Mic Playback Switch' value on }
{ name 'Mic Playback Volume' value 20 }
]
}
}
adb pull /system/framework/framework.jar
apktool d framework.jar Framework
apktool b Framework framework.jar
adb push framework.jar /system/framework/
adb pull /system/framework/services.jar
apktool d services.jar Services
apktool b Services services.jar
adb push services.jar /system/services/
[00009188] B1 F5 FA 54 => 70 BD 00 BF
[000091EC] 6C 33 => 00 05
Cloud you please make automated pack or tutorial how to incorporate all the mods you've developed?
echo host > /sys/devices/platform/musb_hdrc/mode
echo peripheral > /sys/devices/platform/musb_hdrc/mode
[00002268] 02 00 00 00 // format
[0000226c] 01 00 00 00 // channels
[00002270] 40 1F 00 00 => 44 AC 00 00 // rate
[00009188] B1 F5 FA 54 => 70 BD 00 BF
[000091EC] 6C 33 => 00 05
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_rw" />
[b]<group gid="audio" />[/b]
</permission>
key 21 Y
key 21 Z
000100 1F 00 00 00 43 00 32 00 63 00 43 00 E7 00 C7 00
mount -o rw,remount /dev/block/mmcblk0p5 /system