Another question: You say your code does the same as the workaround "amixer -c 0 set 'Headphone Mic Boost',0 1" ... so the output volume is decreased too with your patch?
Another question: You say your code does the same as the workaround "amixer -c 0 set 'Headphone Mic Boost',0 1" ... so the output volume is decreased too with your patch?