https://github.com/akiyukiokayasu/raspberrypi_i2s_slave
General I2S slave I/O device tree overlay for Raspberry Pi.
https://github.com/akiyukiokayasu/raspberrypi_i2s_slave
audio device-tree-overlay i2s raspberry-pi
Last synced: 9 months ago
JSON representation
General I2S slave I/O device tree overlay for Raspberry Pi.
- Host: GitHub
- URL: https://github.com/akiyukiokayasu/raspberrypi_i2s_slave
- Owner: AkiyukiOkayasu
- License: gpl-3.0
- Created: 2019-01-30T02:52:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-16T02:28:06.000Z (over 6 years ago)
- Last Synced: 2025-04-12T03:51:45.666Z (about 1 year ago)
- Topics: audio, device-tree-overlay, i2s, raspberry-pi
- Homepage:
- Size: 17.6 KB
- Stars: 30
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RaspberryPi_I2S_Slave
General I2S slave I/O device tree overlay for Raspberry pi.
Tested with Raspberry pi Compute Module 3+ and Asahi Kasei AK4556.
- I2S slave: Raspberry pi
- I2S master: Audio codec(ex. AK4556)
[I2S Master version](https://github.com/AkiyukiOkayasu/RaspberryPi_I2S_Master)
## How to use
Compile on Raspberry Pi
```bash
dtc -@ -H epapr -O dtb -o genericstereoaudiocodec.dtbo -Wno-unit_address_vs_reg genericstereoaudiocodec.dts
```
Copy i2smaster.dtbo to /boot/overlays
```bash
sudo cp genericstereoaudiocodec.dtbo /boot/overlays
```
Edit /boot/config.txt
Enable I2S and add i2smaster device tree overlay
```/boot/config.txt # Uncomment some or all of these to enable the optional hardware interface
#dtparam=i2c_arm=on
dtparam=i2s=on
#dtparam=spi=on
dtoverlay=genericstereoaudiocodec
```
If you don't need HDMI audio output and Raspberry Pi's headphone output, comment out "dtparam=audio=on" by hash.
like this.
```/boot/config.txt
#dtparam=audio=on
```