A question about the soc jack status
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?
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Naveen Krishna Ch
2009/10/28 Joonyoung Shim <[email protected]>
Quoted 7 lines
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.
Quoted 8 lines
Quoted 4 lines
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?
Quoted 9 lines
Quoted 6 lines
So, is there how to know the jack status always the currently?
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 10 lines · Joonyoung Shim
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.