Handle CL opening state in bta_jv_free_rfc_cb

When the local device is openning an rfc channel and is being closed
before it's opened, we should close the channel instead of ignoring.
bug 11299049

Change-Id: I702500d489c8b3d3764e36340106433232a127c0
Conditional compilation for 48KHz sample rate

Change-Id: I901e83dac9e18343dad4fad9c6ebf5f58c24ebf5

Conflicts:
	audio_a2dp_hw/audio_a2dp_hw.h
	btif/co/bta_av_co.c
	btif/src/btif_media_task.c
bluedroid: set 48KHz samplerate for b-family

Change-Id: I115c385548ba88db0c0658331dbbab5e6e7d2930

Conflicts:
	audio_a2dp_hw/Android.mk
	main/Android.mk
Merge remote-tracking branch 'aosp/kitkat-mr1-release' into kk-4.4
Bluetooth: Check A2dp device priority.

Check for device priority in stack before sending connect
request on time-out for remote open event.

Change-Id: I191f5f3089d7945cbd6facc223a341452462421c
CRs-Fixed: 510957
Merge branch 'kk-4.4' of github.com:AOSP-S4-KK/platform_external_bluetooth_bluedroid into cr-4.4