* A question about the soc jack status
@ 2009-10-28 7:16 Joonyoung Shim
[not found] ` <ef0d8a250910280032n7f9a12c0x12dd7e9c30ad3e25@mail.gmail.com>
2009-10-28 10:21 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Joonyoung Shim @ 2009-10-28 7:16 UTC (permalink / raw)
To: alsa-devel; +Cc: knhoon.baik, kyungmin.park
Hi, all.
I have a question about soc jack. I know the soc jack reports the jack
status when the jack status is change only. For example when the jack
is inserted or released, the soc jack reports the jack status to user
via input subsystem.
But i want to know the jack status always regardless of the event to
insert or release a jack. For example we can check the jack status
always if the jack status is reported via sysfs file.
So, is there how to know the jack status always the currently?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: A question about the soc jack status
[not found] ` <ef0d8a250910280032n7f9a12c0x12dd7e9c30ad3e25@mail.gmail.com>
@ 2009-10-28 9:04 ` Joonyoung Shim
0 siblings, 0 replies; 3+ messages in thread
From: Joonyoung Shim @ 2009-10-28 9:04 UTC (permalink / raw)
To: Naveen Krishna Ch; +Cc: kyungmin.park, alsa-devel, knhoon.baik
On 10/28/2009 4:32 PM, Naveen Krishna Ch wrote:
> 2009/10/28 Joonyoung Shim <jy0922.shim@samsung.com>
>
>> Hi, all.
>>
>> I have a question about soc jack. I know the soc jack reports the jack
>> status when the jack status is change only. For example when the jack
>> is inserted or released, the soc jack reports the jack status to user
>> via input subsystem.
>>
>> But i want to know the jack status always regardless of the event to
>> insert or release a jack. For example we can check the jack status
>> always if the jack status is reported via sysfs file.
>>
> There is a /sys/class/soc/jack/status
> Dont remember the exact path.
> Cat of that file will tell us right
>
I cannot find "jack" word under /sys directory.
Can you give me the exact path?
>> So, is there how to know the jack status always the currently?
>> _______________________________________________
>> Alsa-devel mailing list
>> Alsa-devel@alsa-project.org
>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: A question about the soc jack status
2009-10-28 7:16 A question about the soc jack status Joonyoung Shim
[not found] ` <ef0d8a250910280032n7f9a12c0x12dd7e9c30ad3e25@mail.gmail.com>
@ 2009-10-28 10:21 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2009-10-28 10:21 UTC (permalink / raw)
To: Joonyoung Shim; +Cc: kyungmin.park, alsa-devel, knhoon.baik
On Wed, Oct 28, 2009 at 04:16:49PM +0900, Joonyoung Shim wrote:
> I have a question about soc jack. I know the soc jack reports the jack
> status when the jack status is change only. For example when the jack
> is inserted or released, the soc jack reports the jack status to user
> via input subsystem.
> But i want to know the jack status always regardless of the event to
> insert or release a jack. For example we can check the jack status
> always if the jack status is reported via sysfs file.
> So, is there how to know the jack status always the currently?
You can query this with an ioctl() on the input device - EVIOCGSW()
should do the trick, evtest.c has some example code I believe. Adding
this information to sysfs would be nice if someone has the time to look
into it.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-28 10:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-28 7:16 A question about the soc jack status Joonyoung Shim
[not found] ` <ef0d8a250910280032n7f9a12c0x12dd7e9c30ad3e25@mail.gmail.com>
2009-10-28 9:04 ` Joonyoung Shim
2009-10-28 10:21 ` 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.