Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: asa on July 02, 2023, 09:57:21 PM

Title: Stereo audio output
Post by: asa on July 02, 2023, 09:57:21 PM
Hi,

I have an I2S A20-Lime2-e16Gs16M board and a Lime2-Shield. I connected a headset to audio out and the sound is mono. Running amixer command I got the below output - Power Amplifier is Mono.

Simple mixer control 'Power Amplifier',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 63
  Mono: 63 [100%] [0.00dB]
Simple mixer control 'Power Amplifier DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Power Amplifier Mixer',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Power Amplifier Mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Please let me know how I can get stereo sound on line out.

I need a stereo sound output with volume playback control.

Thank you!
Title: Re: Stereo audio output
Post by: LubOlimex on July 03, 2023, 10:50:57 AM
I tested this report but stereo seems to work fine by default. I used the same hardware setup and default base image. I used headphones. Only ran:

apt update
apt dist-upgrade
u-boot-install

Didn't change anything else in alsamixer, nor anywhere else.

I used this wav file:

wget https://ftp.olimex.com/Lub-clients/file_example_WAV_10MG.wav --no-check-certificate

and played it with:

aplay file_example_WAV_10MG.wav

Please try the same and report back. If you need re-write the card with latest Olimage Linux base image.

Can you send me a picture of the audio jack of your headphones? Maybe it is incompatible with our jack?


Title: Re: Stereo audio output
Post by: asa on July 03, 2023, 10:49:27 PM
Hi LubOlimex,

Thank you so much for your help, I performed all commands and the test you recommended and I confirm now the sound is stereo!

Best regards!