legacy/msm7x30: Use new audio API defines.

Also fix some error cases where input is routed from the wrong device.

Change-Id: Ibee1c54cb42245b88725ff7f001c167da1d9f770