Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

[HOW TO]enable USB Audio

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [HOW TO]enable USB Audio

    Hi,

    I managed to enable usb audio support on my Pipo M8HD. (KitKat firmware)

    First make a backup of your ROM !!!!!

    I have found the necessary modules : snd-hwdep.ko, snd-rawmidi.ko, snd-USBMIDI-lib.ko and snd-usb-audio.ko

    These files are in the system.zip that you will find in the link at the end of the post.


    These modules musb be copied to /system/lib/modules and given rw-r--r-- permissions.

    These modules must be installed in the following order :

    Code:
    insmod /system/lib/modules/snd-hwdep.ko
    insmod /system/lib/modules/snd-rawmidi.ko
    insmod /system/lib/modules/snd-usbmidi-lib.ko
    insmod /system/lib/modules/snd-usb-audio.ko
    I used a init.d script to do this automaticaly at each reboot.

    This script that I named 99sound must be copied to /system/etc/init.d and given rwxr-x-r-x permission.

    You need also modify the audio_policy.conf in /system/etc by the one I provided in the archive


    Then you need to patch some system file (services.jar) to detect your usb audio device, this is done by a program files you will use through Windows : you will find find all the explanations here : forum XDA

    Plug the usb cable to your PC, verify that USB debugger is on

    Then unpack the archive usb-audio-Patcher.zip and run the usb-audio-Patcher.exe file on your PC to do the job automatically

    Reboot.

    You can verify that the modules are loaded by typing the command lsmod in a terminal.

    By cons there is no option on the M8HD ROM in Android settings to change the sound output (USB, Bluetooth or normal).
    The archive n7-volume-control-patch.zip that I provided doesn't seem to working.

    I have tested the SoundAbout application, and it works well, you can switch to choose between different devices: for usb choose: Dock (Analog) Audio in Media.

    I put all here: https://mega.co.nz/#F!EcdwCCCB!GGAxYdHjXO5Ks8cAtz8Dhw

    I think it can work in others models too, maybe only with kitkat.

    I'm using a cheap USB module with a CM119 Chipset from C-Media

    In France, I found and buy this one : http://www.amazon.fr/gp/product/B00G...?ie=UTF8&psc=1

    bye
    Last edited by stevejc; 25 August 2014, 14:53.

    #2
    youhouuuu

    Originally posted by stevejc View Post
    Hi,

    I managed to enable usb audio support on my Pipo M8HD. (KitKat firmware)

    bye
    that's avery good news !!
    I must try to do the same on my m7pro under RR kitkat 2.7

    Comment


      #3
      To help you I have made a zip file to install via recovery :

      This will install all modules and init.d script

      Then you will have to run the usb-audio-Patcher.exe file on your PC to finish.
      Attached Files

      Comment


        #4
        there is a soucy;
        nothing gets copied to /
        I suspect your...
        run_program("/sbin/busybox", "mount", "/system");
        in updater-script

        does not mount /system rw ...

        I tried to fix that but not done yet.

        Comment


          #5
          Originally posted by raxy View Post
          there is a soucy;
          nothing gets copied to /
          I suspect you did not mount /system rw ...

          cf your...


          run_program("/sbin/busybox", "mount", "/system");

          in updater-script

          I tried to fix that but not done yet.
          It's working on mine because I have set previously system rw with ES explorer !

          I don't think it's the problem because with read only settings it's working too

          I remember that one of my script for m7pro was not working too , busybox is correctly installed ?

          You will need to copy the files manually , sorry !
          Last edited by stevejc; 25 August 2014, 21:44.

          Comment


            #6
            ok, all cp and chmod done manually,
            now need to reboot and. see if insmod are ok at boot time
            then i'll do the patch from the pc..

            edit:
            insmod ok at boot time,
            patch performed (with usb debugging on): ok
            reboot, android "upgrade" !? wtf ? anyway... seems ok
            upon usb plugin of my hifimediy dongle :
            dmesg show it is seen (but as generic usb HID) : not cool...
            and of course sound does not output on it;

            plug another dongle (logitech); plug headphone to it,
            dmesg : ok seen correctly,
            run tunein radio,

            BINGO !!! sound output in the headphones !
            thanks a lot, it works;
            as expected , no volume control (only on or off), but i'm ok with that;

            hey Randy, time to include this very cool feature to your "legacy pipo" custom ROMs !!!
            Last edited by raxy; 25 August 2014, 22:43. Reason: s

            Comment


              #7
              Terratec Aureon dual USB dac OK
              Audiotrak Maya 7.1 USB DAC KO
              Roland ua-30 OK
              Last edited by raxy; 26 August 2014, 20:49. Reason: add UA 30

              Comment


                #8
                I'm happy it's working for you

                To be included in each Rom, services.jar must be patched, it can be difficult to do automatically.

                A working CWM zip can be made by including the patched services.jar files afterwards.

                The new file is writen on the PC in the directory /tmp/out after executing the patch program.

                I will add this zip for M8HD users in the 1.9 thread.


                I have changed the first CWM zip that only install modules files, if someone can tell me if it's working on M7pro or others models : KitKat_USB_AUDIO.zip

                Comment


                  #9
                  I'm
                  I hate UAPP (usb audio player pro) and all their business model; and also because it sucks as a player, not able to open mp3, aac !
                  They make money on top of a 'singularity', hope android L now wipe their as*s to the blood with native support for free and for everybody.

                  Technically, their solution seems to support some DACs which do not work with our solution (it's the case with my http://hifimediy.com/DACs/U2-DAC).
                  We must understand why these DACs are seen as hid (kbd/mouse) devices and not proper audio ones.

                  I think their id must be set in some obscure config or source files in android or the kernel ...

                  can you help to understand (and fix) the issue ?
                  tks

                  Comment


                    #10
                    stevejc,
                    I have a GT90H tablet and I would like to enable USB audio

                    The complete zip file give me an error on recovery mode.

                    How I can put manually the modules in /system/lib

                    The filemanager cannot copy files in this directory also if my GT90H is rooted

                    Comment


                      #11
                      sorry I dunot know what a GT90H tablet is.
                      Kernel string matching with compiled module in the zip is Mandatory, this works on our Pipo, not sure about your tablet...

                      Comment


                        #12
                        I have a GT90H tablet

                        I use these command to add modules:

                        cd /sdcard/Download

                        mount -o rw,remount -t yaffs2 /system

                        cp snd-hwdep.ko /system/vendor/modules/snd-hwdep.ko

                        chmod 0644 /system/vendor/modules/snd-hwdep.ko

                        insmod /system/vendor/modules/snd-hwdep.ko

                        but the insmod does not run and I received the error "exec format error"

                        Comment


                          #13
                          Originally posted by ciuffoly View Post
                          I have a GT90H tablet

                          I use these command to add modules:

                          cd /sdcard/Download

                          mount -o rw,remount -t yaffs2 /system

                          cp snd-hwdep.ko /system/vendor/modules/snd-hwdep.ko

                          chmod 0644 /system/vendor/modules/snd-hwdep.ko

                          insmod /system/vendor/modules/snd-hwdep.ko

                          but the insmod does not run and I received the error "exec format error"
                          sorry, but your tablet is a allwinner dual core CPU, you need modules compiled for it.

                          Comment


                            #14
                            Maybe the thread label has misled you ciuffoly ,
                            stevejc should have added "...for pipo 3188 tablet"!

                            Comment

                            Working...
                            X