HinTak / seeed-voicecard

This is an enhancement fork with the explicit aim of supporting current shipping Raspbian/Ubuntu kernels without requiring downgrading. Please donate at https://hintak.github.io/ if it works for you. Use vX.Y branch for kernel version vX.Y
GNU General Public License v3.0
180 stars 67 forks source link

2-Mic Hat doesn't work on Raspberry Pi 4 Model B #31

Closed hongfeij closed 1 month ago

hongfeij commented 3 months ago

Hi:

I encountered such issue when running command from official document to test the recording function:

hongfeij@raspberrypi:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 3: seeed2micvoicec [seeed-2mic-voicecard], device 0: fe203000.i2s-wm8960-hifi wm8960-hifi-0 [fe203000.i2s-wm8960-hifi wm8960-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

hongfeij@raspberrypi:~ $ arecord -D "plughw:3,0" -f S16_LE -r 16000 -d 5 -t wav test.wav
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
**arecord: set_params:1416: Unable to install hw params:**
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 16000
PERIOD_TIME: 125000
PERIOD_SIZE: 2000
PERIOD_BYTES: 4000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 8000
BUFFER_BYTES: 16000
TICK_TIME: 0

Any clue about the reason and solution?

willumpie82 commented 2 months ago

I run into exactly the same error, tried different forks (started with the one from the getting started at seeed-studio wiki, but that one is really old)

planned to create a small kiosk on rpi4B with wyoming satallite, waveshare display 4.3" DSI display, respeak 2mic and custom case

EDIT: fixed by

  1. uninstalling+reboot
  2. git checkout v6.6
  3. sudo ./install.sh
beitong95 commented 2 months ago

sudo rpi-update 1440b3e0b52075a9ec244216cddcf56099c28dfa to downgrade your kernel to 6.1.21 works for me. also I use the v6.6 branch. I don't know why

HinTak commented 1 month ago

Yes, use the right branch.