Giter VIP home page Giter VIP logo

rpi-i2s-spdif's People

Contributors

kiffie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rpi-i2s-spdif's Issues

Trying to make things work on a rpi0

Hi, I like this idea of having SPDIF Output directly over GPIO but since I'm rather a noob I got stuck - Can you please tell me whats wrong? Changed the line in make file to:

#MY_BUILDDIR=/lib/modules/$(shell uname -r)/build
MY_BUILDDIR=/usr/src/linux-headers-6.1.19-v7+/

Also unsure why there are three versions of Kernel Headers:
image

This is what happens running the make file:

root@moodeTest:~/rpi-i2s-spdif# make
make -C /usr/src/linux-headers-6.1.19-v7+/ M=/root/rpi-i2s-spdif EXTRA_CFLAGS+=-I/root/rpi-i2s-spdif/include modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.19-v7+'
  CC [M]  /root/rpi-i2s-spdif/bcm2708-i2s-spdif-driver.o
/root/rpi-i2s-spdif/bcm2708-i2s-spdif-driver.c: In function ‘bcm2708_i2s_setup_gpio’:
/root/rpi-i2s-spdif/bcm2708-i2s-spdif-driver.c:571:17: error: ‘GPIO_BASE’ undeclared (first use in this function)
  571 |  gpio = ioremap(GPIO_BASE, SZ_16K);
      |                 ^~~~~~~~~
/root/rpi-i2s-spdif/bcm2708-i2s-spdif-driver.c:571:17: note: each undeclared identifier is reported only once for each function it appears in
/root/rpi-i2s-spdif/bcm2708-i2s-spdif-driver.c: In function ‘bcm2708_i2s_probe’:
/root/rpi-i2s-spdif/bcm2708-i2s-spdif-driver.c:718:14: error: ‘struct dma_slave_config’ has no member named ‘slave_id’
  718 |  slave_config.slave_id= BCM2708_DMA_DREQ_PCM_TX;
      |              ^
/root/rpi-i2s-spdif/bcm2708-i2s-spdif-driver.c:759:3: error: implicit declaration of function ‘snd_dma_continuous_data’ [-Werror=implicit-function-declaration]
  759 |   snd_dma_continuous_data(GFP_KERNEL),
      |   ^~~~~~~~~~~~~~~~~~~~~~~
/root/rpi-i2s-spdif/bcm2708-i2s-spdif-driver.c:759:3: warning: passing argument 3 of ‘snd_pcm_lib_preallocate_pages_for_all’ makes pointer from integer without a cast [-Wint-conversion]
  759 |   snd_dma_continuous_data(GFP_KERNEL),
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |   |
      |   int
In file included from /root/rpi-i2s-spdif/bcm2708-i2s-spdif-driver.c:49:
./include/sound/pcm.h:1272:24: note: expected ‘void *’ but argument is of type ‘int’
 1272 |        int type, void *data,
      |                  ~~~~~~^~~~
/root/rpi-i2s-spdif/bcm2708-i2s-spdif-driver.c:756:5: error: void value not ignored as it ought to be
  756 |  ret= snd_pcm_lib_preallocate_pages_for_all(
      |     ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:250: /root/rpi-i2s-spdif/bcm2708-i2s-spdif-driver.o] Error 1
make[1]: *** [Makefile:2012: /root/rpi-i2s-spdif] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.19-v7+'
make: *** [Makefile:9: all] Error 2

Any help? :)

Support for 88.2kHz and 176.4kHz

Hi, this project is amazing, good job!
I am curious why don't support these sample rate, the original I2S output is support it.
I tried to add them into the configs code and install it, but seems not work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.