g2: Use input switches to detect audio jack insertions

Change-Id: Icd845f5dfa043515e312b5b66df379e00297ed4b