opencardev / snd-i2s_rpi

Linux kernel driver/DKMS for the Adafruit I2S MEMS Microphone
42 stars 27 forks source link

Update for loading the module at boot #8

Open Circu1tI0N3rd opened 1 year ago

Circu1tI0N3rd commented 1 year ago

To quote from the README:

$ sudo modprobe snd-i2s_rpi rpi_platform_generation=0

# rpi_platform_generation=0 for Raspberry Pi 1 B/A/A+, 0
# do not add anything for everything else (2/3).

In order for arecord to detect the mic on bootup for Raspberry Pi 1 (as I had) and Zero, creating /etc/modprobe.d/snd-i2s_rpi.conf with the following line:

options snd-i2s_rpi rpi_platform_generation=0

should allow the module to load with that option by default.

Testing with sudo modprobe snd-i2s_rpi after generating that config should also work.