1 /*
2  * Copyright (C) 2022 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.server.usb.descriptors;
18 
19 /**
20  * @hide
21  * Group of logical audio channels that carry tightly related synchronous audio information.
22  * See Audio10.pdf section 3.7.2.3 Audio Channel Cluster format and Audio20.pdf section 3.13.1
23  * audio channel cluster.
24  */
25 public interface UsbAudioChannelCluster {
26     /**
27      * @return logical channels in the cluster.
28      */
getChannelCount()29     byte getChannelCount();
30 
31     /**
32      * @return a bit field that indicates which spatial locations are present in the cluster.
33      */
getChannelConfig()34     int getChannelConfig();
35 
36     /**
37      * @return index to a string descriptor that describes the spatial location of the first
38      *         non-predefined logical channel in the cluster.
39      */
getChannelNames()40     byte getChannelNames();
41 }
42