Giter Site home page Giter Site logo

Fork about tools HOT 8 OPEN

iqaudio avatar iqaudio commented on August 12, 2024
Fork

from tools.

Comments (8)

iqaudio avatar iqaudio commented on August 12, 2024

I'll check this out later - thanks.

On 6 Oct 2015, at 11:26, Darren [email protected] wrote:

Hi,
I forked your code and have added command line input and a bit more functionality. I broke the fork because I don't know how to use git very well and couldn't get rid of some files that I uploaded. If you want to pull it back then feel free or just leave it with me to develop a bit more. It's at alidaf/raspberryPi. I took a bit of a liberty by licensing it as GPL2. If that isn't compatible with any licensing restrictions you have then let me know. I've renamed it as rotencvol as it can be used without the IQaudioDAC.
Regards.


Reply to this email directly or view it on GitHub.

from tools.

iqaudio avatar iqaudio commented on August 12, 2024

Wow Darren, just getting to this now. Looks like you’ve been very busy.

More than happy for you to take “ownership” of this going forward. I’ll likely delete my version and just clone it on my github page.

Thanks,

Gordon

On 6 Oct 2015, at 11:26, Darren [email protected] wrote:

Hi,
I forked your code and have added command line input and a bit more functionality. I broke the fork because I don't know how to use git very well and couldn't get rid of some files that I uploaded. If you want to pull it back then feel free or just leave it with me to develop a bit more. It's at alidaf/raspberryPi. I took a bit of a liberty by licensing it as GPL2. If that isn't compatible with any licensing restrictions you have then let me know. I've renamed it as rotencvol as it can be used without the IQaudioDAC.
Regards.


Reply to this email directly or view it on GitHub #3.

from tools.

alidaf avatar alidaf commented on August 12, 2024

Hi Gordon.

It has become a bit of a project. I’ve switched between ALSA mixer controls and high level controls and I’m now switching back after reading up a lot on ALSA! I may keep the high level controls as a fallback because I’ve started a balance routine but the Pi’s card only has a mono mixer control.

I’ve started looking more in depth at the interrupts and wondering whether I can multithread or write my own interrupts because I think there is a bit of a race condition going. Both pins fire the function plus having it fire on both rising and falling edge causes two function calls each. On top of that there are multiple pulses between indents! My testInt routines are attempts to understand it but I’m new to C and threading so it may take a while. You may have some ideas on this.

Regards

Darren.

On 30 Oct 2015, at 16:26, IQaudIO [email protected] wrote:

Wow Darren, just getting to this now. Looks like you’ve been very busy.

More than happy for you to take “ownership” of this going forward. I’ll likely delete my version and just clone it on my github page.

Thanks,

Gordon

On 6 Oct 2015, at 11:26, Darren [email protected] wrote:

Hi,
I forked your code and have added command line input and a bit more functionality. I broke the fork because I don't know how to use git very well and couldn't get rid of some files that I uploaded. If you want to pull it back then feel free or just leave it with me to develop a bit more. It's at alidaf/raspberryPi. I took a bit of a liberty by licensing it as GPL2. If that isn't compatible with any licensing restrictions you have then let me know. I've renamed it as rotencvol as it can be used without the IQaudioDAC.
Regards.


Reply to this email directly or view it on GitHub #3.


Reply to this email directly or view it on GitHub.

from tools.

iqaudio avatar iqaudio commented on August 12, 2024

Run away :-)

I tried to make it thread safe by having critical sections, if your already in the critical (ISR) section then exit.

Gordon

On 30 Oct 2015, at 16:36, Darren [email protected] wrote:

Hi Gordon.

It has become a bit of a project. I’ve switched between ALSA mixer controls and high level controls and I’m now switching back after reading up a lot on ALSA! I may keep the high level controls as a fallback because I’ve started a balance routine but the Pi’s card only has a mono mixer control.

I’ve started looking more in depth at the interrupts and wondering whether I can multithread or write my own interrupts because I think there is a bit of a race condition going. Both pins fire the function plus having it fire on both rising and falling edge causes two function calls each. On top of that there are multiple pulses between indents! My testInt routines are attempts to understand it but I’m new to C and threading so it may take a while. You may have some ideas on this.

Regards

Darren.

On 30 Oct 2015, at 16:26, IQaudIO [email protected] wrote:

Wow Darren, just getting to this now. Looks like you’ve been very busy.

More than happy for you to take “ownership” of this going forward. I’ll likely delete my version and just clone it on my github page.

Thanks,

Gordon

On 6 Oct 2015, at 11:26, Darren [email protected] wrote:

Hi,
I forked your code and have added command line input and a bit more functionality. I broke the fork because I don't know how to use git very well and couldn't get rid of some files that I uploaded. If you want to pull it back then feel free or just leave it with me to develop a bit more. It's at alidaf/raspberryPi. I took a bit of a liberty by licensing it as GPL2. If that isn't compatible with any licensing restrictions you have then let me know. I've renamed it as rotencvol as it can be used without the IQaudioDAC.
Regards.


Reply to this email directly or view it on GitHub #3.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub #3 (comment).

from tools.

alidaf avatar alidaf commented on August 12, 2024

I probably should run away. I think though that the interrupts happen so fast that the function is called multiple times before the critical section flag is set and each call runs it’s own copy of the function. That’s just a guess though based on printing out some info from within the function itself. Typically there’s anything between 3 and 7 printouts before the direction flag is set. I could be totally wrong though but I’ve asked the wiringPi author for a bit if help in understanding his routines. He doesn’t take kindly to questions that he deems a bit idiotic, which is quite often what my questions are!

Would you like me to put you in as originator or co-author or something?

On 30 Oct 2015, at 16:57, IQaudIO [email protected] wrote:

Run away :-)

I tried to make it thread safe by having critical sections, if your already in the critical (ISR) section then exit.

Gordon

On 30 Oct 2015, at 16:36, Darren [email protected] wrote:

Hi Gordon.

It has become a bit of a project. I’ve switched between ALSA mixer controls and high level controls and I’m now switching back after reading up a lot on ALSA! I may keep the high level controls as a fallback because I’ve started a balance routine but the Pi’s card only has a mono mixer control.

I’ve started looking more in depth at the interrupts and wondering whether I can multithread or write my own interrupts because I think there is a bit of a race condition going. Both pins fire the function plus having it fire on both rising and falling edge causes two function calls each. On top of that there are multiple pulses between indents! My testInt routines are attempts to understand it but I’m new to C and threading so it may take a while. You may have some ideas on this.

Regards

Darren.

On 30 Oct 2015, at 16:26, IQaudIO [email protected] wrote:

Wow Darren, just getting to this now. Looks like you’ve been very busy.

More than happy for you to take “ownership” of this going forward. I’ll likely delete my version and just clone it on my github page.

Thanks,

Gordon

On 6 Oct 2015, at 11:26, Darren [email protected] wrote:

Hi,
I forked your code and have added command line input and a bit more functionality. I broke the fork because I don't know how to use git very well and couldn't get rid of some files that I uploaded. If you want to pull it back then feel free or just leave it with me to develop a bit more. It's at alidaf/raspberryPi. I took a bit of a liberty by licensing it as GPL2. If that isn't compatible with any licensing restrictions you have then let me know. I've renamed it as rotencvol as it can be used without the IQaudioDAC.
Regards.


Reply to this email directly or view it on GitHub #3.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub #3 (comment).


Reply to this email directly or view it on GitHub.

from tools.

iqaudio avatar iqaudio commented on August 12, 2024

co-author or whatever is fine.

Some people’s attitude makes me upset - how did they learn, how do we empower people to progress and deliver benefits to others if you sit on a thrown and don’t share. :-(

keep striving.

Gordon

On 30 Oct 2015, at 17:11, Darren [email protected] wrote:

I probably should run away. I think though that the interrupts happen so fast that the function is called multiple times before the critical section flag is set and each call runs it’s own copy of the function. That’s just a guess though based on printing out some info from within the function itself. Typically there’s anything between 3 and 7 printouts before the direction flag is set. I could be totally wrong though but I’ve asked the wiringPi author for a bit if help in understanding his routines. He doesn’t take kindly to questions that he deems a bit idiotic, which is quite often what my questions are!

Would you like me to put you in as originator or co-author or something?

On 30 Oct 2015, at 16:57, IQaudIO [email protected] wrote:

Run away :-)

I tried to make it thread safe by having critical sections, if your already in the critical (ISR) section then exit.

Gordon

On 30 Oct 2015, at 16:36, Darren [email protected] wrote:

Hi Gordon.

It has become a bit of a project. I’ve switched between ALSA mixer controls and high level controls and I’m now switching back after reading up a lot on ALSA! I may keep the high level controls as a fallback because I’ve started a balance routine but the Pi’s card only has a mono mixer control.

I’ve started looking more in depth at the interrupts and wondering whether I can multithread or write my own interrupts because I think there is a bit of a race condition going. Both pins fire the function plus having it fire on both rising and falling edge causes two function calls each. On top of that there are multiple pulses between indents! My testInt routines are attempts to understand it but I’m new to C and threading so it may take a while. You may have some ideas on this.

Regards

Darren.

On 30 Oct 2015, at 16:26, IQaudIO [email protected] wrote:

Wow Darren, just getting to this now. Looks like you’ve been very busy.

More than happy for you to take “ownership” of this going forward. I’ll likely delete my version and just clone it on my github page.

Thanks,

Gordon

On 6 Oct 2015, at 11:26, Darren [email protected] wrote:

Hi,
I forked your code and have added command line input and a bit more functionality. I broke the fork because I don't know how to use git very well and couldn't get rid of some files that I uploaded. If you want to pull it back then feel free or just leave it with me to develop a bit more. It's at alidaf/raspberryPi. I took a bit of a liberty by licensing it as GPL2. If that isn't compatible with any licensing restrictions you have then let me know. I've renamed it as rotencvol as it can be used without the IQaudioDAC.
Regards.


Reply to this email directly or view it on GitHub #3.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub #3 (comment).


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub #3 (comment).

from tools.

alidaf avatar alidaf commented on August 12, 2024

Agreed. I do apologise for losing your name. I rewrote one of the headers and copied it over all of the others and didn’t do anything to get it back. I’ll add you to all of the code that has the rotary function in it and then sit on the naughty step for an hour!

Take care and chime in if you need or think of anything.

Darren

On 30 Oct 2015, at 17:23, IQaudIO [email protected] wrote:

co-author or whatever is fine.

Some people’s attitude makes me upset - how did they learn, how do we empower people to progress and deliver benefits to others if you sit on a thrown and don’t share. :-(

keep striving.

Gordon

On 30 Oct 2015, at 17:11, Darren [email protected] wrote:

I probably should run away. I think though that the interrupts happen so fast that the function is called multiple times before the critical section flag is set and each call runs it’s own copy of the function. That’s just a guess though based on printing out some info from within the function itself. Typically there’s anything between 3 and 7 printouts before the direction flag is set. I could be totally wrong though but I’ve asked the wiringPi author for a bit if help in understanding his routines. He doesn’t take kindly to questions that he deems a bit idiotic, which is quite often what my questions are!

Would you like me to put you in as originator or co-author or something?

On 30 Oct 2015, at 16:57, IQaudIO [email protected] wrote:

Run away :-)

I tried to make it thread safe by having critical sections, if your already in the critical (ISR) section then exit.

Gordon

On 30 Oct 2015, at 16:36, Darren [email protected] wrote:

Hi Gordon.

It has become a bit of a project. I’ve switched between ALSA mixer controls and high level controls and I’m now switching back after reading up a lot on ALSA! I may keep the high level controls as a fallback because I’ve started a balance routine but the Pi’s card only has a mono mixer control.

I’ve started looking more in depth at the interrupts and wondering whether I can multithread or write my own interrupts because I think there is a bit of a race condition going. Both pins fire the function plus having it fire on both rising and falling edge causes two function calls each. On top of that there are multiple pulses between indents! My testInt routines are attempts to understand it but I’m new to C and threading so it may take a while. You may have some ideas on this.

Regards

Darren.

On 30 Oct 2015, at 16:26, IQaudIO [email protected] wrote:

Wow Darren, just getting to this now. Looks like you’ve been very busy.

More than happy for you to take “ownership” of this going forward. I’ll likely delete my version and just clone it on my github page.

Thanks,

Gordon

On 6 Oct 2015, at 11:26, Darren [email protected] wrote:

Hi,
I forked your code and have added command line input and a bit more functionality. I broke the fork because I don't know how to use git very well and couldn't get rid of some files that I uploaded. If you want to pull it back then feel free or just leave it with me to develop a bit more. It's at alidaf/raspberryPi. I took a bit of a liberty by licensing it as GPL2. If that isn't compatible with any licensing restrictions you have then let me know. I've renamed it as rotencvol as it can be used without the IQaudioDAC.
Regards.


Reply to this email directly or view it on GitHub #3.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub #3 (comment).


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub #3 (comment).


Reply to this email directly or view it on GitHub.

from tools.

iqaudio avatar iqaudio commented on August 12, 2024

not an issue Darren.

Enjoy the weekend.

Gordon

On 30 Oct 2015, at 17:27, Darren [email protected] wrote:

Agreed. I do apologise for losing your name. I rewrote one of the headers and copied it over all of the others and didn’t do anything to get it back. I’ll add you to all of the code that has the rotary function in it and then sit on the naughty step for an hour!

Take care and chime in if you need or think of anything.

Darren

On 30 Oct 2015, at 17:23, IQaudIO [email protected] wrote:

co-author or whatever is fine.

Some people’s attitude makes me upset - how did they learn, how do we empower people to progress and deliver benefits to others if you sit on a thrown and don’t share. :-(

keep striving.

Gordon

On 30 Oct 2015, at 17:11, Darren [email protected] wrote:

I probably should run away. I think though that the interrupts happen so fast that the function is called multiple times before the critical section flag is set and each call runs it’s own copy of the function. That’s just a guess though based on printing out some info from within the function itself. Typically there’s anything between 3 and 7 printouts before the direction flag is set. I could be totally wrong though but I’ve asked the wiringPi author for a bit if help in understanding his routines. He doesn’t take kindly to questions that he deems a bit idiotic, which is quite often what my questions are!

Would you like me to put you in as originator or co-author or something?

On 30 Oct 2015, at 16:57, IQaudIO [email protected] wrote:

Run away :-)

I tried to make it thread safe by having critical sections, if your already in the critical (ISR) section then exit.

Gordon

On 30 Oct 2015, at 16:36, Darren [email protected] wrote:

Hi Gordon.

It has become a bit of a project. I’ve switched between ALSA mixer controls and high level controls and I’m now switching back after reading up a lot on ALSA! I may keep the high level controls as a fallback because I’ve started a balance routine but the Pi’s card only has a mono mixer control.

I’ve started looking more in depth at the interrupts and wondering whether I can multithread or write my own interrupts because I think there is a bit of a race condition going. Both pins fire the function plus having it fire on both rising and falling edge causes two function calls each. On top of that there are multiple pulses between indents! My testInt routines are attempts to understand it but I’m new to C and threading so it may take a while. You may have some ideas on this.

Regards

Darren.

On 30 Oct 2015, at 16:26, IQaudIO [email protected] wrote:

Wow Darren, just getting to this now. Looks like you’ve been very busy.

More than happy for you to take “ownership” of this going forward. I’ll likely delete my version and just clone it on my github page.

Thanks,

Gordon

On 6 Oct 2015, at 11:26, Darren [email protected] wrote:

Hi,
I forked your code and have added command line input and a bit more functionality. I broke the fork because I don't know how to use git very well and couldn't get rid of some files that I uploaded. If you want to pull it back then feel free or just leave it with me to develop a bit more. It's at alidaf/raspberryPi. I took a bit of a liberty by licensing it as GPL2. If that isn't compatible with any licensing restrictions you have then let me know. I've renamed it as rotencvol as it can be used without the IQaudioDAC.
Regards.


Reply to this email directly or view it on GitHub #3.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub #3 (comment).


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub #3 (comment).


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub #3 (comment).

from tools.

Related Issues (10)

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.