Is it in anyway possible to detect audio on the Line In or the S/PDIF In on the Wolfson Audio Card? If possible I'd like to run a script if I detect audio. Ability to detect silence would do the job as well.
In a nutshell, this is the logic I'm after: if silence stop script or if audio start script




