Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

No audio in A20.

Featured Replies

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

Solved by alr

  • Author

When I put the oscilloscope in the HPOUTR or HPOUTL A20´s pins I get only 2V and without signal during the speaker-test.

 

Any hints?

  • Author
  • Solution

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.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.