Go to advanced search

by czyskows
Wed Sep 27, 2017 10:44 pm
Forum: Device Tree
Topic: I2S clocks, GPCLK0
Replies: 62
Views: 16356

Re: I2S clocks, GPCLK0

Here is what I get with a 1/2 speed clock (24.576MHz):

Image

So it looks like mclk is working, but for some reason the I2S clocks aren't syncing to it for some reason.
by czyskows
Wed Sep 27, 2017 5:09 pm
Forum: Device Tree
Topic: I2S clocks, GPCLK0
Replies: 62
Views: 16356

Re: I2S clocks, GPCLK0

It seems like I'm getting some sort of clock when I do a speaker-test or aplay..., but it looks more like jitter than an actual signal: https://imgur.com/a/RbHcf I'm calling clk_set_rate in the codec driver: cs42xx8->clk = devm_clk_get(dev, "mclk"); if (IS_ERR(cs42xx8->clk)) { dev_err(dev, "failed t...
by czyskows
Tue Sep 26, 2017 11:24 pm
Forum: Device Tree
Topic: I2S clocks, GPCLK0
Replies: 62
Views: 16356

Re: I2S clocks, GPCLK0

When I try to use <&clocks, 38> (with a comma), it won't compile. The other examples I've seen all use <&clocks 38> (no comma). Also, In looking at the cs42xx8.c file, it seems that the driver requests the clock frequency: cs42xx8->clk = devm_clk_get(dev, "mclk"); if (IS_ERR(cs42xx8->clk)) { dev_err...
by czyskows
Mon Sep 25, 2017 7:25 am
Forum: Device Tree
Topic: I2S clocks, GPCLK0
Replies: 62
Views: 16356

Re: I2S clocks, GPCLK0

I think I have the overlay correct, but I'm not sure what I'm doing wrong in the driver. Is this the proper way to address the clock in the probe function? static int raspberry_beret_probe(struct platform_device *pdev) { struct snd_soc_card *card = &snd_soc_raspberry_beret; int ret; struct clk *mclk...
by czyskows
Sun Sep 24, 2017 7:23 am
Forum: Device Tree
Topic: I2S clocks, GPCLK0
Replies: 62
Views: 16356

Re: I2S clocks, GPCLK0

I'm sorry, but I'm still confused. I think I now have the clocks set properly in the overlay. Can you let me know if this is correct? I'm still not getting clock signals when I do speaker-test, so obviously the codec doesn't know to look at pin 7 as the MCLK. Thank you yet again. // Definitions for ...
by czyskows
Wed Sep 20, 2017 7:22 pm
Forum: Device Tree
Topic: I2S clocks, GPCLK0
Replies: 62
Views: 16356

Re: I2S clocks, GPCLK0

Thanks for the input on this. I've gotten clocks to work, but I need them to be sent to GPIO4, which I think my originally posted overlay was doing (or trying to do). I spent a ton of time looking at the drivers, including the simple-card. I'm using the CS42448 codec, so I've taken the audioinjector...
by czyskows
Tue Sep 19, 2017 7:51 pm
Forum: Device Tree
Topic: I2S clocks, GPCLK0
Replies: 62
Views: 16356

Re: I2S clocks, GPCLK0

Hi Phil, Thanks for getting back to me. I guess the DT isn't the right solution. I have tried for weeks to provide the clocks by setting the DIVI / DIVF registers and sending the PLLD clock to GPIO4 with patches to the bcm2835-i2s.c file, but to no avail - there seems to incredibly little documentat...
by czyskows
Tue Sep 19, 2017 7:21 am
Forum: Device Tree
Topic: I2S clocks, GPCLK0
Replies: 62
Views: 16356

I2S clocks, GPCLK0

Hi, I'm trying to get my external audio codec to use PLLD, GPCLK0 on pin 7 as its MCLK. It seems like the best way to do this is in the dtoverlay for the soundcard. From this post https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=136988 I've tried to enable the clocks in the same manner, but ...
by czyskows
Fri Sep 15, 2017 11:16 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: clk_id in set_sysclk()
Replies: 0
Views: 359

clk_id in set_sysclk()

Hi,

I can't seem to find good documentation for the snd_soc_set_sysclk function for I2S audio. Does anybody know where I can find documentation or better yet, can anyone tell me what the various clock id's refer to?

Thanks
by czyskows
Sun Sep 03, 2017 3:24 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: More I2S woes
Replies: 0
Views: 379

More I2S woes

Hi, No one seems to be checking on the existing I2S audio threads, so I'm going to go ahead and start a new one. I'm having issues using the current kernel (4.9) with an audio board that I'm developing. The board uses a CS42448 codec in TDM mode for multichannel in/out. I know that Flatmax has made ...
by czyskows
Sat Sep 02, 2017 4:10 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S Success (at last) !
Replies: 111
Views: 49293

Re: I2S Success (at last) !

Hi, I'm trying to write a driver for an audio board with a CS42448 codec that uses the PLLD clock on the RPi. I've been through all the posts I can find on this issue, and none seem to point to ways to accomplish this. Most of the posts I've found point to deprecated kernels that don't use the bcm28...
by czyskows
Mon Aug 28, 2017 1:59 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 914
Views: 443576

Re: STICKY: The I2S sound thread.

Hi, (@stefan_o and YCN-) Stefan, thanks for posting your drivers for the 4202! they've made a lot of things much clearer. I'm still confused though how you're using the gpio's - in particular, what you're doing with the FMT pins. Also, I'm not too clear on how you're setting your clocks - I see that...
by czyskows
Thu Nov 12, 2015 7:11 am
Forum: Networking and servers
Topic: UDP connection issues
Replies: 2
Views: 1048

Re: UDP connection issues

Here, by the way, is the code I'm using... Server: import pyaudio, sys, socket port = 5000 chunk = 512 FORMAT = pyaudio.paInt16 CHANNELS = 1 RATE = 44100 p = pyaudio.PyAudio() stream = p.open(format = FORMAT, channels = CHANNELS, rate = RATE, input = True, output = True, frames_per_buffer = chunk) s...
by czyskows
Thu Nov 12, 2015 5:39 am
Forum: Networking and servers
Topic: UDP connection issues
Replies: 2
Views: 1048

UDP connection issues

Hi, I'm trying to set up a basic audio streaming client/server system with two raspberry pi's using python - pyaudio/socket/jack. I know that I have my port and ip correct in both the client and server scripts, but I keep getting the "connection refused" error message. I have set up my server pi for...
by czyskows
Sun Jan 27, 2013 3:33 am
Forum: Beginners
Topic: Edimax wifi setup
Replies: 7
Views: 3704

Re: Edimax wifi setup

Hi,

I did the WiFi setup for the Edimax in WiFi config, but every time I reboot, I have to redo the setup. Is there a way to have the WiFi recognized upon start up?

Go to advanced search