Jump to content

No audio in A20.


alr

Recommended Posts

Hello I´m having problems to manage the audio in my a20 board.

I´m using

ARMBIAN 5.26 stable Debian GNU/Linux 8 (jessie) 3.4.113-sun7i

[audio_para]
audio_used = 1
capture_used = 1
playback_used = 1
audio_lr_change = 0
alr@lime2-emmc:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sunxicodec [sunxi-CODEC], device 0: M1 PCM [sunxi PCM]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
alr@lime2-emmc:~$
alr@lime2-emmc:~$ groups alr
alr : alr dialout sudo audio video plugdev netdev bluetooth
alr@lime2-emmc:~$
alr@lime2-emmc:~$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=sunxicodec
    sunxi-CODEC, sunxi PCM
    Default Audio Device
sysdefault:CARD=sunxicodec
    sunxi-CODEC, sunxi PCM
    Default Audio Device
dmix:CARD=sunxicodec,DEV=0
    sunxi-CODEC, sunxi PCM
    Direct sample mixing device
dsnoop:CARD=sunxicodec,DEV=0
    sunxi-CODEC, sunxi PCM
    Direct sample snooping device
hw:CARD=sunxicodec,DEV=0
    sunxi-CODEC, sunxi PCM
    Direct hardware device without any conversions
plughw:CARD=sunxicodec,DEV=0
    sunxi-CODEC, sunxi PCM
    Hardware device with all software conversions

But when I test the speaker I don´t listen any sound.

 

 

alr@lime2-emmc:~$ speaker-test -D hw:0,0 -twav -c2

speaker-test 1.0.28

Playback device is hw:0,0
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 4096 to 8192
Period size range from 1024 to 2048
Using max buffer size 8192
Periods = 4
was set period_size = 2048
was set buffer_size = 8192
 0 - Front Left
 1 - Front Right
Time per period = 2.862686
 0 - Front Left
 1 - Front Right
Time per period = 3.029435
 0 - Front Left
 1 - Front Right
Time per period = 2.987453
 0 - Front Left
 1 - Front Right

I remove the Mute of the playback on the alsamixer and launched the speaker test again, and when I returned to the alsamixer the playback is muted again.

 

Am I missing something?

 

The audio input is working fine I just record a test.wav and the result of the input is OK.

I did with

arecord -f dat -d 20 -D hw:0,0 test.wav

I have to check the audio in my pc because the output still doesn´t work.

 

Thanks

 

 

 

Untitled.png

Link to comment
Share on other sites

OK the problem was the Shutdown pin in the external amplifier. The values that the sunxi-codec driver sends to the GPIO pin are switched.

I have to patch the sunxi-codec driver to allow the analog output sound work.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines