mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "Add a2dp vendor codec extension"
This commit is contained in:
@@ -37,11 +37,16 @@ parcelable CodecCapabilities {
|
||||
android.hardware.bluetooth.audio.CodecType codecType;
|
||||
android.hardware.bluetooth.audio.CodecCapabilities.Capabilities capabilities;
|
||||
@VintfStability
|
||||
parcelable VendorCapabilities {
|
||||
ParcelableHolder extension;
|
||||
}
|
||||
@VintfStability
|
||||
union Capabilities {
|
||||
android.hardware.bluetooth.audio.SbcCapabilities sbcCapabilities;
|
||||
android.hardware.bluetooth.audio.AacCapabilities aacCapabilities;
|
||||
android.hardware.bluetooth.audio.LdacCapabilities ldacCapabilities;
|
||||
android.hardware.bluetooth.audio.AptxCapabilities aptxCapabilities;
|
||||
android.hardware.bluetooth.audio.Lc3Capabilities lc3Capabilities;
|
||||
android.hardware.bluetooth.audio.CodecCapabilities.VendorCapabilities vendorCapabilities;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,11 +40,18 @@ parcelable CodecConfiguration {
|
||||
boolean isScmstEnabled;
|
||||
android.hardware.bluetooth.audio.CodecConfiguration.CodecSpecific config;
|
||||
@VintfStability
|
||||
parcelable VendorConfiguration {
|
||||
int vendorId;
|
||||
char codecId;
|
||||
ParcelableHolder codecConfig;
|
||||
}
|
||||
@VintfStability
|
||||
union CodecSpecific {
|
||||
android.hardware.bluetooth.audio.SbcConfiguration sbcConfig;
|
||||
android.hardware.bluetooth.audio.AacConfiguration aacConfig;
|
||||
android.hardware.bluetooth.audio.LdacConfiguration ldacConfig;
|
||||
android.hardware.bluetooth.audio.AptxConfiguration aptxConfig;
|
||||
android.hardware.bluetooth.audio.Lc3Configuration lc3Config;
|
||||
android.hardware.bluetooth.audio.CodecConfiguration.VendorConfiguration vendorConfig;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,10 @@ import android.hardware.bluetooth.audio.SbcCapabilities;
|
||||
*/
|
||||
@VintfStability
|
||||
parcelable CodecCapabilities {
|
||||
@VintfStability
|
||||
parcelable VendorCapabilities {
|
||||
ParcelableHolder extension;
|
||||
}
|
||||
@VintfStability
|
||||
union Capabilities {
|
||||
SbcCapabilities sbcCapabilities;
|
||||
@@ -36,6 +40,7 @@ parcelable CodecCapabilities {
|
||||
LdacCapabilities ldacCapabilities;
|
||||
AptxCapabilities aptxCapabilities;
|
||||
Lc3Capabilities lc3Capabilities;
|
||||
VendorCapabilities vendorCapabilities;
|
||||
}
|
||||
CodecType codecType;
|
||||
Capabilities capabilities;
|
||||
|
||||
@@ -29,6 +29,12 @@ import android.hardware.bluetooth.audio.SbcConfiguration;
|
||||
*/
|
||||
@VintfStability
|
||||
parcelable CodecConfiguration {
|
||||
@VintfStability
|
||||
parcelable VendorConfiguration {
|
||||
int vendorId;
|
||||
char codecId;
|
||||
ParcelableHolder codecConfig;
|
||||
}
|
||||
@VintfStability
|
||||
union CodecSpecific {
|
||||
SbcConfiguration sbcConfig;
|
||||
@@ -36,6 +42,7 @@ parcelable CodecConfiguration {
|
||||
LdacConfiguration ldacConfig;
|
||||
AptxConfiguration aptxConfig;
|
||||
Lc3Configuration lc3Config;
|
||||
VendorConfiguration vendorConfig;
|
||||
}
|
||||
CodecType codecType;
|
||||
/**
|
||||
|
||||
@@ -356,7 +356,6 @@ BluetoothAudioCodecs::GetA2dpOffloadCodecCapabilities(
|
||||
break;
|
||||
case CodecType::UNKNOWN:
|
||||
case CodecType::VENDOR:
|
||||
codec_capability = {};
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user