Android 6 audio input/output on the Neo

Discussion in 'UDOO NEO' started by frudman, Oct 17, 2016.

  1. Francesco

    Francesco Active Member

    Joined:
    Jun 23, 2015
    Messages:
    220
    Likes Received:
    110
    USB audio support is partial in Android. I have started working on that, but I have got other things to do.
    /etc/audio_policy.conf misses usb in:
    Code:
    android@aidilabsrv:/archive/francesco/6/device/udoo$ git stash show stash@{0} -p
    diff --git a/udooneo_6sx/audio_policy.conf b/udooneo_6sx/audio_policy.conf
    index 1250c80..15c55f7 100644
    --- a/udooneo_6sx/audio_policy.conf
    +++ b/udooneo_6sx/audio_policy.conf
    @@ -97,5 +97,13 @@ audio_hw_modules {
             devices AUDIO_DEVICE_OUT_USB_DEVICE
           }
         }
    +    inputs {
    +      usb_device {
    +        sampling_rates 44100
    +        channel_masks AUDIO_CHANNEL_IN_MONO
    +        formats AUDIO_FORMAT_PCM_16_BIT
    +        devices AUDIO_DEVICE_IN_USB_DEVICE
    +      }
    +    }
       }
     }
    and hardware/imx/alsa/tinyalsa_hal.c needs to be changed too. Don't know if there is something more to do, I'm just giving an hint if someone wants to work on that.
     
  2. frudman

    frudman Member

    Joined:
    Apr 15, 2014
    Messages:
    64
    Likes Received:
    14
    This looks like the Android source code, right? so would require compiling with added drivers, or something?
    That's way above my head, unfortunately.
     

Share This Page