Jump to content

Recommended Posts

Posted
Armbianmonitor:

I have an Orange Pi Zero 512 H2 with the "original" audio breakout-shield AKA Orange Pi Zero Interface boatd 1.1 like this one http://codelectron.com/intro-to-orange-pi-zero-interface-board/

 

I loaded the latest Armbian Buster, did 

apt-get update

apt-get upgrade

 

So I have Armbian buster with Linux 5.4.43-sunxi

 

and then tried to send an audio signal to the sound output via 

speaker-test -twav -c2

 

 

root@orangepizero:~# speaker-test -twav -c2

speaker-test 1.1.8

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
Playback open error: -2,No such file or directory

root@orangepizero:~# armbianmonitor -u
System diagnosis information will now be uploaded to http://ix.io/2orc
 

Of course I did search here for similar issues and the best fit I found was

 but did not really understand WHAT to add WHERE and if this is the correct solution for my case. 

 

In many threads and guides I did read "alsamixer" but it is not installed and not installable. Armbian told me to unstall csound-util which I did, but this did not change the sound issue. 

 

Any recommendations what I could do? Or is there a better, completely different aproach? All I want for now is an Airplay receiver

Posted

Further information:

alsa-utils is already the newest version (1.1.8-2).
amixer: Mixer attach default error: No such file or directory
root@orangepizero:~# alsamixer
cannot open mixer: No such file or directory

 

etc/modules is now

g_serial
sun4i_codec
sun8i_codec_analog
 

reboot, no change

 

There is no /etc/asound.conf  file. 

Posted

First you have to enable analog audio...

 

sudo armbian-config

->System ->Hardware ->

mark analog-codec

...

sudo reboot

If you need /etc/asound.conf , you have to create by you own...

Posted
20 hours ago, BusDriver said:

etc/modules is now

g_serial
sun4i_codec
sun8i_codec_analog
 

There is no /etc/asound.conf  file. 

if you did enable analog-audio in armbian-config ==> system ==> hardware you should see - after a reboot - the following snd-modules:

root@opi-zero(192.168.6.99):~# lsmod|grep snd
snd_soc_simple_card    20480  0
snd_soc_simple_card_utils    20480  1 snd_soc_simple_card
snd_soc_core          126976  5 sun4i_codec,sun4i_i2s,sun8i_codec_analog,snd_soc_simple_card_utils,snd_soc_simple_card
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_pcm                73728  4 sun4i_codec,sun4i_i2s,snd_pcm_dmaengine,snd_soc_core
snd_timer              28672  1 snd_pcm
snd                    49152  5 snd_timer,snd_soc_core,snd_pcm
soundcore              16384  1 snd

root@opi-zero(192.168.6.99):~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 [CDC PCM Codec-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

in your /etc/asound.conf you could the insert the following lines:
 

pcm.!default {
    type hw
    card 0
    device 0
}

ctl.!default {
    type hw
    card 0
}

 

Posted

Many many thanks!

 

So I did activate the analog sound in armbian-config and reboot and voila:

 

root@orangepizero:~# lsmod|grep snd
snd_soc_simple_card    20480  0
snd_soc_simple_card_utils    20480  1 snd_soc_simple_card
snd_soc_core          131072  5 sun4i_codec,sun4i_i2s,sun8i_codec_analog,snd_soc_simple_card_utils,snd_soc_simple_card
ac97_bus               16384  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_pcm                69632  4 sun4i_codec,sun4i_i2s,snd_pcm_dmaengine,snd_soc_core
snd_timer              28672  1 snd_pcm
snd                    49152  5 snd_timer,snd_soc_core,snd_pcm
soundcore              16384  1 snd
 

root@orangepizero:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 [CDC PCM Codec-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
 

and by 

speaker-test -twav -c2 I finally hear sound! Great! The volume is very low - normally I would try to increase the volume in alsamixer but it seems not available and also not loadable -  what is the correct replacement, how can I increase the volume? 

Posted

Oh sh*t - seems like I destroyed it by fixing it: 

 

I went through this guide https://medium.com/@urakozz/airplay-receiver-with-orange-pi-51d6bdcbc46f to install shairport and it seems like by doing this config

 

./configure --with-alsa --with-avahi --with-ssl=openssl --with-systemd --with-metadata 

 

I Installed Alsa - so now I have Alsamixer but no sound any more: 

 

root@orangepizero:/# speaker-test -twav -c2

speaker-test 1.1.8

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
ALSA lib pcm_hw.c:1898:(_snd_pcm_hw_open) Unknown field devive
Playback open error: -22,Invalid argument

 

So to be honest I don't really care if it Pulse Audio or Alsa, no idea what is better, so how do I set it to the correct sound interface?
 

 

Posted

Strange - to me ALSA looks good but something else is broken:

 

root@orangepizero:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 [CDC PCM Codec-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

 

root@orangepizero:~# systemctl status alsa-state.service
● alsa-state.service - Manage Sound Card State (restore and store)
   Loaded: loaded (/lib/systemd/system/alsa-state.service; static; vendor preset
   Active: active (running) since Sun 2020-06-07 17:53:12 UTC; 17min ago
     Docs: man:alsactl(1)
 Main PID: 615 (alsactl)
    Tasks: 1 (limit: 849)
   Memory: 412.0K
   CGroup: /system.slice/alsa-state.service
           └─615 /usr/sbin/alsactl -E HOME=/run/alsa -s -n 19 -c rdaemon

Jun 07 17:53:12 orangepizero systemd[1]: Started Manage Sound Card State (restor
Jun 07 17:53:13 orangepizero alsactl[615]: alsactl 1.1.8 daemon started
 

There is no need for HDMI or multichannel audio, just stereo to the 3.5mm jack. 

Posted

So it seems like through the installation of Shairport I switched to Alsa which triggered the usage of the asound.conf file which contained a typo! Fixing the type and speaker-test -twav -c2 and there it goes! So now all I have to do is make shareport discovered but my sound issues are solved now! Many thanks!

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

Important Information

Terms of Use - Privacy Policy - Guidelines