This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
# Audio input jack detection script by @ouija | |
# get headset input device | |
DEVICE=$(getevent -Sv | grep -B 5 -m1 'bytcr-rt5651 Headset' | grep -m1 'add device' | cut -d : -f 2) | |
if [ ! -z "$DEVICE" ]; then | |
sleep 3 | |
while true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* rt5651.c -- RT5651 ALSA SoC audio codec driver | |
* | |
* Copyright 2014 Realtek Semiconductor Corp. | |
* Author: Bard Liao <[email protected]> | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* rt5651.c -- RT5651 ALSA SoC audio codec driver | |
* | |
* Copyright 2014 Realtek Semiconductor Corp. | |
* Author: Bard Liao <[email protected]> | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name swfobject-patch | |
// @namespace http://saschanaz.github.io/ | |
// @version 0.2 | |
// @description try to take over the world! | |
// @author You | |
// @match http://*/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
NewerOlder