init.rc audio info.

Android system development related discussion

init.rc audio info.

Postby MadRocker » Fri Feb 04, 2011 3:20 am

Here is the Idroid init.rc audio, pcm and radio parts that we might need soon to get audio working.
This should be a good base to start from.

Code: Select all
    chown system system /sys/kernel/ipv4/tcp_rmem_def
    chown system system /sys/kernel/ipv4/tcp_rmem_max
    chown root radio /proc/cmdline
    #
    chmod 0666 /dev/binder
    chmod 0666 /dev/ashmem
    #
    mkdir /dev/snd
    symlink /dev/pcmC0D0c /dev/snd/pcmC0D0c
    symlink /dev/pcmC0D0p /dev/snd/pcmC0D0p
    symlink /dev/pcmC0D1c /dev/snd/pcmC0D1c
    symlink /dev/pcmC0D1p /dev/snd/pcmC0D1p
    symlink /dev/controlC0 /dev/snd/controlC0
    symlink /dev/timer /dev/snd/timer
    #
    chown system audio /dev/snd/controlC0
    chown system audio /dev/snd/pcmC0D0c
    chown system audio /dev/snd/pcmC0D0p
    chown system audio /dev/snd/pcmC0D1c
    chown system audio /dev/snd/pcmC0D1p
    chown system audio /dev/snd/timer
    chown system audio /dev/snd/controlC0
    chown system audio /dev/pcmC0D0c
    chown system audio /dev/pcmC0D0p
    chown system audio /dev/pcmC0D1c
    chown system audio /dev/pcmC0D1p
    chown system audio /dev/timer
    chown system audio /dev/controlC0
   
    chmod 0660 /dev/pcmC0D0c
    chmod 0660 /dev/pcmC0D0p
    chmod 0660 /dev/pcmC0D1c
    chmod 0660 /dev/pcmC0D1p
    chmod 0660 /dev/timer
    chmod 0660 /dev/controlC0
   
    setprop alsa.mixer.playback.master Master
    setprop alsa.mixer.capture.master Capture
    setprop alsa.mixer.playback.earpiece Master
    setprop alsa.mixer.capture.earpiece Capture
    setprop alsa.mixer.playback.headset Master
    setprop alsa.mixer.playback.speaker Master
   
    setprop wifi.interface "wlan0"
    setprop wlan.driver.status "ok"
    setprop init.svc.wpa_supplicant "running"
   
    chown root radio /dev/ttyS0
    chown root radio /dev/ttyS1
    chown root radio /dev/ttyS2
    chown root radio /dev/ttyS3
    chown root radio /dev/ttyS4
   
    chmod 0666 /dev/ttyS0
    chmod 0666 /dev/ttyS1
    chmod 0666 /dev/ttyS2
    chmod 0666 /dev/ttyS3
    chmod 0666 /dev/ttyS4
   
# Define TCP buffer sizes for various networks
#   ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
    setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
    setprop net.tcp.buffersize.wifi    4095,87380,110208,4096,16384,110208
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am

Advertisement

       

Return to JetPlatform

Who is online

Users browsing this forum: No registered users and 1 guest

  • Advertisement
cron