@@ -179,7 +179,8 @@ public final class BluetoothCodecConfig implements Parcelable {
179179 @ IntDef (prefix = "CHANNEL_MODE_" , value = {
180180 CHANNEL_MODE_NONE ,
181181 CHANNEL_MODE_MONO ,
182- CHANNEL_MODE_STEREO
182+ CHANNEL_MODE_STEREO ,
183+ CHANNEL_MODE_DUAL_CHANNEL
183184 })
184185 @ Retention (RetentionPolicy .SOURCE )
185186 public @interface ChannelMode {}
@@ -194,7 +195,10 @@ public final class BluetoothCodecConfig implements Parcelable {
194195 public static final int CHANNEL_MODE_STEREO = 0x1 << 1 ;
195196
196197 @ UnsupportedAppUsage
197- public static final int CHANNEL_MODE_JOINT_STEREO = 0x1 << 2 ;
198+ public static final int CHANNEL_MODE_DUAL_CHANNEL = 0x1 << 2 ;
199+
200+ @ UnsupportedAppUsage
201+ public static final int CHANNEL_MODE_JOINT_STEREO = 0x1 << 3 ;
198202
199203 private final @ SourceCodecType int mCodecType ;
200204 private @ CodecPriority int mCodecPriority ;
@@ -342,6 +346,9 @@ public String toString() {
342346 if ((mChannelMode & CHANNEL_MODE_STEREO ) != 0 ) {
343347 channelModeStr = appendCapabilityToString (channelModeStr , "STEREO" );
344348 }
349+ if ((mChannelMode & CHANNEL_MODE_DUAL_CHANNEL ) != 0 ) {
350+ channelModeStr = appendCapabilityToString (channelModeStr , "DUAL_CHANNEL" );
351+ }
345352
346353 return "{codecName:" + getCodecName ()
347354 + ",mCodecType:" + mCodecType
@@ -526,7 +533,8 @@ public void setCodecPriority(@CodecPriority int codecPriority) {
526533 * supported channel modes:
527534 * {@link android.bluetooth.BluetoothCodecConfig#CHANNEL_MODE_NONE} or
528535 * {@link android.bluetooth.BluetoothCodecConfig#CHANNEL_MODE_MONO} or
529- * {@link android.bluetooth.BluetoothCodecConfig#CHANNEL_MODE_STEREO}
536+ * {@link android.bluetooth.BluetoothCodecConfig#CHANNEL_MODE_STEREO} or
537+ * {@link android.bluetooth.BluetoothCodecConfig#CHANNEL_MODE_DUAL_CHANNEL}
530538 *
531539 * @return the codec channel mode
532540 * @hide
0 commit comments