-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReSpeaker 4mic for Raspbian Jessie: unable to record (arecord: main:722: audio open error: Invalid argument) #40
Comments
$ arecord -Dac108 -f S32_LE -r 16000 -c 4 hello.wav $ arecord -l aplay -l |
Hi, |
*file does not exist $ sudo ls /usr/lib/arm-linux-gnueabihf/alsa-lib/libasound_module_pcm_ac108.* $uname -a $cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)" $ sudo ls /usr/lib/arm-linux-gnueabihf/alsa-lib/libasound_module_pcm_* |
I have just successfully installed this on a pi3 running stretch. |
What should $HOME/.asoundrc look like in "Raspbian GNU/Linux 8 (jessie)" in an operational Respeaker 4mic environment? (I feel this is where the issue is) |
It should not exist in a new Raspbian system. |
Hi channelz, |
Thank you. I will try tomorrow. What are the drawbacks of using /seeed-voicecard/tree/b9d9cde471358855ff66b3d18eb3d0f2c8a73987 ? |
It need a alsa plugin not in the kernel, no function drawbacks. |
@turmary I tried to install this version. my kernel is also 4.9.35.
and I tried to restart:
why?????????? |
@stoneWeb |
There was no error in the install process. and the lsmod command include snd_soc_ac108. so what's the problem? |
this is install logs:
|
try to use command |
|
OK, @stoneWeb . |
@turmary I've tried the new raspbian Image, and the drive is normal, but run the voice-engine example get the error:
And put headphones on the raspberry, using this command, without any sound.
|
Hi, |
@turmary when i install a old version as you mention, then no card device detect, if i dont want to install a new raspbian Image, since i have a bunch of installed software on my current image, do i have any othe way? my current kernel is 4.9.35, thanks! |
Following the content of the old version install.sh, check configuration files /etc/modules, /boot/config.txt, /boot/overlays/seeed-4mic-voicecard.dtbo in order. |
@turmary the command cat /etc/modules get the reault : #hdmi_safe=1 The lsmod command the the result about the sound card: snd_soc_ac108 30951 0 There exist a file /boot/overlays/seeed-4mic-voicecard.dtbo [ 3.723089] i2c_id number :0 Is the "ac108_write error->[REG-0x00,val-0x12]" that matters? The arecord -L command the the result: The aplay -L get the result: Thanks! |
OK,the lastest driver changed kernel module snd-soc-simple-card.ko.
to recover it, then reboot. |
@turmary it works! thank you very much! |
Careful with this command, it made my version unbootable and i had to start from scratch |
Hello. Please help. Have installed/uninstalled many times. (all failed) Please advise....
$arecord -Dac108 -f S32_LE -r 16000 -c 4 hello.wav
ALSA lib pcm_direct.c:999:(snd1_pcm_direct_initialize_slave) unable to install hw params
ALSA lib pcm_dsnoop.c:629:(snd_pcm_dsnoop_open) unable to initialize slave
arecord: main:722: audio open error: Invalid argument
$dmesg:
[ 33.349595] i2c_id number : 0
[ 33.349610] ac10x data protocol: 0
[ 33.370589] ac10x codec count : 1
[ 33.371536] ac108_set_sysclk :24000000
[ 33.380092] asoc-simple-card soc:sound: ac10x-codec0 <-> 3f203000.i2s mapping ok
[ 91.940526] bcm2835-i2s 3f203000.i2s: bcm2835_i2s_hw_params:bad format
[ 91.940612] bcm2835-i2s 3f203000.i2s: ASoC: can't set 3f203000.i2s hw params: -22
$i2cdetect -y -r 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
$ arecord -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
playback
dmixed
ac108
multiapps
default
sysdefault:CARD=seeed4micvoicec
seeed-4mic-voicecard,
Default Audio Device
dmix:CARD=seeed4micvoicec,DEV=0
seeed-4mic-voicecard,
Direct sample mixing device
dsnoop:CARD=seeed4micvoicec,DEV=0
seeed-4mic-voicecard,
Direct sample snooping device
hw:CARD=seeed4micvoicec,DEV=0
seeed-4mic-voicecard,
Direct hardware device without any conversions
plughw:CARD=seeed4micvoicec,DEV=0
seeed-4mic-voicecard,
Hardware device with all software conversions
The text was updated successfully, but these errors were encountered: