[Alsa-user] Get triggered when the device opens

2018-06-04 Thread Frank Thomas via Alsa-user
Hello, I'd like to apologise beforehand if I have not read enough documentation and/or source code to be posting here. Please do not hesitate to tell me to RTFM ☺ My application needs to get triggered when a mechanism any application is opening or closing a certain list of ALSA devices. It seems

Re: [Alsa-user] Get triggered when the device opens

2018-06-04 Thread Frank Thomas via Alsa-user
I would like to further clarify some things. I actually need get triggered when the ALSA device started to run, meaning the device is producing or outputting samples. FYI: The actual sound controller is connected via an I²S interface and synchronizes on its the word select signal. After the synch

Re: [Alsa-user] Get triggered when the device opens

2018-06-04 Thread Frank Thomas via Alsa-user
On Mon, 2018-06-04 at 15:23 +0200, Clemens Ladisch via Alsa-user wrote: > Frank Thomas via Alsa-user wrote: > > The actual sound controller is connected via an I²S interface and > > synchronizes on its the word select signal. After the > > synchronisation, > > addit

Re: [Alsa-user] Get triggered when the device opens

2018-06-20 Thread Frank Thomas via Alsa-user
> And how does that manufacturer tell you to use it? Get the clock started and configure. The loss of the WS signal is not intended and is a failure. A xrun results in configuration loss. > Anyway, it might be possible to write an external filter plugin: > https://www.alsa-project.org/alsa-doc/

Re: [Alsa-user] Get triggered when the device opens

2018-07-13 Thread Frank Thomas via Alsa-user
Hello, just to finish this thread, a colleague of mine put me on the right track: timers. If you look at the alsa-lib timer example http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2timer_8c-example.html , you see the timer interface being used to register on master timer ticks. The read l