Go to advanced search

by FeroxCannibal
Mon Dec 11, 2017 9:46 pm
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

Re: [SOLVED] Writing a codec driver

But how do You explain the osci pictures where I got the dip in the time domain signal, too? Was this an underrun?
by FeroxCannibal
Mon Dec 11, 2017 9:38 pm
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

Re: Writing a codec driver

Thank you a lot for Your help, Your patience and Your time. This is my first driver development and it looks like it worked :)
by FeroxCannibal
Mon Dec 11, 2017 9:22 pm
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

Re: Writing a codec driver

Then close this one. It seems like there was never a problem at all and I am pretty angry and need to find a crack with the tools. Usually in our signal processing labs the settings were enough. That's why I am angry because if you listen to a sinus you don't hear any junk it's just a sine. And I am...
by FeroxCannibal
Mon Dec 11, 2017 9:13 pm
Forum: Advanced users
Topic: Compiling modules with a custom kernel don't work
Replies: 4
Views: 642

Re: Compiling modules with a custom kernel don't work

To close this thread, I compiled the modules on the build machine and this worked. But I am kind of angry why cant I use the /lib/modules/..../build folder?
by FeroxCannibal
Mon Dec 11, 2017 9:10 pm
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

Re: Writing a codec driver

But I am confused. Even when trying to set the buffer-size to 10x the period size I got odd dips. I will try to look for a larger windows tomorrow. I recorded a slow chirp signal which is in a way like the sweep from the generator. The channels arent exactly the same how could this be possible? Edit...
by FeroxCannibal
Mon Dec 11, 2017 8:54 pm
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

Re: Writing a codec driver

Edit: You were totally correct !! Thanks a lot for this one :)

This is a 16bit capture and in audacity this looks a lot better

Image
by FeroxCannibal
Mon Dec 11, 2017 7:25 pm
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

Re: Writing a codec driver

Yep I see it, too. Dont know how this is possible (?) But it sounds exactly the same. I am also confused how from a bipolar signal it gets unipolar since its not getting less than 0. @PeterO Edit1: These images show what I meant. Here I playback the recorded file where I sweeped the sinuses. And for...
by FeroxCannibal
Mon Dec 11, 2017 5:39 pm
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

Re: Writing a codec driver

Yes I will upload some. Today I captured sinuses with 1kHz from the generator and at some random points I got overruns. (Direct capture into a file) also I captured the sweep into a file. When playing back the sweep you can see how the sinus gets smaller for one moment and gets back to his ordinary ...
by FeroxCannibal
Mon Dec 11, 2017 11:42 am
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

Re: Writing a codec driver

1. The Dips move with the time. They are everytime at an other point even with the same speed. But with different speed I have less or more dips. 2. I will try to listen to the Sweep of all sinuses but in usual music I don't hear any problems at all. It's just in the measurement. 3./4. I will look a...
by FeroxCannibal
Mon Dec 11, 2017 7:47 am
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

Re: Writing a codec driver

Where is this saved? Where can I look at it? Sorry but this isn't explained at the alsa xrun debug wiki page. This was made on purpose because my usual with the higher buffers didn't throw this exception which is unsatisfying. I hoped to have a proof to explain why I get these dips in the magnitude ...
by FeroxCannibal
Sun Dec 10, 2017 6:39 pm
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

Re: Writing a codec driver

Sorry for the late reply.... I tried to get alsa xrun debug to work and finally got it. I get now detailed information but it seems that I dont get underruns when using --buffer-size=3x or even 10x of the period-size.... Here is an example where I made the buffer-size=2205 and period-size=1103 then ...
by FeroxCannibal
Thu Dec 07, 2017 8:43 am
Forum: Advanced users
Topic: Compiling modules with a custom kernel don't work
Replies: 4
Views: 642

Re: Compiling modules with a custom kernel don't work

As I said I compiled a kernel by myself since I nedt the ALSA xrun_debug flags (https://www.alsa-project.org/main/index.php/XRUN_Debug). Therefore I git cloned rasppi kernel headers in version 4.9.66-v7 which my kernel also shows right now. At the pi itself I downloaded the headers at https://www.ni...
by FeroxCannibal
Wed Dec 06, 2017 8:01 am
Forum: Advanced users
Topic: Compiling modules with a custom kernel don't work
Replies: 4
Views: 642

Compiling modules with a custom kernel don't work

Hello friends, I recently compiled a kernel by myself after the instructions from the kernel building guide. I also configured the kernel with some custom flags. I turned on device drivers/sound card support/also/debug options. After that I installed the modules copied the zImage and the device tree...
by FeroxCannibal
Tue Dec 05, 2017 3:16 pm
Forum: Beginners
Topic: "Failed to start load kernel modules" when booting
Replies: 14
Views: 3247

Re: "Failed to start load kernel modules" when booting

I have compiled a kernel by my own (since I nedt some alsa xrun debug flags in the configuration). After that I installed the modules, copied the zImage (as kernel7.img) and the device trees + overlays. After booting the Pi with the new kernel it boots up but during the boot process I also get the f...
by FeroxCannibal
Sat Nov 25, 2017 7:58 am
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

Re: Writing a codec driver

Since right now I cant measure with an audio analyzer I tried a setup with Audacity. I send chrip signal from 20-20000Hz with a duration of 20 seconds. And I think I found the same errors propably the underruns. Then I found this thread ( https://github.com/raspberrypi/linux/issues/1517 )and took a ...
by FeroxCannibal
Thu Nov 23, 2017 12:49 pm
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

Re: Writing a codec driver

Hello again, I tried to set the period and buffer sizes and it didn't solve the problem. At first I tried period-size = 4410, 5000, 10000 and then 2205. buffer-size=8820, 10000, 20000, 4410. At the last sizes ALSA returned underrun occurred . Can I provide you any log files? Right now I would assume...
by FeroxCannibal
Wed Nov 22, 2017 6:05 pm
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

Re: Writing a codec driver

Thanks this helped me a lot. Since I dont have the analyzer here. I will try it tomorrow
by FeroxCannibal
Wed Nov 22, 2017 4:57 pm
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

Re: Writing a codec driver

Thanks a lot this sounds comprehensibly. Will I set the period size in the asoundrc ? And what options do I have with the pipes?

The intention would be right now to have a constant response when doing nothing. But later it would be interesting to start c programms to influence frequencies etc.
by FeroxCannibal
Wed Nov 22, 2017 3:18 pm
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

Re: Writing a codec driver

Hello friends couple months later is everything working but it seems like the os is disturbing me. I traced the regmap write command and got the following processes. Right now I pipe arecord and aplay so I want to passthrough the signal which I record. So the arecord gets the pid 1289 and aplay the ...
by FeroxCannibal
Mon Aug 28, 2017 6:09 pm
Forum: Advanced users
Topic: STICKY: HOWTO: Raspi HAT EEPROM and device-tree
Replies: 10
Views: 20647

Re: STICKY: HOWTO: Raspi HAT EEPROM and device-tree

I have the exact same question how do I connect my eeprom with ground when I am at home? Is there no other way to get rid of the read-only mode?? And just a questions since it seems I didnt got it, I just have to have a working overlay for the flash? Since I am working now with a dynamic overlay whi...
by FeroxCannibal
Sun Jun 25, 2017 10:26 am
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

Re: Writing a codec driver

Yep, thats what I thought. I mean for example for the device tree files you have a clear text .dts file and a compiled .dtbo file. Thats why I looked in the repo for some codec.ko files and couldnt find a path where to put them (later when its working correct). But yeah I will try it like that... Si...
by FeroxCannibal
Sun Jun 25, 2017 8:22 am
Forum: C/C++
Topic: [SOLVED] Writing a codec driver
Replies: 33
Views: 3107

[SOLVED] Writing a codec driver

Hello guys, I need to write my own codec driver like the ones at linux/sound/soc/codecs . Of course I read about the codec development in the documentation (linux/Documentation/sound/soc/codec.rst) and my development progresses. Since I am lets say halfway through, I thought about how to compile and...
by FeroxCannibal
Tue May 30, 2017 6:30 pm
Forum: Device Tree
Topic: [Audio] Building a device tree overlay with simple card
Replies: 22
Views: 3528

Re: [Audio] Building a device tree overlay with simple card

DirkS wrote:
FeroxCannibal wrote:Rpi-update doesnt work ... i get this output
Try again.
See viewtopic.php?f=29&t=167934&start=250#p1169496
Unfair, when I looked for it, it was earlier and the answers didnt exist :) but now I am updating, thanks!
by FeroxCannibal
Tue May 30, 2017 5:45 pm
Forum: Device Tree
Topic: [Audio] Building a device tree overlay with simple card
Replies: 22
Views: 3528

Re: [Audio] Building a device tree overlay with simple card

Rpi-update doesnt work ... i get this output [email protected]:/ $ rpi-update awk: line 2: function strtonum never defined awk: line 2: function strtonum never defined awk: line 2: function strtonum never defined (23) Failed writing body Tried to look it up but didnt found on Google something about thi...
by FeroxCannibal
Tue May 30, 2017 4:43 pm
Forum: Device Tree
Topic: [Audio] Building a device tree overlay with simple card
Replies: 22
Views: 3528

Re: [Audio] Building a device tree overlay with simple card

Okay when executing speaker-test -tsine I get a sine tone. But with speaker-test -f2000 it sounds just like random noise not a single frequency... When trying to play a mp3 file with aplay filename.mp3 there I get this crappy sound. Like a stuttering at first and then complete garbage :) Does the co...

Go to advanced search