audio issue on Android ICS with 3.0.8 kernel on pandaboard

2,306 views
Skip to first unread message

Sreedhar chowdary

unread,
Jan 19, 2012, 5:04:51 AM1/19/12
to pandaboard
HI,

I have ported Android-ICS with 3.0.8 kernel on pandaboard and
intigration
of audio driver on pandaboard. when i was trying to play .wav file
follwing command through command line tinyplay out.wav . It showing
playing sample rate ,48khz and bit format, but i can't hear the sound
through earphone, but earphone jack is detected while kernel boating.
can anyone help me how to resolve this issue.

Regards,
Sreedhar.D

Nigel Hsiung

unread,
Feb 6, 2012, 6:04:48 AM2/6/12
to panda...@googlegroups.com

I'm trying to use tinyplay to play a wav file, so far no luck on my panda board. I followed http://omappedia.org/wiki/L27.IS.2.P2_OMAP4_Icecream_Sandwich_Release_Notes for building ICS (kernel 3.0.8). 

root@android:/ # tinymix 51 1
root@android:/ # tinymix 6 120
root@android:/ # tinymix 36 1
root@android:/ # tinymix 23 120
root@android:/ # tinymix 34 1
root@android:/ # tinymix 71 1
root@android:/ # tinymix 72 1
root@android:/ # tinymix 73 1
root@android:/ # tinymix 67 13
root@android:/ # tinymix
Number of controls: 79
ctl     type    num     name                                     value
0       ENUM    1       DL1 Equalizer                            Flat response
1       ENUM    1       DL2 Left Equalizer                       Flat response
2       ENUM    1       DL2 Right Equalizer                      Flat response
3       ENUM    1       Sidetone Equalizer                       Flat response
4       ENUM    1       AMIC Equalizer                           High-pass 0dB
5       ENUM    1       DMIC Equalizer                           High-pass 0dB
6       INT     1       DL1 Media Playback Volume                120
7       INT     1       DL1 Tones Playback Volume                0
8       INT     1       DL1 Voice Playback Volume                0
9       INT     1       DL1 Capture Playback Volume              0
10      INT     1       DL2 Media Playback Volume                0
11      INT     1       DL2 Tones Playback Volume                0
12      INT     1       DL2 Voice Playback Volume                0
13      INT     1       DL2 Capture Playback Volume              0
14      INT     1       VXREC Media Volume                       0
15      INT     1       VXREC Tones Volume                       0
16      INT     1       VXREC Voice DL Volume                    0
17      INT     1       VXREC Voice UL Volume                    0
18      INT     1       AUDUL Media Volume                       0
19      INT     1       AUDUL Tones Volume                       0
20      INT     1       AUDUL Voice UL Volume                    120
21      INT     1       AUDUL Voice DL Volume                    0
22      INT     1       SDT UL Volume                            0
23      INT     1       SDT DL Volume                            120
24      INT     2       DMIC1 UL Volume                          120 120
25      INT     2       DMIC2 UL Volume                          120 120
26      INT     2       DMIC3 UL Volume                          120 120
27      INT     2       AMIC UL Volume                           120 120
28      INT     2       BT UL Volume                             120 120
29      BOOL    1       DL1 Mono Mixer                           Off
30      BOOL    1       DL2 Mono Mixer                           Off
31      BOOL    1       AUDUL Mono Mixer                         Off
32      BOOL    1       DL1 MM_EXT Switch                        Off
33      BOOL    1       DL1 BT_VX Switch                         Off
34      BOOL    1       DL1 PDM Switch                           On
35      BOOL    1       Sidetone Mixer Capture                   Off
36      BOOL    1       Sidetone Mixer Playback                  On
37      BOOL    1       Capture Mixer Tones                      Off
38      BOOL    1       Capture Mixer Voice Playback             Off
39      BOOL    1       Capture Mixer Voice Capture              Off
40      BOOL    1       Capture Mixer Media Playback             Off
41      BOOL    1       Voice Capture Mixer Tones Playback       Off
42      BOOL    1       Voice Capture Mixer Media Playback       Off
43      BOOL    1       Voice Capture Mixer Capture              Off
44      BOOL    1       DL2 Mixer Tones                          Off
45      BOOL    1       DL2 Mixer Voice                          Off
46      BOOL    1       DL2 Mixer Capture                        Off
47      BOOL    1       DL2 Mixer Multimedia                     Off
48      BOOL    1       DL1 Mixer Tones                          Off
49      BOOL    1       DL1 Mixer Voice                          Off
50      BOOL    1       DL1 Mixer Capture                        Off
51      BOOL    1       DL1 Mixer Multimedia                     On
52      ENUM    1       MUX_VX1                                  None
53      ENUM    1       MUX_VX0                                  None
54      ENUM    1       MUX_UL11                                 None
55      ENUM    1       MUX_UL10                                 None
56      ENUM    1       MUX_UL07                                 None
57      ENUM    1       MUX_UL06                                 None
58      ENUM    1       MUX_UL05                                 None
59      ENUM    1       MUX_UL04                                 None
60      ENUM    1       MUX_UL03                                 None
61      ENUM    1       MUX_UL02                                 None
62      ENUM    1       MUX_UL01                                 None
63      ENUM    1       MUX_UL00                                 None
64      INT     2       Capture Preamplifier Volume              1 1
65      INT     2       Capture Volume                           0 0
66      INT     2       Aux FM Volume                            3 3
67      INT     2       Headset Playback Volume                  13 13
68      INT     2       Handsfree Playback Volume                0 0
69      INT     1       Earphone Playback Volume                 0
70      ENUM    1       Headset Power Mode                       High-Performance
71      BOOL    1       Earphone Enable Switch                   On
72      ENUM    1       HS Right Playback                        HS DAC
73      ENUM    1       HS Left Playback                         HS DAC
74      ENUM    1       HF Right Playback                        Off
75      ENUM    1       HF Left Playback                         Off
76      ENUM    1       Analog Right Capture Route               Off
77      ENUM    1       Analog Left Capture Route                Off
78      ENUM    1       TWL6040 Power Mode                       Low-Power
root@android:/ # tinyplay /sdcard/Music/longwav_08k.wav                        
Unable to open PCM device 0 (cannot set hw params: Invalid argument)

# Voice?
root@android:/ # tinyplay /sdcard/Music/longwav_08k.wav -d 2                   
[  154.357421]  SDP4430 Voice: asoc: SDP4430 Voice no valid playback route from source to sink
Playing sample: 1 ch, 8000 hz, 1[  154.369812]  SDP4430 Voice: dsp: no backend DAIs enabled for e
6 bit
Error playing sample
root@android:/ # tinyplay /sdcard/Music/longwav_08k.wav -d 6                   
Unable to open PCM device 6 (cannot set hw params: Invalid argument)
root@android:/ # 


Appreciate the help,
Nigel

richi chen

unread,
Feb 6, 2012, 11:19:40 AM2/6/12
to panda...@googlegroups.com
Hi,
You are lucky. I just make it work.
If you are using omappedia omapzoom's audio HAL and kernel 3.0.xx, here are patch files for Pandaboard ICS attatched.

for patch of kernel,
cd <kernel_dir>
git apply panda_omapzoom_kernel_3_0_add_audio_bluetooth_for_ics.patch

for patch of audio HAL,
cd device/ti/common-open
git apply panda_omapzoom_audio_hal_for_ics.patch

Note, if you are using AOSP's audio HAL and kernel, it is no need to apply these patchs. They work fine on AOSP's master branch.

Problem here, bluetooth A2Dp loss functioning. Anyone can make advance patch?

Good Luck,
panda_omapzoom_audio_hal_for_ics.patch
panda_omapzoom_kernel_3_0_add_audio_bluetooth_for_ics.patch

sreedhar...@gmail.com

unread,
Feb 10, 2012, 4:33:21 AM2/10/12
to panda...@googlegroups.com
HI Nigel,

can u try 48khz wav file then ur problem sloved and if u play audio through earphone please set earphone mixers before playing audio,then ur two problems resolved.

regards,
sreedhar

Nigel Hsiung

unread,
Feb 13, 2012, 9:57:20 PM2/13/12
to panda...@googlegroups.com
Hi Shreedar,

Thanks, 48khz was the solution. Now it plays but i still have no audio on my earphone. What are the earphone mixers u you've used?

thanks,
Nigel

pradeep shetty

unread,
Feb 24, 2012, 3:05:18 AM2/24/12
to panda...@googlegroups.com
Hi Sreedar,

This is regarding porting Android ICS on panda board.I have successfully ported Android on Pandaboard with Kernel 3.0.8.
>>After booting the panda board it is entering into user mode rather supervisor mode as shown below.
   shell@android:/ $ instead root@android:/ #.

   Kindly let me know how to enter into supervisor mode?

>> How to play audio files from the command prompt on Pandaboard?

Appreciate your help.

Regards
Pradeep

Nigel Hsiung

unread,
Feb 28, 2012, 9:20:14 PM2/28/12
to panda...@googlegroups.com
>>After booting the panda board it is entering into user mode rather supervisor mode as shown below.
   shell@android:/ $ instead root@android:/ #.

   Kindly let me know how to enter into supervisor mode?
Type su. 

>> How to play audio files from the command prompt on Pandaboard?

root@android:/ # tinymix 51 1
root@android:/ # tinymix 6 120
root@android:/ # tinymix 36 1
root@android:/ # tinymix 23 120
root@android:/ # tinymix 34 1
root@android:/ # tinymix 71 1
root@android:/ # tinymix 72 1
root@android:/ # tinymix 73 1
root@android:/ # tinymix 67 13
root@android:/ # tinyplay file.wav

ps: make sure the wav is a) 44.1 or 44.8khz b) stereo
 

pradeep shetty

unread,
Feb 29, 2012, 12:23:03 AM2/29/12
to panda...@googlegroups.com
Hi,
 
Thnaks for the reply.
tinymix is not available on the target board. Do we need port tinymix to play Audio?
 
Regards,
Pradeep

Nigel Hsiung

unread,
Feb 29, 2012, 12:51:48 AM2/29/12
to panda...@googlegroups.com
The quickest way is to 
$ cd ur_android_root
$ source build/envsetup.sh
$ lunch full_panda-eng
$ cd  ur_android_root/external/tinyalsa
$ mm
$ cd ur_android_root
$ make

It'll create a new image with the necessary tinyalsa lib and utilities, if it does not which happens since nothing has changed since ur last make, u can force it by deleting any file/folder under out/target/product/panda/

best,
Nigel  

VIJAY KULKARNI

unread,
Feb 29, 2012, 1:38:13 AM2/29/12
to panda...@googlegroups.com
am start -n com.android.music/com.android.music.MediaPlaybackActivity -d  {file_uri}   

Find more info here : 

acdc 

Narendra Reddy

unread,
Jul 18, 2012, 6:18:46 AM7/18/12
to panda...@googlegroups.com
Hi,
Push the libtinyalsa,tinyplay,tinycap and tinymix from the bin/symbols to the /system/bin in device and test the alsa related stuff.

Thanks & Regards,
Narendra

On Wed, Jul 18, 2012 at 10:45 AM, <asha....@gmail.com> wrote:
Hi Sridhar,

I have built ICS ASOP from master branch for pandaboard using full_panda-eng build.

On adb shell I need to run tinyAlsa lib commands.

However I do not find these commands in /system/bin or sbin.

Please let me know what I could be missing?

Thanks,
Asha

Michael Trimarchi

unread,
Jul 18, 2012, 3:36:07 PM7/18/12
to panda...@googlegroups.com
Hi


On Wed, Jul 18, 2012 at 12:18 PM, Narendra Reddy <narend...@gmail.com> wrote:
Hi,
Push the libtinyalsa,tinyplay,tinycap and tinymix from the bin/symbols to the /system/bin in device and test the alsa related stuff.

Thanks & Regards,
Narendra



Wav file must be 48Khz 16 bit per channels

I have the sound on android on that kernel I have fixed the audio library part. But I'm working on android pandaboard es

Michael
 
Reply all
Reply to author
Forward
0 new messages