All of lore.kernel.org
 help / color / mirror / Atom feed
* Sending headset insertion events to user space on bootup
@ 2011-07-22 18:58 Brad Rubin
  2011-07-23  7:45 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Brad Rubin @ 2011-07-22 18:58 UTC (permalink / raw)
  To: alsa-devel; +Cc: plai

Hi all,

I’m having an issue passing events when a headset is inserted upon 
bootup.  I’m sending a headset insertion event to user space through 
snd_soc_jack_report, but user space is not yet ready to receive events 
and therefore misses the event.  Since the kernel driver doesn’t resend 
this event, then there’s no way for user space to see it.  User space is 
still booting up when the event is sent.

Does anyone know of a solution so user space can receive headset 
insertion events on bootup?

Is is possible to either allow the kernel to postpone sending events 
until user space is ready or to store events in some sort of cache so 
that user space can access them?  Would it be possible to use ALSA to 
store the headset status in a device node?

Thanks,
Brad

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

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

* Re: Sending headset insertion events to user space on bootup
  2011-07-22 18:58 Sending headset insertion events to user space on bootup Brad Rubin
@ 2011-07-23  7:45 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-07-23  7:45 UTC (permalink / raw)
  To: Brad Rubin; +Cc: alsa-devel, plai

On Fri, Jul 22, 2011 at 11:58:42AM -0700, Brad Rubin wrote:

> Does anyone know of a solution so user space can receive headset 
> insertion events on bootup?

Userspace can read the state of the device at any time, when it starts
up it should look at the current state.

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

end of thread, other threads:[~2011-07-23  7:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-22 18:58 Sending headset insertion events to user space on bootup Brad Rubin
2011-07-23  7:45 ` Mark Brown

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.