Update the A2DP Codec Config API

Previously, the JNI upcall would contain only the current codec config.
In the new API, the upcall contains:
 1. The current codec config
 2. The list of codecs containing the local codecs capabilities
 3. The list of codecs containing the selectable codecs capabilities.
    This list is the intersection of the local codecs capabilities
    and the capabilities of the paired device.

Also, changed the btav_a2dp_codec_priority_t type to enum.

Test: A2DP streaming with headsets and switching the codecs
Change-Id: Icb1c7e0ac6a81e4283fb5353ec2c36712587e0e1
1 file changed