ref: 4031e29206730363d343118b7325cd3be4b312bf
parent: 92602a67a15f18f9b68fd4889a74251ad5d452fe
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sun May 7 21:19:47 EDT 2023
some have hp jack as INout, allow that too
--- a/jacksense.c
+++ b/jacksense.c
@@ -50,7 +50,7 @@
s[Blinelen(b)-1] = 0;
if(tokenize(s, a, nelem(a)) < 8)
continue;
- if(strcmp(a[0], "pin") != 0 || strcmp(a[2], "out") != 0)
+ if(strcmp(a[0], "pin") != 0 || (strcmp(a[2], "out") != 0 && strcmp(a[2], "inout") != 0))
continue;
if(strcmp(a[3], "jack") == 0 && strcmp(a[6], "hpout") == 0){
hp = atoi(a[1]);