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

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-06-05 Thread Bill Vance
This may, or may not be helpful. I'm not sure if they still do this or not, but S.U.S.E. Linux used to trigger various sounds on various events, like opening, and closing windows, mouse clicks, and so forth. You could mix, and match the sounds/events to the way you liked them. Having a look a

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

2018-06-04 Thread Clemens Ladisch via Alsa-user
Frank Thomas via Alsa-user wrote: > 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-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, > > additional configuration must to occur

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

2018-06-04 Thread Clemens Ladisch via Alsa-user
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, > additional configuration must to occur before you can get valid samples Then why don't you do the configuration in the dr

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

[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