This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Audio problem in Android ICS 4.0.3 on AM335X

Hi,

We ported Linux for our custom Am335x board. We also wanted to port ICS.
However, we have some troubles about audio.
We can successfully configure it in Linux side and it works.
For Android Kernel we made same changes and Android Kernel tells us it recognized the codec but when we run a mp3 or video.
We cant hear anything.

you can see below snapshot of our Android Kernel log.

asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
ALSA device list:
#0: BOSPHORUS II
oprofile: hardware counters not available
oprofile: using timer interrupt.

What do you think ? How can I understand to Audio is working on Android correctly with DDMS, ADB

or another way?

Best Regards,

FERHAT

  • As you are able to play audio using command-line tools, you probably only need to tweak the Audio HAL to get audio working correctly in Android.

    Refer to the HAL source at <android source>/hardwre/ti/omap3/audio

    http://processors.wiki.ti.com/index.php/TI-Android-ICS-PortingGuide#Android_Audio_HAL_Configuration

  • Hi Visveshwar,

    Thanks for your reply.

    We added to following line to hardware/ti/omap3/audio/Android.mk :

    else ifneq (,$(findstring bosphorus_II, $(TARGET_PRODUCT)))
        LOCAL_MODULE := audio.primary.bosphorus_II
        LOCAL_CFLAGS += -DAM335XEVM

    and to device/atlas/bosphorus_II/device.mk

    PRODUCT_PACKAGES += \
            audio.primary.bosphorus_II \
            tinycap \
            tinymix \
            tinyplay

    For working with tinyplay we applied the patch in the below link.

    http://e2e.ti.com/support/embedded/android/f/509/t/220632.aspx

    Bu we did not worked to tinyplay. You can see below error messages.

    root@android:/sdcard/Audio # tinyplay test.wav -d 0                            
    Error: '_=/system/bin/tinyplay' is not a PCM riff/wave file

    1|root@android:/sdcard/Audio # tinyplay test.wav -d 1                          
    Error: '_=/system/bin/tinyplay' is not a PCM riff/wave file

    1|root@android:/sdcard/Audio # tinyplay test.wav -d                            
    [1] + Stopped (signal)     tinyplay test.wav -d 

    root@android:/sdcard/Audio # tinyplay test.wav -d                              
    [2] + Stopped (signal)     tinyplay test.wav -d 
    [1] - Segmentation fault   tinyplay test.wav -d 

    root@android:/sdcard/Audio #

    Best Regards,

    FERHAT