enable audio on LEB-panda

Registered by vishal on 2011-09-13

LEB-panda uses stubbed audio at userspace.Kernel has alsa support. LEB-panda needs to be build with audio support so that audio works and enable routing audio to HDMI.

Blueprint information

Status:
Complete
Approver:
Zach Pfeffer
Priority:
High
Drafter:
vishal
Direction:
Approved
Assignee:
vishal
Definition:
Approved
Series goal:
Accepted for 2011q2
Implementation:
Implemented
Milestone target:
milestone icon 11.10
Started by
Zach Pfeffer on 2011-09-20
Completed by
vishal on 2011-10-17

Related branches

Sprints

Whiteboard

Notes:
[vishalbhoj,30 Sept,2011]: The audio output on the line-out and the HDMI are working from commandline. Audio recording is yet to be tested.
[vishalhoj,30 Sept,2011]:alsa_aplay is currently failing.
On 29 September 2011 19:23, Andy Green <email address hidden> wrote:

    On 09/29/2011 07:51 PM, Somebody in the thread at some point said:

        Hi Andy,

        I get a kernel panic IF I run the commands.
        #amixer settings as per your mail
        #alsa_aplay -l

        However I can here some jitter when I run these commands.
        #alsa_amixer settings as per your mail
        #alsa_aplay -D hw:0,8 /data/dump.pcm -f S32_LE -vvv

        I have attached the logs in both case.And I see only S32_LE is being
        supported and the sampling rate is also getting configured wrongly
        during playback.
        Correct me if I am wrong
        Is the device hw:0,8 correspond to headset ?
[vishalbhoj,11 Oct,2011]:
staging-Panda:
Playback works on headphone when you play videos on youtube.(Music app is crashing when you play any file)
Capture results in a kernel panic when tried through speech-Recorder App.

tracking-Panda:
Playback works on headphone when you play videos on youtube.(Music app is crashing when you play any file)
Capture works through speech-Recorder App at 8Khz (at 11Khz,the app crashes).

Procedure to Test audio capture:
Pandaboard has a line-in point and audio capture from headphone mic won't work. One has to either use a powered/amplified mic OR connect line-in on panda to line out of workstation using a 3.5 jack to 3.5 jack cable.

Play some music on workstation "Make sure volume is <=50% else the captured output will have distortion due to clipping" and Run the speech-recorder app and select 8khz for capture. The capture wav file will be available at /data/data/com.android.speechrecorder/app_recordings/ which cann be copied to host machine and played back.

[vishalbhoj,17 Oct,2011]:
Audio on HDMI works on https://android-build.linaro.org/builds/~linaro-android/tracking-panda-11.10-release/#build=4 .

--------------------------
Headline:
Audio playback and recording works on LEB-panda

Acceptance:
Audio playback and recording works on LEB-panda

(?)

Work Items

Work items:
Enable ALSA on LEB-panda build: DONE
Verify Audio using alsa-utils: DONE
Port alsa.omap4.so library from pandroid(handles the hw confgurations): DONE
Build libaudio for pandaboard: DONE
Test Audio Playback and Recording: DONE
Enable Audio routing to HDMI: DONE
Test Audio on HDMI: DONE

This blueprint contains Public information 
Everyone can see this information.