Testing for audio playback
antisol at internode.on.net
Mon Aug 4 17:29:12 CEST 2008
Sorry but I can't help, but I just wanted to say good luck with this,
please keep us posted - I also find this annoying and I'd love to see it
Dylan Reilly wrote:
> I do not want to test if the sound is working but if audio is
> currently being processed by the card.
> For example, I find in bothersome that the freerunner will suspend
> while I am listening to music or using it as a phone. My hope is that
> there is/are some test(s) I can issue programatically that will tell
> me if one of those two events are occurring.
> As I mentioned, I can easily determine if a program has bound itself
> to the sound card (e.g., lsof) but not if audio is actually streaming.
> In particular, the phone kit is always bound to the card so lsof is
> not a useful test in that case.
> On Mon, Aug 4, 2008 at 9:50 AM, Yogiz <yogizz at gmail.com> wrote:
>>> Is there a way to test if sound is actually being pumped through the
>>> sound card? I can lsof various devices in /dev/snd or check
>>> /proc/asound/card0/pcmXX/sub0/status but those only tell me if a
>>> client is *connected*. Furthermore, I find it odd that the phone-kit
>>> does not seem to go through the alsa pcm but is only connected to
>>> /dev/snd/controlC0. Is there some way to know if the phone kit
>>> actually active?
>> I'm probably just misunderstanding you, but why not test the sound card
>> with a random audio file. Or run 'speaker-test'.
>> Openmoko community mailing list
>> community at lists.openmoko.org
More information about the community