Kernel patching
At last, in order to make I2S Hat working properly you have to recompile the kernel.
Firstly download kernel source files, suitable to your distribution.
Secondly you can download the patches here. Copy and unpack in top directory kernel source.
What are the patches doing?
Here is the list:
- p1.patch - support for 384k in file ./sound/core/pcm_native.c
- p2.patch - support for 384 in file ./include/sound/pcm.h
- p3.patch - support for 384k in file ./sound/soc/codecs/pcm1794a.c
- p4.patch - gpio config in file ./arch/arm/boot/dts/overlays/rpi-dac-overlay.dts
- p5.patch - main driver file ./sound/soc/bcm/rpi-simple-soundcard.c
- p6.patch - support for 384k in file ./drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
patch -p1 -i p1.patch
Repeat this for all six patches.
Then recompile and install new kernel and modules.
Don't forget to add the line to config.txt
Thats all :)
Comments
Post a Comment