How can I test audio

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I test audio

1,325 Views
zhengcl
Contributor II

Hi,

We are working on imx6q using android4.4.2.  I want to test audio which is sgtl5000. When I run "aplay" command in the serial terminal coming from the debug port, it shows error "aplay: not found", show as follow:

root@sabresd_6dq:/ # aplay

/system/bin/sh: aplay: not found

127|root@sabresd_6dq:/ #

How can I test the audio in the serial terminal coming from the debug port?

thanks!

Labels (4)
0 Kudos
5 Replies

1,115 Views
zhengcl
Contributor II

使用 tinyplay xxx.wav 可以播放音频。

0 Kudos

1,115 Views
igorpadykov
NXP Employee
NXP Employee

Hi zhengcl

Sabre boards do not have sgtl5000, you can test it for example with

releases from boundary devices, as their boards have sgtl5000:

https://boundarydevices.com/android-kitkat-pre-release-mx6/

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,115 Views
zhengcl
Contributor II

Hi igorpadykov,

I have ported sgtl5000 drivers to android kk4.4.2 with imx6q, and I can find sgtl5000 drivers in the boot logs.

How can I test the audio in the serial terminal coming from the debug port?

Below is the ALSA log from kernel boot log

……

sgtl5000 0-000a: Failed to get supply 'VDDD': -19

print_constraints: 0-000a: 850 <--> 1600 mV at 1200 mV normal

mmc0: new high speed DDR MMC card at address 0001

mmcblk0: mmc0:0001 SEM08G 7.28 GiB

mmcblk0boot0: mmc0:0001 SEM08G partition 1 2.00 MiB

mmcblk0boot1: mmc0:0001 SEM08G partition 2 2.00 MiB

hub 2-1.1:1.0: USB hub found

hub 2-1.1:1.0: 4 ports detected

sgtl5000 0-000a: sgtl5000 revision 17

mmcblk0: p1 p2 p3 < p5 p6 p7 p8 > p4

mmcblk0: p4 size 13090816 extends beyond EOD, truncated

mmcblk0boot1: unknown partition table

mmcblk0boot0: unknown partition table

asoc: sgtl5000 <-> imx-ssi.1 mapping ok

imx_3stack asoc driver

asoc: mxc-hdmi-soc <-> imx-hdmi-soc-dai.0 mapping ok

ALSA device list:

  #0: sgtl5000-audio

  #1: imx-hdmi-soc

……

I attached boot logs.

0 Kudos

1,115 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos

1,115 Views
zhengcl
Contributor II

We provide VDDD externally。

sgtl5000 testing described on https://boundarydevices.com/audio-output-selection-under-linux-on-i-mx6/​ is under inux, however, I want to test sgtl5000 under android. Is there no difference between them?

thanks!

0 Kudos