Go to advanced search

by Xavier_S
Fri Apr 12, 2019 5:36 pm
Forum: Device Tree
Topic: Set up GPIO clock from device tree
Replies: 13
Views: 4726

Re: Set up GPIO clock from device tree

Thanks PhilE for your answer, which helped me go in the right direction. At last I got it to work. What I was missing was the clk_prepare(), which I forgot to call after devm_clk_get() and clk_set_rate(). From my experiments I made a couple of observations I found interesting to share here, as exten...
by Xavier_S
Mon Mar 18, 2019 3:39 pm
Forum: Device Tree
Topic: Set up GPIO clock from device tree
Replies: 13
Views: 4726

Re: Set up GPIO clock from device tree

Hello, I am resurrecting this old thread because I need to set up a GPIO clock from the device tree, and none of the operations described above have worked for me so far. I am building an I2S codec (which works), controlled and configured via I2C (which also works). My I2S interface already has its ...
by Xavier_S
Thu Nov 22, 2018 11:55 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 887
Views: 428775

Re: STICKY: The I2S sound thread.

Hello Hias – finally I figured out by myself. In my snd_soc_dai_driver I just had to create a .capture along with my .playback – which I had not done until now. Then I just routed .playback to .capture and voilà, it works! It is that simple. wm0010.c was a very good example for that. Have a good day...
by Xavier_S
Wed Nov 21, 2018 10:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 887
Views: 428775

Re: STICKY: The I2S sound thread.

Ok Hias, thank you. Now comes the question of routing. My Clock Master is declared as a soundcard + codec. Therefore the codec part's snd_soc_codec_driver needs a .component_driver with .dapm_widgets and .dapm_routes. However my device, being just a clock source, has no physical contact with the i2s...
by Xavier_S
Tue Nov 20, 2018 1:28 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 887
Views: 428775

Re: STICKY: The I2S sound thread.

Hello Hias, Yet another question, before I put everything on the launchpad. My soundcard driver now sits between the bcm2835 and pcm512x. It has no .controls by itself, however it has to relay all pcm512x kcontrols so that they are all made available to alsamixer. In your rpi-cirrus driver it looks ...
by Xavier_S
Sat Nov 17, 2018 2:36 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 887
Views: 428775

Re: STICKY: The I2S sound thread.

Thank you Hias for your very detailed response ! The codec-codec link is exactly what I was missing, I'm going to follow this path right now.
I'll keep you posted. Thanks again!

Xavier
by Xavier_S
Fri Nov 16, 2018 4:49 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 887
Views: 428775

Re: STICKY: The I2S sound thread.

Hello, I am building an audio setup with an I2S DAC, where I need to be able to finely tune the I2S clock speed. Therefore I built an I2C-controlled clock source to act as an external I2S Clock Master, which I connected to the bit-clk and frame-clk lines. This clock source gives me the required freq...

Go to advanced search