From 16a8e83b36121914d0fd19fbd4ea567d5d65ad18 Mon Sep 17 00:00:00 2001 From: vallari worah Date: Mon, 7 Mar 2022 23:43:56 +0530 Subject: [PATCH 1/6] Add AIDL 1.0 vendor parcelable extenstion CRs-Fixed: 3191782 Change-Id: I5ea66af10613bde0d04b68243eaefef6edec50f8 --- bluetooth_audio/aidl/Android.bp | 24 +++++++ .../1/.hash | 1 + .../audio/AptxAdaptiveR4ChannelMode.aidl | 58 ++++++++++++++++ .../audio/AptxAdaptiveR4SampleRate.aidl | 61 ++++++++++++++++ .../bluetooth/audio/AptxAdaptiveR4_TTP.aidl | 57 +++++++++++++++ .../audio/LeAudioVendorConfiguration.aidl | 62 +++++++++++++++++ .../bluetooth/audio/VendorCodecType.aidl | 58 ++++++++++++++++ .../audio/classicVendorCapabilities.aidl | 67 ++++++++++++++++++ .../audio/classicVendorConfiguration.aidl | 67 ++++++++++++++++++ .../audio/AptxAdaptiveR4ChannelMode.aidl | 58 ++++++++++++++++ .../audio/AptxAdaptiveR4SampleRate.aidl | 61 ++++++++++++++++ .../bluetooth/audio/AptxAdaptiveR4_TTP.aidl | 57 +++++++++++++++ .../audio/LeAudioVendorConfiguration.aidl | 62 +++++++++++++++++ .../bluetooth/audio/VendorCodecType.aidl | 58 ++++++++++++++++ .../audio/classicVendorCapabilities.aidl | 67 ++++++++++++++++++ .../audio/classicVendorConfiguration.aidl | 67 ++++++++++++++++++ .../audio/AptxAdaptiveR4ChannelMode.aidl | 43 ++++++++++++ .../audio/AptxAdaptiveR4SampleRate.aidl | 46 +++++++++++++ .../bluetooth/audio/AptxAdaptiveR4_TTP.aidl | 41 +++++++++++ .../audio/LeAudioVendorConfiguration.aidl | 69 +++++++++++++++++++ .../bluetooth/audio/VendorCodecType.aidl | 43 ++++++++++++ .../audio/classicVendorCapabilities.aidl | 58 ++++++++++++++++ .../audio/classicVendorConfiguration.aidl | 58 ++++++++++++++++ 23 files changed, 1243 insertions(+) create mode 100644 bluetooth_audio/aidl/Android.bp create mode 100644 bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/.hash create mode 100644 bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4ChannelMode.aidl create mode 100644 bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4SampleRate.aidl create mode 100644 bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4_TTP.aidl create mode 100644 bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/LeAudioVendorConfiguration.aidl create mode 100644 bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/VendorCodecType.aidl create mode 100644 bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/classicVendorCapabilities.aidl create mode 100644 bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/classicVendorConfiguration.aidl create mode 100644 bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4ChannelMode.aidl create mode 100644 bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4SampleRate.aidl create mode 100644 bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4_TTP.aidl create mode 100644 bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/LeAudioVendorConfiguration.aidl create mode 100644 bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/VendorCodecType.aidl create mode 100644 bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/classicVendorCapabilities.aidl create mode 100644 bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/classicVendorConfiguration.aidl create mode 100644 bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4ChannelMode.aidl create mode 100644 bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4SampleRate.aidl create mode 100644 bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4_TTP.aidl create mode 100644 bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/LeAudioVendorConfiguration.aidl create mode 100644 bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/VendorCodecType.aidl create mode 100644 bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/classicVendorCapabilities.aidl create mode 100644 bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/classicVendorConfiguration.aidl diff --git a/bluetooth_audio/aidl/Android.bp b/bluetooth_audio/aidl/Android.bp new file mode 100644 index 0000000..3af448a --- /dev/null +++ b/bluetooth_audio/aidl/Android.bp @@ -0,0 +1,24 @@ +aidl_interface { + name: "vendor.qti.hardware.bluetooth.audio", + vendor_available: true, + srcs: [ + "vendor/qti//hardware/bluetooth/audio/*.aidl", + ], + stability: "vintf", + backend: { + cpp: { + enabled: false, + }, + java: { + sdk_version: "module_current", + enabled: false, + }, + }, + versions_with_info: [ + { + version: "1", + imports: [], + }, + ], + +} diff --git a/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/.hash b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/.hash new file mode 100644 index 0000000..c90a552 --- /dev/null +++ b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/.hash @@ -0,0 +1 @@ +be7f6f90eb88c54a08b4bd98ba130b87a3a467c4 diff --git a/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4ChannelMode.aidl b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4ChannelMode.aidl new file mode 100644 index 0000000..e63a689 --- /dev/null +++ b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4ChannelMode.aidl @@ -0,0 +1,58 @@ +/* +Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.bluetooth.audio; +@Backing(type="int") @VintfStability +enum AptxAdaptiveR4ChannelMode { + UNKNOWN = 0, + MONO = 1, + STEREO_TWM = 2, +} diff --git a/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4SampleRate.aidl b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4SampleRate.aidl new file mode 100644 index 0000000..3f87c3d --- /dev/null +++ b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4SampleRate.aidl @@ -0,0 +1,61 @@ +/* +Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.bluetooth.audio; +@Backing(type="int") @VintfStability +enum AptxAdaptiveR4SampleRate { + RATE_UNKNOWN = 0, + RATE_44100 = 44100, + RATE_48000 = 48000, + RATE_96000 = 96000, + RATE_192000 = 192000, + RATE_32000 = 32000, +} diff --git a/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4_TTP.aidl b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4_TTP.aidl new file mode 100644 index 0000000..c0bdc82 --- /dev/null +++ b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4_TTP.aidl @@ -0,0 +1,57 @@ +/* + Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.bluetooth.audio; +@VintfStability +parcelable AptxAdaptiveR4_TTP { + int ttp_ll; + int ttp_hq; +} diff --git a/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/LeAudioVendorConfiguration.aidl b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/LeAudioVendorConfiguration.aidl new file mode 100644 index 0000000..2a35b67 --- /dev/null +++ b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/LeAudioVendorConfiguration.aidl @@ -0,0 +1,62 @@ +/* + Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.bluetooth.audio; +@VintfStability +parcelable LeAudioVendorConfiguration { + vendor.qti.hardware.bluetooth.audio.VendorCodecType vendorCodecType; + byte pcmBitDepth; + int samplingFrequencyHz; + int frameDurationUs; + int octetsPerFrame; + byte blocksPerSdu; + byte[] codecSpecificData; +} diff --git a/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/VendorCodecType.aidl b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/VendorCodecType.aidl new file mode 100644 index 0000000..79bdb48 --- /dev/null +++ b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/VendorCodecType.aidl @@ -0,0 +1,58 @@ +/* +Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.bluetooth.audio; +@Backing(type="int") @VintfStability +enum VendorCodecType { + LC3Q = 0, + APTX_ADAPTIVE_R3 = 1, + APTX_ADAPTIVE_R4 = 2, +} diff --git a/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/classicVendorCapabilities.aidl b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/classicVendorCapabilities.aidl new file mode 100644 index 0000000..6a41d16 --- /dev/null +++ b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/classicVendorCapabilities.aidl @@ -0,0 +1,67 @@ +/* +Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.bluetooth.audio; +@VintfStability +parcelable classicVendorCapabilities { + vendor.qti.hardware.bluetooth.audio.VendorCodecType vendorCodecType; + parcelable AptxAdaptiveR4Capabilities { + int[] sampleRate; + int[] channelMode; + vendor.qti.hardware.bluetooth.audio.AptxAdaptiveR4_TTP ttp; + int max_bitrate; + byte[] decoder_capability; + int decoder_capability_len; + } + union CodecSpecific { + vendor.qti.hardware.bluetooth.audio.classicVendorCapabilities.AptxAdaptiveR4Capabilities aptxAdaptiveR4Cap; + } +} diff --git a/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/classicVendorConfiguration.aidl b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/classicVendorConfiguration.aidl new file mode 100644 index 0000000..f6d0ac5 --- /dev/null +++ b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/1/vendor/qti/hardware/bluetooth/audio/classicVendorConfiguration.aidl @@ -0,0 +1,67 @@ +/* +Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.bluetooth.audio; +@VintfStability +parcelable classicVendorConfiguration { + vendor.qti.hardware.bluetooth.audio.VendorCodecType vendorCodecType; + parcelable AptxAdaptiveR4Configuration { + vendor.qti.hardware.bluetooth.audio.AptxAdaptiveR4SampleRate sampleRate; + vendor.qti.hardware.bluetooth.audio.AptxAdaptiveR4ChannelMode channelMode; + vendor.qti.hardware.bluetooth.audio.AptxAdaptiveR4_TTP ttp; + int max_bitrate; + byte[] decoder_capability; + int decoder_capability_len; + } + union CodecSpecific { + vendor.qti.hardware.bluetooth.audio.classicVendorConfiguration.AptxAdaptiveR4Configuration aptxAdaptiveR4Config; + } +} diff --git a/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4ChannelMode.aidl b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4ChannelMode.aidl new file mode 100644 index 0000000..e63a689 --- /dev/null +++ b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4ChannelMode.aidl @@ -0,0 +1,58 @@ +/* +Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.bluetooth.audio; +@Backing(type="int") @VintfStability +enum AptxAdaptiveR4ChannelMode { + UNKNOWN = 0, + MONO = 1, + STEREO_TWM = 2, +} diff --git a/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4SampleRate.aidl b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4SampleRate.aidl new file mode 100644 index 0000000..3f87c3d --- /dev/null +++ b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4SampleRate.aidl @@ -0,0 +1,61 @@ +/* +Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.bluetooth.audio; +@Backing(type="int") @VintfStability +enum AptxAdaptiveR4SampleRate { + RATE_UNKNOWN = 0, + RATE_44100 = 44100, + RATE_48000 = 48000, + RATE_96000 = 96000, + RATE_192000 = 192000, + RATE_32000 = 32000, +} diff --git a/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4_TTP.aidl b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4_TTP.aidl new file mode 100644 index 0000000..c0bdc82 --- /dev/null +++ b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4_TTP.aidl @@ -0,0 +1,57 @@ +/* + Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.bluetooth.audio; +@VintfStability +parcelable AptxAdaptiveR4_TTP { + int ttp_ll; + int ttp_hq; +} diff --git a/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/LeAudioVendorConfiguration.aidl b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/LeAudioVendorConfiguration.aidl new file mode 100644 index 0000000..2a35b67 --- /dev/null +++ b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/LeAudioVendorConfiguration.aidl @@ -0,0 +1,62 @@ +/* + Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.bluetooth.audio; +@VintfStability +parcelable LeAudioVendorConfiguration { + vendor.qti.hardware.bluetooth.audio.VendorCodecType vendorCodecType; + byte pcmBitDepth; + int samplingFrequencyHz; + int frameDurationUs; + int octetsPerFrame; + byte blocksPerSdu; + byte[] codecSpecificData; +} diff --git a/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/VendorCodecType.aidl b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/VendorCodecType.aidl new file mode 100644 index 0000000..79bdb48 --- /dev/null +++ b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/VendorCodecType.aidl @@ -0,0 +1,58 @@ +/* +Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.bluetooth.audio; +@Backing(type="int") @VintfStability +enum VendorCodecType { + LC3Q = 0, + APTX_ADAPTIVE_R3 = 1, + APTX_ADAPTIVE_R4 = 2, +} diff --git a/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/classicVendorCapabilities.aidl b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/classicVendorCapabilities.aidl new file mode 100644 index 0000000..6a41d16 --- /dev/null +++ b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/classicVendorCapabilities.aidl @@ -0,0 +1,67 @@ +/* +Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.bluetooth.audio; +@VintfStability +parcelable classicVendorCapabilities { + vendor.qti.hardware.bluetooth.audio.VendorCodecType vendorCodecType; + parcelable AptxAdaptiveR4Capabilities { + int[] sampleRate; + int[] channelMode; + vendor.qti.hardware.bluetooth.audio.AptxAdaptiveR4_TTP ttp; + int max_bitrate; + byte[] decoder_capability; + int decoder_capability_len; + } + union CodecSpecific { + vendor.qti.hardware.bluetooth.audio.classicVendorCapabilities.AptxAdaptiveR4Capabilities aptxAdaptiveR4Cap; + } +} diff --git a/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/classicVendorConfiguration.aidl b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/classicVendorConfiguration.aidl new file mode 100644 index 0000000..f6d0ac5 --- /dev/null +++ b/bluetooth_audio/aidl/aidl_api/vendor.qti.hardware.bluetooth.audio/current/vendor/qti/hardware/bluetooth/audio/classicVendorConfiguration.aidl @@ -0,0 +1,67 @@ +/* +Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.bluetooth.audio; +@VintfStability +parcelable classicVendorConfiguration { + vendor.qti.hardware.bluetooth.audio.VendorCodecType vendorCodecType; + parcelable AptxAdaptiveR4Configuration { + vendor.qti.hardware.bluetooth.audio.AptxAdaptiveR4SampleRate sampleRate; + vendor.qti.hardware.bluetooth.audio.AptxAdaptiveR4ChannelMode channelMode; + vendor.qti.hardware.bluetooth.audio.AptxAdaptiveR4_TTP ttp; + int max_bitrate; + byte[] decoder_capability; + int decoder_capability_len; + } + union CodecSpecific { + vendor.qti.hardware.bluetooth.audio.classicVendorConfiguration.AptxAdaptiveR4Configuration aptxAdaptiveR4Config; + } +} diff --git a/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4ChannelMode.aidl b/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4ChannelMode.aidl new file mode 100644 index 0000000..6f0eb1e --- /dev/null +++ b/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4ChannelMode.aidl @@ -0,0 +1,43 @@ +/* +Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package vendor.qti.hardware.bluetooth.audio; + +@VintfStability +@Backing(type="int") +enum AptxAdaptiveR4ChannelMode { + UNKNOWN = 0, + MONO = 1, + STEREO_TWM = 2, +} \ No newline at end of file diff --git a/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4SampleRate.aidl b/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4SampleRate.aidl new file mode 100644 index 0000000..d8c3060 --- /dev/null +++ b/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4SampleRate.aidl @@ -0,0 +1,46 @@ +/* +Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package vendor.qti.hardware.bluetooth.audio; + +@VintfStability +@Backing(type="int") +enum AptxAdaptiveR4SampleRate { + RATE_UNKNOWN = 0, + RATE_44100 = 44100, + RATE_48000 = 48000, + RATE_96000 = 96000, + RATE_192000 = 192000, + RATE_32000 = 32000, +} \ No newline at end of file diff --git a/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4_TTP.aidl b/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4_TTP.aidl new file mode 100644 index 0000000..a11b709 --- /dev/null +++ b/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/AptxAdaptiveR4_TTP.aidl @@ -0,0 +1,41 @@ +/* + Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package vendor.qti.hardware.bluetooth.audio; + +@VintfStability +parcelable AptxAdaptiveR4_TTP { + int ttp_ll; + int ttp_hq; +} \ No newline at end of file diff --git a/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/LeAudioVendorConfiguration.aidl b/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/LeAudioVendorConfiguration.aidl new file mode 100644 index 0000000..6703aeb --- /dev/null +++ b/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/LeAudioVendorConfiguration.aidl @@ -0,0 +1,69 @@ +/* + Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package vendor.qti.hardware.bluetooth.audio; + +import vendor.qti.hardware.bluetooth.audio.VendorCodecType; + +@VintfStability +parcelable LeAudioVendorConfiguration { + /* + * vendor codec type + */ + VendorCodecType vendorCodecType; + /* + * PCM is Input for encoder, Output for decoder + */ + byte pcmBitDepth; + /* + * codec-specific parameters + */ + int samplingFrequencyHz; + /* + * FrameDuration based on microseconds. + */ + int frameDurationUs; + /* + * length in octets of a codec frame + */ + int octetsPerFrame; + /* + * Number of blocks of codec frames per single SDU (Service Data Unit) + */ + byte blocksPerSdu; + /* + * vendor codec-specific data + */ + byte[] codecSpecificData; +} diff --git a/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/VendorCodecType.aidl b/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/VendorCodecType.aidl new file mode 100644 index 0000000..6e0cab0 --- /dev/null +++ b/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/VendorCodecType.aidl @@ -0,0 +1,43 @@ +/* +Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package vendor.qti.hardware.bluetooth.audio; + +@VintfStability +@Backing(type="int") +enum VendorCodecType { + LC3Q, + APTX_ADAPTIVE_R3, + APTX_ADAPTIVE_R4 +} diff --git a/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/classicVendorCapabilities.aidl b/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/classicVendorCapabilities.aidl new file mode 100644 index 0000000..ce95971 --- /dev/null +++ b/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/classicVendorCapabilities.aidl @@ -0,0 +1,58 @@ +/* +Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package vendor.qti.hardware.bluetooth.audio; + +import vendor.qti.hardware.bluetooth.audio.VendorCodecType; +import vendor.qti.hardware.bluetooth.audio.AptxAdaptiveR4SampleRate; +import vendor.qti.hardware.bluetooth.audio.AptxAdaptiveR4ChannelMode; +import vendor.qti.hardware.bluetooth.audio.AptxAdaptiveR4_TTP; + +@VintfStability +parcelable classicVendorCapabilities { + + /** Used for Hardware Encoding AptX-Adaptive-R4 codec parameters */ + parcelable AptxAdaptiveR4Capabilities { + int[] sampleRate; + int[] channelMode; + AptxAdaptiveR4_TTP ttp; + int max_bitrate; + byte[] decoder_capability; + int decoder_capability_len; + } + VendorCodecType vendorCodecType; + union CodecSpecific { + AptxAdaptiveR4Capabilities aptxAdaptiveR4Cap; + } +} diff --git a/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/classicVendorConfiguration.aidl b/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/classicVendorConfiguration.aidl new file mode 100644 index 0000000..0cdb133 --- /dev/null +++ b/bluetooth_audio/aidl/vendor/qti/hardware/bluetooth/audio/classicVendorConfiguration.aidl @@ -0,0 +1,58 @@ +/* +Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package vendor.qti.hardware.bluetooth.audio; + +import vendor.qti.hardware.bluetooth.audio.VendorCodecType; +import vendor.qti.hardware.bluetooth.audio.AptxAdaptiveR4SampleRate; +import vendor.qti.hardware.bluetooth.audio.AptxAdaptiveR4ChannelMode; +import vendor.qti.hardware.bluetooth.audio.AptxAdaptiveR4_TTP; + +@VintfStability +parcelable classicVendorConfiguration { + + /** Used for Hardware Encoding AptX-Adaptive-R4 codec parameters */ + parcelable AptxAdaptiveR4Configuration { + AptxAdaptiveR4SampleRate sampleRate; + AptxAdaptiveR4ChannelMode channelMode; + AptxAdaptiveR4_TTP ttp; + int max_bitrate; + byte[] decoder_capability; + int decoder_capability_len; + } + VendorCodecType vendorCodecType; + union CodecSpecific { + AptxAdaptiveR4Configuration aptxAdaptiveR4Config; + } +} From c88737ec64380e18a4aa6b5a6d5f0691c63d5b4c Mon Sep 17 00:00:00 2001 From: Swarn Singh Date: Thu, 2 Jun 2022 15:16:28 +0530 Subject: [PATCH 2/6] Introduce vendor stable aidl for wpa_supplicant This commit introduces new vendor stable aidl for wpa_supplicant. Adding supplicant vendor stable AIDL to allow doDriverCmd which is used by System service module (QtiWifiService). This was earlier done through HIDL interface. Change-Id: I271994ab4be58976fe564ada887bccfbf3876be9 CRs-Fixed: 3196761 --- wifi/supplicant/aidl/Android.bp | 23 ++++++++++ .../1/.hash | 1 + .../wifi/supplicant/ISupplicantVendor.aidl | 28 +++++++++++++ .../supplicant/ISupplicantVendorStaIface.aidl | 27 ++++++++++++ .../wifi/supplicant/IVendorIfaceInfo.aidl | 28 +++++++++++++ .../wifi/supplicant/IVendorIfaceType.aidl | 27 ++++++++++++ .../SupplicantVendorStatusCode.aidl | 31 ++++++++++++++ .../wifi/supplicant/ISupplicantVendor.aidl | 28 +++++++++++++ .../supplicant/ISupplicantVendorStaIface.aidl | 27 ++++++++++++ .../wifi/supplicant/IVendorIfaceInfo.aidl | 28 +++++++++++++ .../wifi/supplicant/IVendorIfaceType.aidl | 27 ++++++++++++ .../SupplicantVendorStatusCode.aidl | 31 ++++++++++++++ .../wifi/supplicant/ISupplicantVendor.aidl | 42 +++++++++++++++++++ .../supplicant/ISupplicantVendorStaIface.aidl | 22 ++++++++++ .../wifi/supplicant/IVendorIfaceInfo.aidl | 23 ++++++++++ .../wifi/supplicant/IVendorIfaceType.aidl | 15 +++++++ .../SupplicantVendorStatusCode.aidl | 30 +++++++++++++ 17 files changed, 438 insertions(+) create mode 100644 wifi/supplicant/aidl/Android.bp create mode 100644 wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/.hash create mode 100644 wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/ISupplicantVendor.aidl create mode 100644 wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/ISupplicantVendorStaIface.aidl create mode 100644 wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/IVendorIfaceInfo.aidl create mode 100644 wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/IVendorIfaceType.aidl create mode 100644 wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/SupplicantVendorStatusCode.aidl create mode 100644 wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/ISupplicantVendor.aidl create mode 100644 wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/ISupplicantVendorStaIface.aidl create mode 100644 wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/IVendorIfaceInfo.aidl create mode 100644 wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/IVendorIfaceType.aidl create mode 100644 wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/SupplicantVendorStatusCode.aidl create mode 100644 wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/ISupplicantVendor.aidl create mode 100644 wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/ISupplicantVendorStaIface.aidl create mode 100644 wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/IVendorIfaceInfo.aidl create mode 100644 wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/IVendorIfaceType.aidl create mode 100644 wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/SupplicantVendorStatusCode.aidl diff --git a/wifi/supplicant/aidl/Android.bp b/wifi/supplicant/aidl/Android.bp new file mode 100644 index 0000000..5d72439 --- /dev/null +++ b/wifi/supplicant/aidl/Android.bp @@ -0,0 +1,23 @@ +aidl_interface { + name: "vendor.qti.hardware.wifi.supplicant", + system_ext_specific: true, + vendor_available: true, + + srcs: [ + "vendor/qti/hardware/wifi/supplicant/*.aidl", + ], + stability: "vintf", + backend: { + java: { + sdk_version: "module_current", + min_sdk_version: "Tiramisu", + }, + }, + versions_with_info: [ + { + version: "1", + imports: [], + }, + ], + +} diff --git a/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/.hash b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/.hash new file mode 100644 index 0000000..ad414d5 --- /dev/null +++ b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/.hash @@ -0,0 +1 @@ +42bd698acab7cceeb5125af52c0b8fd730f354da diff --git a/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/ISupplicantVendor.aidl b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/ISupplicantVendor.aidl new file mode 100644 index 0000000..bf1dd5e --- /dev/null +++ b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/ISupplicantVendor.aidl @@ -0,0 +1,28 @@ +/* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.wifi.supplicant; +@VintfStability +interface ISupplicantVendor { + vendor.qti.hardware.wifi.supplicant.ISupplicantVendorStaIface getVendorInterface(in vendor.qti.hardware.wifi.supplicant.IVendorIfaceInfo ifaceInfo); + vendor.qti.hardware.wifi.supplicant.IVendorIfaceInfo[] listVendorInterfaces(); +} diff --git a/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/ISupplicantVendorStaIface.aidl b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/ISupplicantVendorStaIface.aidl new file mode 100644 index 0000000..31e1ac4 --- /dev/null +++ b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/ISupplicantVendorStaIface.aidl @@ -0,0 +1,27 @@ +/* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.wifi.supplicant; +@VintfStability +interface ISupplicantVendorStaIface { + String doDriverCmd(in String command); +} diff --git a/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/IVendorIfaceInfo.aidl b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/IVendorIfaceInfo.aidl new file mode 100644 index 0000000..3b5d712 --- /dev/null +++ b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/IVendorIfaceInfo.aidl @@ -0,0 +1,28 @@ +/* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.wifi.supplicant; +@VintfStability +parcelable IVendorIfaceInfo { + vendor.qti.hardware.wifi.supplicant.IVendorIfaceType type; + String name; +} diff --git a/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/IVendorIfaceType.aidl b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/IVendorIfaceType.aidl new file mode 100644 index 0000000..1b5bf91 --- /dev/null +++ b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/IVendorIfaceType.aidl @@ -0,0 +1,27 @@ +/* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.wifi.supplicant; +@Backing(type="int") @VintfStability +enum IVendorIfaceType { + STA = 0, +} diff --git a/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/SupplicantVendorStatusCode.aidl b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/SupplicantVendorStatusCode.aidl new file mode 100644 index 0000000..6ddcf4d --- /dev/null +++ b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/1/vendor/qti/hardware/wifi/supplicant/SupplicantVendorStatusCode.aidl @@ -0,0 +1,31 @@ +/* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.wifi.supplicant; +@VintfStability +enum SupplicantVendorStatusCode { + SUCCESS = 0, + FAILURE_UNKNOWN = 1, + FAILURE_ARGS_INVALID = 2, + FAILURE_IFACE_INVALID = 3, + FAILURE_UNSUPPORTED = 4, +} diff --git a/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/ISupplicantVendor.aidl b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/ISupplicantVendor.aidl new file mode 100644 index 0000000..bf1dd5e --- /dev/null +++ b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/ISupplicantVendor.aidl @@ -0,0 +1,28 @@ +/* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.wifi.supplicant; +@VintfStability +interface ISupplicantVendor { + vendor.qti.hardware.wifi.supplicant.ISupplicantVendorStaIface getVendorInterface(in vendor.qti.hardware.wifi.supplicant.IVendorIfaceInfo ifaceInfo); + vendor.qti.hardware.wifi.supplicant.IVendorIfaceInfo[] listVendorInterfaces(); +} diff --git a/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/ISupplicantVendorStaIface.aidl b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/ISupplicantVendorStaIface.aidl new file mode 100644 index 0000000..31e1ac4 --- /dev/null +++ b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/ISupplicantVendorStaIface.aidl @@ -0,0 +1,27 @@ +/* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.wifi.supplicant; +@VintfStability +interface ISupplicantVendorStaIface { + String doDriverCmd(in String command); +} diff --git a/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/IVendorIfaceInfo.aidl b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/IVendorIfaceInfo.aidl new file mode 100644 index 0000000..3b5d712 --- /dev/null +++ b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/IVendorIfaceInfo.aidl @@ -0,0 +1,28 @@ +/* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.wifi.supplicant; +@VintfStability +parcelable IVendorIfaceInfo { + vendor.qti.hardware.wifi.supplicant.IVendorIfaceType type; + String name; +} diff --git a/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/IVendorIfaceType.aidl b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/IVendorIfaceType.aidl new file mode 100644 index 0000000..1b5bf91 --- /dev/null +++ b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/IVendorIfaceType.aidl @@ -0,0 +1,27 @@ +/* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.wifi.supplicant; +@Backing(type="int") @VintfStability +enum IVendorIfaceType { + STA = 0, +} diff --git a/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/SupplicantVendorStatusCode.aidl b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/SupplicantVendorStatusCode.aidl new file mode 100644 index 0000000..6ddcf4d --- /dev/null +++ b/wifi/supplicant/aidl/aidl_api/vendor.qti.hardware.wifi.supplicant/current/vendor/qti/hardware/wifi/supplicant/SupplicantVendorStatusCode.aidl @@ -0,0 +1,31 @@ +/* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.wifi.supplicant; +@VintfStability +enum SupplicantVendorStatusCode { + SUCCESS = 0, + FAILURE_UNKNOWN = 1, + FAILURE_ARGS_INVALID = 2, + FAILURE_IFACE_INVALID = 3, + FAILURE_UNSUPPORTED = 4, +} diff --git a/wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/ISupplicantVendor.aidl b/wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/ISupplicantVendor.aidl new file mode 100644 index 0000000..a411541 --- /dev/null +++ b/wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/ISupplicantVendor.aidl @@ -0,0 +1,42 @@ +/* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ + +package vendor.qti.hardware.wifi.supplicant; +import vendor.qti.hardware.wifi.supplicant.IVendorIfaceInfo; +import vendor.qti.hardware.wifi.supplicant.ISupplicantVendorStaIface; + +/** + * Interface exposed by the supplicant vendor AIDL service registered + * with the service manager. This is the root level object for + * any of the vendor supplicant interactions. + */ +@VintfStability +interface ISupplicantVendor { + /** + * Gets a AIDL interface object for the interface corresponding to iface + * name which the supplicant already controls. + * + * @param ifaceInfo Combination of the iface type and name retrieved + * using |listVendorInterfaces|. + * @return iface AIDL sta interface object representing the interface if + * successful, null otherwise. + * @throws ServiceSpecificException with one of the following values: + * |SupplicantVendorStatusCode.FAILURE_UNKNOWN| + */ + ISupplicantVendorStaIface getVendorInterface(in IVendorIfaceInfo ifaceInfo); + + /** + * Retrieve a list of all the vendor interfaces controlled by the supplicant. + * + * The corresponding |ISupplicantStaIface| object for any interface can be + * retrieved using |getVendorInterface| method. + * + * @return ifaces List of all interfaces controlled by the supplicant. + * @throws ServiceSpecificException with one of the following values: + * |SupplicantVendorStatusCode.FAILURE_UNKNOWN| + */ + IVendorIfaceInfo[] listVendorInterfaces(); +} + diff --git a/wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/ISupplicantVendorStaIface.aidl b/wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/ISupplicantVendorStaIface.aidl new file mode 100644 index 0000000..7bf820b --- /dev/null +++ b/wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/ISupplicantVendorStaIface.aidl @@ -0,0 +1,22 @@ +/* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ + +package vendor.qti.hardware.wifi.supplicant; + +/** + * Vendor StaIface Interface + */ +@VintfStability +interface ISupplicantVendorStaIface { + /** + * run Driver Commands + * + * @param command Driver Command + * @return status supplicant status/reply for driver command + * @throws ServiceSpecificException with one of the following values: + * |SupplicantVendorStatusCode.FAILURE_UNKNOWN| + */ + String doDriverCmd(in String command); +} diff --git a/wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/IVendorIfaceInfo.aidl b/wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/IVendorIfaceInfo.aidl new file mode 100644 index 0000000..53f0c57 --- /dev/null +++ b/wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/IVendorIfaceInfo.aidl @@ -0,0 +1,23 @@ +/* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ + +package vendor.qti.hardware.wifi.supplicant; +import vendor.qti.hardware.wifi.supplicant.IVendorIfaceType; + +/** + * Structure describing the type and name of an vendor iface + * controlled by the supplicant. + */ +@VintfStability +parcelable IVendorIfaceInfo { + /** + * Type of the interface. + */ + IVendorIfaceType type; + /** + * Name of the interface, e.g., wlan0 + */ + String name; +} diff --git a/wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/IVendorIfaceType.aidl b/wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/IVendorIfaceType.aidl new file mode 100644 index 0000000..a15b597 --- /dev/null +++ b/wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/IVendorIfaceType.aidl @@ -0,0 +1,15 @@ +/* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ + +package vendor.qti.hardware.wifi.supplicant; + +/** + * List of IVendorIface types supported. + */ +@VintfStability +@Backing(type="int") +enum IVendorIfaceType { + STA, +} diff --git a/wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/SupplicantVendorStatusCode.aidl b/wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/SupplicantVendorStatusCode.aidl new file mode 100644 index 0000000..394e668 --- /dev/null +++ b/wifi/supplicant/aidl/vendor/qti/hardware/wifi/supplicant/SupplicantVendorStatusCode.aidl @@ -0,0 +1,30 @@ +/* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ + +package vendor.qti.hardware.wifi.supplicant; + +/** + * Enum values indicating the status of any supplicant operation. + */ +@VintfStability +enum SupplicantVendorStatusCode { + /** + * No errors. + */ + SUCCESS, + /** + * Unknown failure occurred. + */ + FAILURE_UNKNOWN, + /** + * One of the incoming args is invalid. + */ + FAILURE_ARGS_INVALID, + /** + * |ISupplicantVendorStaIface| AIDL interface object is no longer valid. + */ + FAILURE_IFACE_INVALID, + FAILURE_UNSUPPORTED, +} From b082aff7ee8831526b75a25f9ec74da775b17d44 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Date: Tue, 22 Sep 2020 14:36:04 +0530 Subject: [PATCH 3/6] display: Add fsc order format support in display HAL Change-Id: Iba9f030140edabac2ace32e9fbe0871622bc2ae3 --- display/config/1.17/IDisplayConfig.hal | 54 ++++++++++++++++++++++++++ display/current.txt | 1 + 2 files changed, 55 insertions(+) create mode 100644 display/config/1.17/IDisplayConfig.hal diff --git a/display/config/1.17/IDisplayConfig.hal b/display/config/1.17/IDisplayConfig.hal new file mode 100644 index 0000000..861a57f --- /dev/null +++ b/display/config/1.17/IDisplayConfig.hal @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2021 The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package vendor.display.config@1.17; + +import @1.16::IDisplayConfig; +import @1.0::IDisplayConfig; + +interface IDisplayConfig extends @1.16::IDisplayConfig { + enum RGBOrder : int32_t { + FSC_UNKNOWN = 0, + FSC_RGB = 1, + FSC_RBG = 2, + FSC_BGR = 3, + FSC_BRG = 4, + FSC_GBR = 5, + FSC_GRB = 6, + }; + + /* + * getFSCRGBOrder on client start + * + * @return error is NONE upon success. + */ + @callflow(next="*") + getFSCRGBOrder(DisplayType dpy) generates (int32_t error, + RGBOrder fsc_rgb_color_order); +}; diff --git a/display/current.txt b/display/current.txt index 221f759..512f5ab 100644 --- a/display/current.txt +++ b/display/current.txt @@ -65,6 +65,7 @@ be4de6eea1098375e80d26bd86d0e239a3d739ec7dfa43b1b2fa5e6f75c86966 vendor.display. 5862c0c085c9e0b6d8b8a11e4a9765a6a9250874d7c1a9b0f6b566598da31593 vendor.display.config@2.0::IDisplayConfig 14fcf170f04a9878bf085b2aa4d75ef5e3d241926bef18e58d6d254e000ff689 vendor.display.config@2.0::IDisplayConfigCallback ada1c82f1ba85c9f403c4b91d24ebc6dfc2e796a7727bcca23f4e2ea68800f35 vendor.display.config@1.16::IDisplayConfig +f0e4b206e3357cff0399f4a696dd57bb385d68d2c13865ea7bb5180eca06cd61 vendor.display.config@1.17::IDisplayConfig #HAL released in Android R 7f8c47a47524e1ac21646578c7545fffdc08cec60df37d28ce8796b6461ef0c2 vendor.qti.hardware.display.composer@3.0::IQtiComposer From 3a0d6053dc13b4e4b2d63b059db0ceeff41b61f9 Mon Sep 17 00:00:00 2001 From: Prashant Beniwal Date: Tue, 19 Oct 2021 16:00:09 +0530 Subject: [PATCH 4/6] display: Add support to enable CAC in display HAL Change-Id: I48e958c5dd864dc82bde0406d5709c64ea30cab5 --- display/config/1.18/IDisplayConfig.hal | 50 ++++++++++++++++++++++++++ display/current.txt | 1 + 2 files changed, 51 insertions(+) create mode 100644 display/config/1.18/IDisplayConfig.hal diff --git a/display/config/1.18/IDisplayConfig.hal b/display/config/1.18/IDisplayConfig.hal new file mode 100644 index 0000000..48f63c9 --- /dev/null +++ b/display/config/1.18/IDisplayConfig.hal @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted (subject to the limitations in the + * disclaimer below) provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * + * * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE + * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT + * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER + * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package vendor.display.config@1.18; + +import @1.17::IDisplayConfig; +import @1.0::IDisplayConfig; + +interface IDisplayConfig extends @1.17::IDisplayConfig { + + /* + * enableCAC on client start + * + * @return error is NONE upon success. + */ + @callflow(next="*") + enableCAC(uint32_t disp_id, bool enable, float red, float green, float blue) + generates (int32_t error); +}; diff --git a/display/current.txt b/display/current.txt index 512f5ab..496e8a1 100644 --- a/display/current.txt +++ b/display/current.txt @@ -66,6 +66,7 @@ be4de6eea1098375e80d26bd86d0e239a3d739ec7dfa43b1b2fa5e6f75c86966 vendor.display. 14fcf170f04a9878bf085b2aa4d75ef5e3d241926bef18e58d6d254e000ff689 vendor.display.config@2.0::IDisplayConfigCallback ada1c82f1ba85c9f403c4b91d24ebc6dfc2e796a7727bcca23f4e2ea68800f35 vendor.display.config@1.16::IDisplayConfig f0e4b206e3357cff0399f4a696dd57bb385d68d2c13865ea7bb5180eca06cd61 vendor.display.config@1.17::IDisplayConfig +9c7bd67f95c98f95c0c97a80e7ab1d79cbe298a42cb6bcd2e915f749c30552b6 vendor.display.config@1.18::IDisplayConfig #HAL released in Android R 7f8c47a47524e1ac21646578c7545fffdc08cec60df37d28ce8796b6461ef0c2 vendor.qti.hardware.display.composer@3.0::IQtiComposer From 1602a9cbf1be3c9d4a5acbf4094eab57e2c7e332 Mon Sep 17 00:00:00 2001 From: Prashant Beniwal Date: Sun, 20 Mar 2022 21:13:26 +0530 Subject: [PATCH 5/6] display: Support CAC src dest rects to configure IPD Support per-color-layer CAC src dest rects to enable IPD (Inter Pupillary Distance) configuration. Change-Id: I271034471053c8c4e6b46c6e84cec51ea58ca1ba --- display/config/1.19/IDisplayConfig.hal | 70 ++++++++++++++++++++++++++ display/current.txt | 1 + 2 files changed, 71 insertions(+) create mode 100644 display/config/1.19/IDisplayConfig.hal diff --git a/display/config/1.19/IDisplayConfig.hal b/display/config/1.19/IDisplayConfig.hal new file mode 100644 index 0000000..f933192 --- /dev/null +++ b/display/config/1.19/IDisplayConfig.hal @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted (subject to the limitations in the + * disclaimer below) provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * + * * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE + * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT + * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER + * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package vendor.display.config@1.19; + +import @1.18::IDisplayConfig; +import @1.0::IDisplayConfig; + +interface IDisplayConfig extends @1.18::IDisplayConfig { + struct CacChannelRect { + float left; + float top; + float right; + float bottom; + }; + + struct CacEyeConfig { + CacChannelRect red_channel_src; + CacChannelRect red_channel_dst; + CacChannelRect green_channel_src; + CacChannelRect green_channel_dst; + CacChannelRect blue_channel_src; + CacChannelRect blue_channel_dst; + }; + + /* + * Sets the src and dst rect parameters of red, green and blue channels of CAC for both left + * and right eye. + * + * @param disp_id display id. + * @param left specifies the src and dst rect for each channel of CAC for left eye. + * @param right specifies the src and dst rect for each channel of CAC for right eye. + * + * @return error is NONE upon success. + */ + @callflow(next="*") + setCacEyeConfig(uint32_t disp_id, CacEyeConfig left, CacEyeConfig right) + generates (int32_t error); +}; diff --git a/display/current.txt b/display/current.txt index 496e8a1..c668dc9 100644 --- a/display/current.txt +++ b/display/current.txt @@ -67,6 +67,7 @@ be4de6eea1098375e80d26bd86d0e239a3d739ec7dfa43b1b2fa5e6f75c86966 vendor.display. ada1c82f1ba85c9f403c4b91d24ebc6dfc2e796a7727bcca23f4e2ea68800f35 vendor.display.config@1.16::IDisplayConfig f0e4b206e3357cff0399f4a696dd57bb385d68d2c13865ea7bb5180eca06cd61 vendor.display.config@1.17::IDisplayConfig 9c7bd67f95c98f95c0c97a80e7ab1d79cbe298a42cb6bcd2e915f749c30552b6 vendor.display.config@1.18::IDisplayConfig +cbc4f4bf866904bb4b57d32efff12666c60d2cf8306ffb7ceb81c45fca65a23e vendor.display.config@1.19::IDisplayConfig #HAL released in Android R 7f8c47a47524e1ac21646578c7545fffdc08cec60df37d28ce8796b6461ef0c2 vendor.qti.hardware.display.composer@3.0::IQtiComposer From 09d8664fa2f4c51e87afc53f5cb01ddbf7130ab1 Mon Sep 17 00:00:00 2001 From: Prashant Beniwal Date: Wed, 27 Apr 2022 11:15:49 +0530 Subject: [PATCH 6/6] display: Add support to skew_vsync Change adds support to set skew_vsync connector property value. Change-Id: I5dc5ade79ccc2a83ced2e6f0801340d6e707763a --- display/config/1.20/IDisplayConfig.hal | 51 ++++++++++++++++++++++++++ display/current.txt | 35 ++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 display/config/1.20/IDisplayConfig.hal diff --git a/display/config/1.20/IDisplayConfig.hal b/display/config/1.20/IDisplayConfig.hal new file mode 100644 index 0000000..2a5f464 --- /dev/null +++ b/display/config/1.20/IDisplayConfig.hal @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted (subject to the limitations in the + * disclaimer below) provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * + * * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE + * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT + * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER + * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package vendor.display.config@1.20; + +import @1.19::IDisplayConfig; +import @1.0::IDisplayConfig; + +interface IDisplayConfig extends @1.19::IDisplayConfig { + /* + * setSkewVsync on client start + * + * @param disp_id display id. + * @param skew_vsync_val skew-vsync value. + * + * @return error is NONE upon success. + */ + @callflow(next="*") + setSkewVsync(uint32_t disp_id, uint32_t skew_vsync_val) generates (int32_t error); +}; diff --git a/display/current.txt b/display/current.txt index c668dc9..4115e18 100644 --- a/display/current.txt +++ b/display/current.txt @@ -25,6 +25,40 @@ #OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN #IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#Changes from Qualcomm Innovation Center are provided under the following license: + +#Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + +#Redistribution and use in source and binary forms, with or without +#modification, are permitted (subject to the limitations in the +#disclaimer below) provided that the following conditions are met: + +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. + +# * Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following +# disclaimer in the documentation and/or other materials provided +# with the distribution. + +# * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. + +#NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +#GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +#HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +#WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +#MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +#IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +#ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +#DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +#GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +#INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +#IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +#OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +#IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE + #HAL released in Android O 0f53273ad37cc730b1fb4ea953fa0697ec0cc529b5b5a0a960aa5b276cea8143 vendor.display.config@1.0::IDisplayConfig @@ -68,6 +102,7 @@ ada1c82f1ba85c9f403c4b91d24ebc6dfc2e796a7727bcca23f4e2ea68800f35 vendor.display. f0e4b206e3357cff0399f4a696dd57bb385d68d2c13865ea7bb5180eca06cd61 vendor.display.config@1.17::IDisplayConfig 9c7bd67f95c98f95c0c97a80e7ab1d79cbe298a42cb6bcd2e915f749c30552b6 vendor.display.config@1.18::IDisplayConfig cbc4f4bf866904bb4b57d32efff12666c60d2cf8306ffb7ceb81c45fca65a23e vendor.display.config@1.19::IDisplayConfig +294d1a6f3e517fd676c320995db12fcdd895e7588d9f28449f126d0bc3be3408 vendor.display.config@1.20::IDisplayConfig #HAL released in Android R 7f8c47a47524e1ac21646578c7545fffdc08cec60df37d28ce8796b6461ef0c2 vendor.qti.hardware.display.composer@3.0::IQtiComposer