Merge "HAL: Add headset device check in get backend index"