All of lore.kernel.org
 help / color / mirror / Atom feed
* USB disconnect/connect messages
@ 2003-07-20 23:40 James Courtier-Dutton
  2003-07-21 15:25 ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: James Courtier-Dutton @ 2003-07-20 23:40 UTC (permalink / raw)
  To: alsa-devel

Hi,

Is there any way to tell if a USB sound card has been disconnected or not?

I would like my application to play sound to a usb sound card, and if 
the usb cable is unplugged, the application pauses, and if the usb cable 
is plugged in again, the application continues.

Example: -
Some in car stereo systems have usb ports.
I could plug a PC into the usb port, and play sound from the PC to the 
car speaker system. If the driver switches off the car stereo (e.g. 
Receives a mobile phone call) I want the PC to pause playback, but when 
the car stereo switches on again, I want the PC to continue playback.
The car stereo switching off looks to the PC as though the usb cable has 
been unplugged.

Cheers
James



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-07-21 18:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-20 23:40 USB disconnect/connect messages James Courtier-Dutton
2003-07-21 15:25 ` Takashi Iwai
2003-07-21 18:03   ` James Courtier-Dutton
2003-07-21 18:23     ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.