Use input switches to detect audio jack insertions

Change-Id: I77b980d4aa7bccea68dc5c7ae03f2368fc3df114