Lelo Posted October 16, 2017 Share Posted October 16, 2017 Hello. I hava a serious problem with an Orange Pi Zero and it´s sound ouput: I just can´t get it working. :-( Hardware: Orange Pi Zero (H2+/512MB) with the Orange Pi Extension Board. Software: Armbian_5.30_Orangepizero_Ubuntu_xenial_default_3.4.113 (Linux orangepizero 3.4.113-sun8i #16 SMP PREEMPT Tue Jun 13 14:15:57 CEST 2017 armv7l armv7l armv7l GNU/Linux) I already tried this link for activating Line-Out in general, but it is still not working: "speaker-test" does still not bring any sound to teh 3.5mm jack. My actual "alsamixer"-config as shown by "nano /var/lib/alsa/asound.state": state.I2SES8316 { control.1 { iface MIXER name 'HP Playback Volume' value.0 0 value.1 0 comment { access 'read write' type INTEGER count 2 range '0 - 0' dbmin -4800 dbmax -4800 dbvalue.0 -4800 dbvalue.1 -4800 } } control.2 { iface MIXER name 'HPMixer Gain' value.0 3 value.1 3 comment { access 'read write' type INTEGER count 2 range '0 - 7' dbmin -1200 dbmax -150 dbvalue.0 -750 dbvalue.1 -750 } } control.3 { iface MIXER name 'DAC Playback Volume' value.0 183 value.1 183 comment { access 'read write' type INTEGER count 2 range '0 - 192' dbmin -9999999 dbmax 0 dbvalue.0 -450 dbvalue.1 -450 } } control.4 { iface MIXER name 'Enable DAC Soft Ramp' value false comment { access 'read write' type BOOLEAN count 1 } } control.5 { iface MIXER name 'DAC Soft Ramp Rate' value 4 comment { access 'read write' type INTEGER count 1 range '0 - 4' } } control.6 { iface MIXER name 'Playback Polarity' value Normal comment { access 'read write' type ENUMERATED count 1 item.0 Normal item.1 'R Invert' item.2 'L Invert' item.3 'L + R Invert' } } control.7 { iface MIXER name 'DAC Notch Filter' value false comment { access 'read write' type BOOLEAN count 1 } } control.8 { iface MIXER name 'DAC Double Fs Mode' value false comment { access 'read write' type BOOLEAN count 1 } } control.9 { iface MIXER name 'DAC Volume Control-LeR' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 1' } } control.10 { iface MIXER name 'DAC Stereo Enhancement' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 7' } } control.11 { iface MIXER name 'MIC Boost' value false comment { access 'read write' type BOOLEAN count 1 } } control.12 { iface MIXER name 'Input PGA' value 10 comment { access 'read write' type INTEGER count 1 range '0 - 8' } } control.13 { iface MIXER name 'ADC Capture Volume' value 192 comment { access 'read write' type INTEGER count 1 range '0 - 192' dbmin -9999999 dbmax 0 dbvalue.0 0 } } control.14 { iface MIXER name 'ADC Soft Ramp' value true comment { access 'read write' type BOOLEAN count 1 } } control.15 { iface MIXER name 'Capture Polarity' value Normal comment { access 'read write' type ENUMERATED count 1 item.0 Normal item.1 Invert } } control.16 { iface MIXER name 'ADC Double FS Mode' value false comment { access 'read write' type BOOLEAN count 1 } } control.17 { iface MIXER name 'ALC Capture Target Volume' value 9 comment { access 'read write' type INTEGER count 1 range '0 - 10' } } control.18 { iface MIXER name 'ALC Capture Max PGA' value 20 comment { access 'read write' type INTEGER count 1 range '0 - 28' } } control.19 { iface MIXER name 'ALC Capture Min PGA' value 8 comment { access 'read write' type INTEGER count 1 range '0 - 28' } } control.20 { iface MIXER name 'ALC Capture Function' value On comment { access 'read write' type ENUMERATED count 1 item.0 Off item.1 On } } control.21 { iface MIXER name 'ALC Capture Hold Time' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 10' } } control.22 { iface MIXER name 'ALC Capture Decay Time' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 10' } } control.23 { iface MIXER name 'ALC Capture Attack Time' value 5 comment { access 'read write' type INTEGER count 1 range '0 - 10' } } control.24 { iface MIXER name 'ALC Capture NG Threshold' value 1 comment { access 'read write' type INTEGER count 1 range '0 - 31' } } control.25 { iface MIXER name 'ALC Capture NG Type' value 'Mute ADC Output' comment { access 'read write' type ENUMERATED count 1 item.0 'Constant PGA Gain' item.1 'Mute ADC Output' } } control.26 { iface MIXER name 'ALC Capture NG Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.27 { iface MIXER name 'Right Hp mixer RLIN Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.28 { iface MIXER name 'Right Hp mixer Right DAC Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.29 { iface MIXER name 'Left Hp mixer LLIN Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.30 { iface MIXER name 'Left Hp mixer Left DAC Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.31 { iface MIXER name 'Right Hp mux' value lin1-rin1 comment { access 'read write' type ENUMERATED count 1 item.0 lin1-rin1 item.1 lin2-rin2 item.2 'lin-rin with Boost' item.3 'lin-rin with Boost and PGA' } } control.32 { iface MIXER name 'Left Hp mux' value lin1-rin1 comment { access 'read write' type ENUMERATED count 1 item.0 lin1-rin1 item.1 lin2-rin2 item.2 'lin-rin with Boost' item.3 'lin-rin with Boost and PGA' } } control.33 { iface MIXER name 'DAC SRC Mux' value 'LDATA TO LDAC, RDATA TO RDAC' comment { access 'read write' type ENUMERATED count 1 item.0 'LDATA TO LDAC, RDATA TO RDAC' item.1 'LDATA TO LDAC, LDATA TO RDAC' item.2 'RDATA TO LDAC, RDATA TO RDAC' item.3 'RDATA TO LDAC, LDATA TO RDAC' } } control.34 { iface MIXER name 'Digital Mic Mux' value 'dmic disable' comment { access 'read write' type ENUMERATED count 1 item.0 'dmic disable' item.1 'dmic data at high level' item.2 'dmic data at low level' } } control.35 { iface MIXER name 'Differential Mux' value 'lin1-rin1 with 20db Boost' comment { access 'read write' type ENUMERATED count 1 item.0 lin1-rin1 item.1 lin2-rin2 item.2 'lin1-rin1 with 20db Boost' item.3 'lin2-rin2 with 20db Boost' } } } state.SPDIFTranscieve { control { } } state.audiocodec { control.1 { iface MIXER name 'MIC1_G boost stage output mixer control' value 3 comment { access 'read write' type INTEGER count 1 range '0 - 7' } } control.2 { iface MIXER name 'MIC2_G boost stage output mixer control' value 3 comment { access 'read write' type INTEGER count 1 range '0 - 7' } } control.3 { iface MIXER name 'LINEIN_G boost stage output mixer control' value 3 comment { access 'read write' type INTEGER count 1 range '0 - 7' } } control.4 { iface MIXER name 'MIC1 boost AMP gain control' value 4 comment { access 'read write' type INTEGER count 1 range '0 - 7' } } control.5 { iface MIXER name 'MIC2 boost AMP gain control' value 4 comment { access 'read write' type INTEGER count 1 range '0 - 7' } } control.6 { iface MIXER name 'Lineout volume control' value 26 comment { access 'read write' type INTEGER count 1 range '0 - 31' } } control.7 { iface MIXER name 'ADC input gain ctrl' value 3 comment { access 'read write' type INTEGER count 1 range '0 - 7' } } control.8 { iface MIXER name 'Audio linein in' value false comment { access 'read write' type BOOLEAN count 1 } } control.9 { iface MIXER name 'Audio lineout' value true comment { access 'read write' type BOOLEAN count 1 } } control.10 { iface MIXER name 'Audio adda drc' value false comment { access 'read write' type BOOLEAN count 1 } } control.11 { iface MIXER name 'Audio adda loop' value false comment { access 'read write' type BOOLEAN count 1 } } control.12 { iface MIXER name 'audio capture mode' value 'main mic' comment { access 'read write' type ENUMERATED count 1 item.0 'main mic' item.1 mic1_2 item.2 linein } } } state.sndhdmi { control.1 { iface MIXER name 'hdmi audio format Function' value pcm comment { access 'read write' type ENUMERATED count 1 item.0 null item.1 pcm item.2 AC3 item.3 MPEG1 item.4 MP3 item.5 MPEG2 item.6 AAC item.7 DTS item.8 ATRAC item.9 ONE_BIT_AUDIO item.10 DOLBY_DIGITAL_PLUS item.11 DTS_HD item.12 MAT item.13 WMAPRO } } } Is the "dmesg"-command showing some boottime trouble? dmesg | egrep -i "alsa|snd" [ 1.638032] asoc: sndcodec <-> sunxi-codec mapping ok [ 1.640820] [I2S]snddaudio cannot find any using configuration for controllers, return directly! [ 1.647937] asoc: sndhdmi <-> sunxi-hdmiaudio.0 mapping ok [ 1.871625] ALSA device list: [ 1.871655] #1: sndhdmi But "aplay -l" delivers me this: aplay -l **** List of PLAYBACK Hardware Devices **** card 0: audiocodec [audiocodec], device 0: SUNXI-CODEC sndcodec-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: sndhdmi [sndhdmi], device 0: SUNXI-HDMIAUDIO sndhdmi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 I´m totally confused and don´t know how to go on. Anyone with a helpful solution for my issue? Cheers, Lelo Link to comment Share on other sites More sharing options...
raschid Posted October 17, 2017 Share Posted October 17, 2017 It should work - maybe there is a hardware issues with the expansion board (or your audio chain). I use a current 4.13.x kernel on an OpiZero - audio works fine. Link to comment Share on other sites More sharing options...
Lelo Posted October 27, 2017 Author Share Posted October 27, 2017 How did you get to a 4.x kernel? "apt-get dist-upgrade" leaves me at a 3.x kernel (that was the way i was told to do). Link to comment Share on other sites More sharing options...
Igor Posted October 27, 2017 Share Posted October 27, 2017 33 minutes ago, Lelo said: How did you get to a 4.x kernel? "apt-get dist-upgrade" leaves me at a 3.x kernel (that was the way i was told to do). apt update & upgrade updates your current (3.x) kernel, not an alternative one. Take a look here to understand little more. You need to use a beta repository or nightly image to use/switch to this kernel in a simple fashion. Link to comment Share on other sites More sharing options...
Lelo Posted October 27, 2017 Author Share Posted October 27, 2017 Thanks for the link. Seems like there is some work to be done for me on the upcomming rainy sunday. Link to comment Share on other sites More sharing options...
Recommended Posts