Use input switches to detect audio jack insertions

Change-Id: Icd845f5dfa043515e312b5b66df379e00297ed4b

Conflicts:
	overlay/frameworks/base/core/res/res/values/config.xml