msev Posted July 28, 2016 Share Posted July 28, 2016 So can you guys help me debug, why I can't get the microphone to work on my Orange pi pc. Speaker works just fine. Arecord records nothing, silent file . Here is some terminal output: msev@orangepipc:~$ 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 msev@orangepipc:~$ 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 msev@orangepipc:~$ arecord -l **** List of CAPTURE 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 also this: upload=true&script=true&cardinfo= !!################################ !!ALSA Information Script v 0.4.64 !!################################ !!Script ran on: Thu Jul 28 09:36:01 UTC 2016 !!Linux Distribution !!------------------ Debian GNU/Linux 8 \n \l PRETTY_NAME="Debian GNU/Linux 8 (jessie)" NAME="Debian GNU/Linux" ID=debian HOME_URL="http://www.debian.org/" SUPPORT_URL="http://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" !!DMI Information !!--------------- Manufacturer: Product Name: Product Version: Firmware Version: !!Kernel Information !!------------------ Kernel release: 3.4.112-sun8i Operating System: GNU/Linux Architecture: armv7l Processor: unknown SMP Enabled: Yes !!ALSA Version !!------------ Driver version: 1.0.25 Library version: 1.0.28 Utilities version: 1.0.28 !!Loaded ALSA modules !!------------------- !!Sound Servers on this system !!---------------------------- No sound servers found. !!Soundcards recognised by ALSA !!----------------------------- 0 [audiocodec ]: audiocodec - audiocodec audiocodec 1 [sndhdmi ]: sndhdmi - sndhdmi sndhdmi !!PCI Soundcards installed in the system !!-------------------------------------- !!Advanced information - PCI Vendor/Device/Subsystem ID's !!------------------------------------------------------- !!Modprobe options (Sound related) !!-------------------------------- snd_pcsp: index=-2 snd_usb_audio: index=-2 snd_atiixp_modem: index=-2 snd_intel8x0m: index=-2 snd_via82xx_modem: index=-2 !!Loaded sound module options !!--------------------------- !!ALSA Device nodes !!----------------- crw-rw---- 1 root audio 116, 0 Jul 25 01:17 /dev/snd/controlC0 crw-rw---- 1 root audio 116, 32 Jul 25 01:17 /dev/snd/controlC1 crw-rw---- 1 root audio 116, 24 Jul 25 01:17 /dev/snd/pcmC0D0c crw-rw---- 1 root audio 116, 16 Jul 25 01:17 /dev/snd/pcmC0D0p crw-rw---- 1 root audio 116, 56 Jul 25 01:17 /dev/snd/pcmC1D0c crw-rw---- 1 root audio 116, 48 Jul 25 01:17 /dev/snd/pcmC1D0p crw-rw---- 1 root audio 116, 33 Jul 25 01:17 /dev/snd/timer /dev/snd/by-path: total 0 drwxr-xr-x 2 root root 80 Jul 25 01:17 . drwxr-xr-x 3 root root 200 Jul 25 01:17 .. lrwxrwxrwx 1 root root 12 Jul 25 01:17 platform-audiocodec -> ../controlC0 lrwxrwxrwx 1 root root 12 Jul 25 01:17 platform-sndhdmi -> ../controlC1 !!Aplay/Arecord output !!-------------------- APLAY **** 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 ARECORD **** List of CAPTURE 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 !!Amixer output !!------------- !!-------Mixer controls for card 0 [audiocodec] Card hw:0 'audiocodec'/'audiocodec' Mixer name : '' Components : '' Controls : 12 Simple ctrls : 12 Simple mixer control 'Lineout volume control',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 31 Mono: 31 [100%] Simple mixer control 'ADC input gain ctrl',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 7 Mono: 5 [71%] Simple mixer control 'Audio adda drc',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Audio adda loop',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Audio linein in',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Audio lineout',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'LINEIN_G boost stage output mixer control',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 7 Mono: 5 [71%] Simple mixer control 'MIC1 boost AMP gain control',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 7 Mono: 5 [71%] Simple mixer control 'MIC1_G boost stage output mixer control',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 7 Mono: 5 [71%] Simple mixer control 'MIC2 boost AMP gain control',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 7 Mono: 5 [71%] Simple mixer control 'MIC2_G boost stage output mixer control',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 7 Mono: 5 [71%] Simple mixer control 'audio capture mode',0 Capabilities: enum Items: 'main mic' 'mic1_2' 'linein' Item0: 'linein' !!-------Mixer controls for card 1 [sndhdmi] Card hw:1 'sndhdmi'/'sndhdmi' Mixer name : '' Components : '' Controls : 1 Simple ctrls : 1 Simple mixer control 'hdmi audio format Function',0 Capabilities: enum Items: 'null' 'pcm' 'AC3' 'MPEG1' 'MP3' 'MPEG2' 'AAC' 'DTS' 'ATRAC' 'ONE_BIT_AUDIO' 'DOLBY_DIGITAL_PLUS' 'DTS_HD' 'MAT' 'WMAPRO' Item0: 'pcm' !!Alsactl output !!-------------- --startcollapse-- state.audiocodec { control.1 { iface MIXER name 'MIC1_G boost stage output mixer control' value 5 comment { access 'read write' type INTEGER count 1 range '0 - 7' } } control.2 { iface MIXER name 'MIC2_G boost stage output mixer control' value 5 comment { access 'read write' type INTEGER count 1 range '0 - 7' } } control.3 { iface MIXER name 'LINEIN_G boost stage output mixer control' value 5 comment { access 'read write' type INTEGER count 1 range '0 - 7' } } control.4 { iface MIXER name 'MIC1 boost AMP gain control' value 5 comment { access 'read write' type INTEGER count 1 range '0 - 7' } } control.5 { iface MIXER name 'MIC2 boost AMP gain control' value 5 comment { access 'read write' type INTEGER count 1 range '0 - 7' } } control.6 { iface MIXER name 'Lineout volume control' value 31 comment { access 'read write' type INTEGER count 1 range '0 - 31' } } control.7 { iface MIXER name 'ADC input gain ctrl' value 5 comment { access 'read write' type INTEGER count 1 range '0 - 7' } } control.8 { iface MIXER name 'Audio linein in' value true 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 true comment { access 'read write' type BOOLEAN count 1 } } control.11 { iface MIXER name 'Audio adda loop' value true comment { access 'read write' type BOOLEAN count 1 } } control.12 { iface MIXER name 'audio capture mode' value linein 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 } } } --endcollapse-- !!All Loaded Modules !!------------------ Module bnep btusb bluetooth 8189es !!ALSA/HDA dmesg !!-------------- [ 1.602780] cmdline,disp= [ 1.606634] [HDMI] power vcc-hdmi-18 [ 1.637303] ths_fetch_sysconfig_para: type err device_used = 1. -- [ 1.658171] [rfkill]: init no bt used in configuration [ 1.658177] ALSA device list: [ 1.661749] #0: audiocodec Screenshot of alsamixer: http://imageshack.com/i/pnfxLzOrp Thanks! Btw Igor hvala za super distro, skoraj vse mi dela! Link to comment Share on other sites More sharing options...
Igor Posted July 28, 2016 Share Posted July 28, 2016 Try this: arecord -i -f S16 -r 22050 test.wav Working fine for me out of the box, latest Armbian Ubuntu / 3.4.112 @ Orange Pi+ BTW: Hvala Link to comment Share on other sites More sharing options...
msev Posted July 28, 2016 Author Share Posted July 28, 2016 I tried this and it doesn't work unfortunately. I forgot to write that I'm not using HDMI, just audio jack 3,5mm and the pcb mic which doesn't wanna listen to me Should I just install pulseaudio, but I'm a bit worried that it would break Mopidy or Mycroft. (tho' it shouldn't I guess) Since those two already work. Are you maybe also on irc somewhere? I have some questions regarding IR-detection support too, since I see one is present on the pcb hehe, so should I open a separate thread for LIRC/IR-support questions? Link to comment Share on other sites More sharing options...
Igor Posted July 28, 2016 Share Posted July 28, 2016 Strange. I made a diff between hardware configuration but nothing suspicious come out. Will check later on (almost) the same hardware OPi PC+ Mic should work with alsa utils especially if it works for me. IRC won't help LIRC I am not much of an expert in this area. Check and bring up old LIRC threads if they exists. Link to comment Share on other sites More sharing options...
msev Posted July 28, 2016 Author Share Posted July 28, 2016 A bit off-topic but I think IR kernel module is not loaded: msev@orangepipc:~$ lsmod Module Size Used by bnep 9617 2 btusb 11031 0 bluetooth 174065 23 bnep,btusb 8189es 1076034 0 Link to comment Share on other sites More sharing options...
msev Posted July 28, 2016 Author Share Posted July 28, 2016 OK problem SOLVED.. Had to choose sound card as "audiocodec" and had to choose audio capture in alsa as "mic1_2". Something like that. Yeehaa Link to comment Share on other sites More sharing options...
ahmbay Posted March 14, 2017 Share Posted March 14, 2017 Hey, How did you fix your problem. I have some issue. i din't find to how can i choice audiocodec Link to comment Share on other sites More sharing options...
Christian_ Posted May 7, 2017 Share Posted May 7, 2017 Recording device can be selected using -D option. arecord -i -D hw:audiocodec,0 -f S16 -r 22050 test.wav Link to comment Share on other sites More sharing options...
berkovsky Posted June 8, 2017 Share Posted June 8, 2017 How to disable MIC forced? Analog output must work Link to comment Share on other sites More sharing options...
Robert Hanke Posted June 8, 2017 Share Posted June 8, 2017 Hi all @msev I'm trying to get mycroft running but somehow I've some problems. When I start the 'dev-setup.sh' it compiles a while and then there will come errors that gcc was stopped. I think I figured out it has to do with the RAM so I set up a 3,6G swap partition(old usb stick) and tried again but the same error appears. I'm able start mycroft after the 'unsucessful' setup script but I cant get it to speak to me. I use the analog output since I dont want to use a screen with it. If I use the 'cli' I'm able to tell mycroft that it should pair my device and it does so generally something is working Maybe you can give me a hint how to install it. Don't want to use my RPi3 cause its my media center and even there I was unsuccessful but I think the distro(OSMC) is the problem there. [EDIT] now its working. somehow the swap was mounted but not used by the system but after I used the newest armbian everything works fine. Link to comment Share on other sites More sharing options...
Recommended Posts