replace common qcom sources with samsung ones

This commit is contained in:
SaschaNes
2025-08-12 22:13:00 +02:00
parent ba24dcded9
commit 6f7753de11
5682 changed files with 2450203 additions and 103634 deletions

View File

@@ -0,0 +1,37 @@
prebuilt_hidl_interfaces {
name: "hidl_audio_agm_pal_interfaces",
interfaces: [
"vendor.qti.hardware.AGMIPC@1.0::IAGM",
"vendor.qti.hardware.pal@1.0::IPAL",
],
}
aidl_interface {
name: "vendor.qti.hardware.paleventnotifier",
srcs: ["vendor/qti/hardware/paleventnotifier/*.aidl"],
vendor: true,
stability: "vintf",
imports: [
"android.hardware.common-V2",
],
backend: {
cpp: {
enabled: false,
},
java: {
sdk_version: "module_current",
},
ndk: {
enabled: true,
},
},
owner: "qti",
frozen: true,
versions_with_info: [
{
version: "1",
imports: ["android.hardware.common-V2"],
},
],
}

View File

@@ -0,0 +1 @@
include $(call all-subdir-makefiles)

View File

@@ -0,0 +1,30 @@
# Copyright (c) 2020, 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.
39b7ce561257438aec03c282e3c4f93ed7bcc9d6ba46b0f6389fe46eb391e1f4 vendor.qti.hardware.AGMIPC@1.0::types
3a1b66b36548e0bd981576253961d66d922ab3b5cc8bfc5404d576dec9c42564 vendor.qti.hardware.AGMIPC@1.0::IAGM
ecef4c3bfa0e08d5e1f44a4bb0a449ffd1be283751deebad724b325e8e46c79e vendor.qti.hardware.AGMIPC@1.0::IAGMCallback

View File

@@ -0,0 +1 @@
32411223bd2f598ecc48cf09141845ae01ab8230

View File

@@ -0,0 +1,27 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@VintfStability
interface IPALEventNotifier {
int ipc_pal_notify_register_callback(in vendor.qti.hardware.paleventnotifier.IPALEventNotifierCallback callback);
}

View File

@@ -0,0 +1,29 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@VintfStability
interface IPALEventNotifierCallback {
oneway void onStart(in vendor.qti.hardware.paleventnotifier.PalCallbackConfig Config);
oneway void onStop(in vendor.qti.hardware.paleventnotifier.PalCallbackConfig Config);
oneway void onDeviceSwitch(in vendor.qti.hardware.paleventnotifier.PalCallbackConfig Config);
}

View File

@@ -0,0 +1,56 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@Backing(type="int") @VintfStability
enum PalAudioFmt {
PAL_AUDIO_FMT_DEFAULT_PCM = 0x1,
PAL_AUDIO_FMT_PCM_S16_LE = PAL_AUDIO_FMT_DEFAULT_PCM /* 1 */,
PAL_AUDIO_FMT_DEFAULT_COMPRESSED = 0x2,
PAL_AUDIO_FMT_MP3 = PAL_AUDIO_FMT_DEFAULT_COMPRESSED /* 2 */,
PAL_AUDIO_FMT_AAC = 0x3,
PAL_AUDIO_FMT_AAC_ADTS = 0x4,
PAL_AUDIO_FMT_AAC_ADIF = 0x5,
PAL_AUDIO_FMT_AAC_LATM = 0x6,
PAL_AUDIO_FMT_WMA_STD = 0x7,
PAL_AUDIO_FMT_ALAC = 0x8,
PAL_AUDIO_FMT_APE = 0x9,
PAL_AUDIO_FMT_WMA_PRO = 0xA,
PAL_AUDIO_FMT_FLAC = 0xB,
PAL_AUDIO_FMT_FLAC_OGG = 0xC,
PAL_AUDIO_FMT_VORBIS = 0xD,
PAL_AUDIO_FMT_AMR_NB = 0xE,
PAL_AUDIO_FMT_AMR_WB = 0xF,
PAL_AUDIO_FMT_AMR_WB_PLUS = 0x10,
PAL_AUDIO_FMT_EVRC = 0x11,
PAL_AUDIO_FMT_G711 = 0x12,
PAL_AUDIO_FMT_QCELP = 0x13,
PAL_AUDIO_FMT_PCM_S8 = 0x14,
PAL_AUDIO_FMT_PCM_S24_3LE = 0x15,
PAL_AUDIO_FMT_PCM_S24_LE = 0x16,
PAL_AUDIO_FMT_PCM_S32_LE = 0x17,
PAL_AUDIO_FMT_OPUS = 0x18,
PAL_AUDIO_FMT_COMPRESSED_RANGE_BEGIN = 0xF0000000,
PAL_AUDIO_FMT_COMPRESSED_EXTENDED_RANGE_BEGIN = 0xF0000F00,
PAL_AUDIO_FMT_COMPRESSED_EXTENDED_RANGE_END = 0xF0000FFF,
PAL_AUDIO_FMT_COMPRESSED_RANGE_END = PAL_AUDIO_FMT_COMPRESSED_EXTENDED_RANGE_END /* -268431361 */,
}

View File

@@ -0,0 +1,31 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@VintfStability
parcelable PalCallbackConfig {
int noOfPrevDevices;
int noOfCurrentDevices;
vendor.qti.hardware.paleventnotifier.PalDeviceId[] prevDevices;
vendor.qti.hardware.paleventnotifier.PalDeviceId[] currentDevices;
vendor.qti.hardware.paleventnotifier.PalStreamAttributes streamAttributes;
}

View File

@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@VintfStability
parcelable PalChannelInfo {
char channels;
byte[64] chMap;
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@Backing(type="int") @VintfStability
enum PalDeviceId {
PAL_DEVICE_OUT_MIN = 0,
PAL_DEVICE_NONE = 1,
PAL_DEVICE_OUT_HANDSET = 2,
PAL_DEVICE_OUT_SPEAKER = 3,
PAL_DEVICE_OUT_WIRED_HEADSET = 4,
PAL_DEVICE_OUT_WIRED_HEADPHONE = 5,
PAL_DEVICE_OUT_LINE = 6,
PAL_DEVICE_OUT_BLUETOOTH_SCO = 7,
PAL_DEVICE_OUT_BLUETOOTH_A2DP = 8,
PAL_DEVICE_OUT_AUX_DIGITAL = 9,
PAL_DEVICE_OUT_HDMI = 10,
PAL_DEVICE_OUT_USB_DEVICE = 11,
PAL_DEVICE_OUT_USB_HEADSET = 12,
PAL_DEVICE_OUT_SPDIF = 13,
PAL_DEVICE_OUT_FM = 14,
PAL_DEVICE_OUT_AUX_LINE = 15,
PAL_DEVICE_OUT_PROXY = 16,
PAL_DEVICE_OUT_AUX_DIGITAL_1 = 17,
PAL_DEVICE_OUT_HEARING_AID = 18,
PAL_DEVICE_OUT_HAPTICS_DEVICE = 19,
PAL_DEVICE_OUT_ULTRASOUND = 20,
PAL_DEVICE_OUT_ULTRASOUND_DEDICATED = 21,
PAL_DEVICE_OUT_BLUETOOTH_BLE = 22,
PAL_DEVICE_OUT_BLUETOOTH_BLE_BROADCAST = 23,
PAL_DEVICE_OUT_DUMMY = 24,
PAL_DEVICE_OUT_RECORD_PROXY = 25,
PAL_DEVICE_OUT_MAX = 26,
PAL_DEVICE_IN_MIN = PAL_DEVICE_OUT_MAX /* 26 */,
PAL_DEVICE_IN_HANDSET_MIC = (PAL_DEVICE_IN_MIN + 1) /* 27 */,
PAL_DEVICE_IN_SPEAKER_MIC = (PAL_DEVICE_IN_MIN + 2) /* 28 */,
PAL_DEVICE_IN_BLUETOOTH_SCO_HEADSET = (PAL_DEVICE_IN_MIN + 3) /* 29 */,
PAL_DEVICE_IN_WIRED_HEADSET = (PAL_DEVICE_IN_MIN + 4) /* 30 */,
PAL_DEVICE_IN_AUX_DIGITAL = (PAL_DEVICE_IN_MIN + 5) /* 31 */,
PAL_DEVICE_IN_HDMI = (PAL_DEVICE_IN_MIN + 6) /* 32 */,
PAL_DEVICE_IN_USB_ACCESSORY = (PAL_DEVICE_IN_MIN + 7) /* 33 */,
PAL_DEVICE_IN_USB_DEVICE = (PAL_DEVICE_IN_MIN + 8) /* 34 */,
PAL_DEVICE_IN_USB_HEADSET = (PAL_DEVICE_IN_MIN + 9) /* 35 */,
PAL_DEVICE_IN_FM_TUNER = (PAL_DEVICE_IN_MIN + 10) /* 36 */,
PAL_DEVICE_IN_LINE = (PAL_DEVICE_IN_MIN + 11) /* 37 */,
PAL_DEVICE_IN_SPDIF = (PAL_DEVICE_IN_MIN + 12) /* 38 */,
PAL_DEVICE_IN_PROXY = (PAL_DEVICE_IN_MIN + 13) /* 39 */,
PAL_DEVICE_IN_HANDSET_VA_MIC = (PAL_DEVICE_IN_MIN + 14) /* 40 */,
PAL_DEVICE_IN_BLUETOOTH_A2DP = (PAL_DEVICE_IN_MIN + 15) /* 41 */,
PAL_DEVICE_IN_HEADSET_VA_MIC = (PAL_DEVICE_IN_MIN + 16) /* 42 */,
PAL_DEVICE_IN_VI_FEEDBACK = (PAL_DEVICE_IN_MIN + 17) /* 43 */,
PAL_DEVICE_IN_TELEPHONY_RX = (PAL_DEVICE_IN_MIN + 18) /* 44 */,
PAL_DEVICE_IN_ULTRASOUND_MIC = (PAL_DEVICE_IN_MIN + 19) /* 45 */,
PAL_DEVICE_IN_EXT_EC_REF = (PAL_DEVICE_IN_MIN + 20) /* 46 */,
PAL_DEVICE_IN_ECHO_REF = (PAL_DEVICE_IN_MIN + 21) /* 47 */,
PAL_DEVICE_IN_HAPTICS_VI_FEEDBACK = (PAL_DEVICE_IN_MIN + 22) /* 48 */,
PAL_DEVICE_IN_BLUETOOTH_BLE = (PAL_DEVICE_IN_MIN + 23) /* 49 */,
PAL_DEVICE_IN_CPS_FEEDBACK = (PAL_DEVICE_IN_MIN + 24) /* 50 */,
PAL_DEVICE_IN_DUMMY = (PAL_DEVICE_IN_MIN + 25) /* 51 */,
PAL_DEVICE_IN_CPS2_FEEDBACK = (PAL_DEVICE_IN_MIN + 26) /* 52 */,
PAL_DEVICE_IN_RECORD_PROXY = (PAL_DEVICE_IN_MIN + 27) /* 53 */,
PAL_DEVICE_IN_MAX = (PAL_DEVICE_IN_MIN + 28) /* 54 */,
}

View File

@@ -0,0 +1,30 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@VintfStability
parcelable PalMediaConfig {
int sampleRate;
int bitwidth;
vendor.qti.hardware.paleventnotifier.PalChannelInfo chInfo;
vendor.qti.hardware.paleventnotifier.PalAudioFmt audioFormatId;
}

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@VintfStability
parcelable PalStreamAttributes {
vendor.qti.hardware.paleventnotifier.PalStreamType type;
vendor.qti.hardware.paleventnotifier.PalStreamInfo info;
vendor.qti.hardware.paleventnotifier.PalStreamFlag flags;
vendor.qti.hardware.paleventnotifier.PalStreamDirection direction;
vendor.qti.hardware.paleventnotifier.PalMediaConfig inMediaConfig;
vendor.qti.hardware.paleventnotifier.PalMediaConfig outMediaConfig;
}

View File

@@ -0,0 +1,30 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@Backing(type="int") @VintfStability
enum PalStreamDirection {
PAL_AUDIO_OUTPUT = 0x1,
PAL_AUDIO_INPUT = 0x2,
PAL_AUDIO_INPUT_OUTPUT = 0x3,
PAL_AUDIO_INVALID = 0x4,
}

View File

@@ -0,0 +1,33 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@Backing(type="int") @VintfStability
enum PalStreamFlag {
PAL_STREAM_FLAG_TIMESTAMP = 0x1,
PAL_STREAM_FLAG_NON_BLOCKING = 0x2,
PAL_STREAM_FLAG_MMAP = 0x4,
PAL_STREAM_FLAG_MMAP_NO_IRQ = 0x8,
PAL_STREAM_FLAG_EXTERN_MEM = 0x10,
PAL_STREAM_FLAG_SRCM_INBAND = 0x20,
PAL_STREAM_FLAG_INVALID,
}

View File

@@ -0,0 +1,35 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@VintfStability
parcelable PalStreamInfo {
long version;
long size;
long durationUs;
boolean hasVideo;
int txProxyType;
int rxProxyType;
boolean isStreaming;
int loopbackType;
int hapticsType;
}

View File

@@ -0,0 +1,53 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@Backing(type="int") @VintfStability
enum PalStreamType {
PAL_STREAM_LOW_LATENCY = 1,
PAL_STREAM_DEEP_BUFFER = 2,
PAL_STREAM_COMPRESSED = 3,
PAL_STREAM_VOIP = 4,
PAL_STREAM_VOIP_RX = 5,
PAL_STREAM_VOIP_TX = 6,
PAL_STREAM_VOICE_CALL_MUSIC = 7,
PAL_STREAM_GENERIC = 8,
PAL_STREAM_RAW = 9,
PAL_STREAM_VOICE_RECOGNITION = 10,
PAL_STREAM_VOICE_CALL_RECORD = 11,
PAL_STREAM_VOICE_CALL_TX = 12,
PAL_STREAM_VOICE_CALL_RX_TX = 13,
PAL_STREAM_VOICE_CALL = 14,
PAL_STREAM_LOOPBACK = 15,
PAL_STREAM_TRANSCODE = 16,
PAL_STREAM_VOICE_UI = 17,
PAL_STREAM_PCM_OFFLOAD = 18,
PAL_STREAM_ULTRA_LOW_LATENCY = 19,
PAL_STREAM_PROXY = 20,
PAL_STREAM_NON_TUNNEL = 21,
PAL_STREAM_HAPTICS = 22,
PAL_STREAM_ACD = 23,
PAL_STREAM_CONTEXT_PROXY = 24,
PAL_STREAM_SENSOR_PCM_DATA = 25,
PAL_STREAM_ULTRASOUND = 26,
PAL_STREAM_SPATIAL_AUDIO = 27,
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@Backing(type="int") @VintfStability
enum Status {
UNKNOWN = (-1) /* -1 */,
SUCCESS = 0,
IO_ERROR,
BUSY,
NO_SPACE,
INVALID_FD,
ADVERTISE_ERROR,
PROTOCOL_NOT_AVAILABLE,
NOT_SUPPORTED,
DOWN_WITH_SSR,
NOW_INPROGRESS,
ALREADY_INPROGRESS,
CANCELLED,
NOT_RECOVERABLE,
}

View File

@@ -0,0 +1,27 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@VintfStability
interface IPALEventNotifier {
int ipc_pal_notify_register_callback(in vendor.qti.hardware.paleventnotifier.IPALEventNotifierCallback callback);
}

View File

@@ -0,0 +1,29 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@VintfStability
interface IPALEventNotifierCallback {
oneway void onStart(in vendor.qti.hardware.paleventnotifier.PalCallbackConfig Config);
oneway void onStop(in vendor.qti.hardware.paleventnotifier.PalCallbackConfig Config);
oneway void onDeviceSwitch(in vendor.qti.hardware.paleventnotifier.PalCallbackConfig Config);
}

View File

@@ -0,0 +1,56 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@Backing(type="int") @VintfStability
enum PalAudioFmt {
PAL_AUDIO_FMT_DEFAULT_PCM = 0x1,
PAL_AUDIO_FMT_PCM_S16_LE = PAL_AUDIO_FMT_DEFAULT_PCM /* 1 */,
PAL_AUDIO_FMT_DEFAULT_COMPRESSED = 0x2,
PAL_AUDIO_FMT_MP3 = PAL_AUDIO_FMT_DEFAULT_COMPRESSED /* 2 */,
PAL_AUDIO_FMT_AAC = 0x3,
PAL_AUDIO_FMT_AAC_ADTS = 0x4,
PAL_AUDIO_FMT_AAC_ADIF = 0x5,
PAL_AUDIO_FMT_AAC_LATM = 0x6,
PAL_AUDIO_FMT_WMA_STD = 0x7,
PAL_AUDIO_FMT_ALAC = 0x8,
PAL_AUDIO_FMT_APE = 0x9,
PAL_AUDIO_FMT_WMA_PRO = 0xA,
PAL_AUDIO_FMT_FLAC = 0xB,
PAL_AUDIO_FMT_FLAC_OGG = 0xC,
PAL_AUDIO_FMT_VORBIS = 0xD,
PAL_AUDIO_FMT_AMR_NB = 0xE,
PAL_AUDIO_FMT_AMR_WB = 0xF,
PAL_AUDIO_FMT_AMR_WB_PLUS = 0x10,
PAL_AUDIO_FMT_EVRC = 0x11,
PAL_AUDIO_FMT_G711 = 0x12,
PAL_AUDIO_FMT_QCELP = 0x13,
PAL_AUDIO_FMT_PCM_S8 = 0x14,
PAL_AUDIO_FMT_PCM_S24_3LE = 0x15,
PAL_AUDIO_FMT_PCM_S24_LE = 0x16,
PAL_AUDIO_FMT_PCM_S32_LE = 0x17,
PAL_AUDIO_FMT_OPUS = 0x18,
PAL_AUDIO_FMT_COMPRESSED_RANGE_BEGIN = 0xF0000000,
PAL_AUDIO_FMT_COMPRESSED_EXTENDED_RANGE_BEGIN = 0xF0000F00,
PAL_AUDIO_FMT_COMPRESSED_EXTENDED_RANGE_END = 0xF0000FFF,
PAL_AUDIO_FMT_COMPRESSED_RANGE_END = PAL_AUDIO_FMT_COMPRESSED_EXTENDED_RANGE_END /* -268431361 */,
}

View File

@@ -0,0 +1,31 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@VintfStability
parcelable PalCallbackConfig {
int noOfPrevDevices;
int noOfCurrentDevices;
vendor.qti.hardware.paleventnotifier.PalDeviceId[] prevDevices;
vendor.qti.hardware.paleventnotifier.PalDeviceId[] currentDevices;
vendor.qti.hardware.paleventnotifier.PalStreamAttributes streamAttributes;
}

View File

@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@VintfStability
parcelable PalChannelInfo {
char channels;
byte[64] chMap;
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@Backing(type="int") @VintfStability
enum PalDeviceId {
PAL_DEVICE_OUT_MIN = 0,
PAL_DEVICE_NONE = 1,
PAL_DEVICE_OUT_HANDSET = 2,
PAL_DEVICE_OUT_SPEAKER = 3,
PAL_DEVICE_OUT_WIRED_HEADSET = 4,
PAL_DEVICE_OUT_WIRED_HEADPHONE = 5,
PAL_DEVICE_OUT_LINE = 6,
PAL_DEVICE_OUT_BLUETOOTH_SCO = 7,
PAL_DEVICE_OUT_BLUETOOTH_A2DP = 8,
PAL_DEVICE_OUT_AUX_DIGITAL = 9,
PAL_DEVICE_OUT_HDMI = 10,
PAL_DEVICE_OUT_USB_DEVICE = 11,
PAL_DEVICE_OUT_USB_HEADSET = 12,
PAL_DEVICE_OUT_SPDIF = 13,
PAL_DEVICE_OUT_FM = 14,
PAL_DEVICE_OUT_AUX_LINE = 15,
PAL_DEVICE_OUT_PROXY = 16,
PAL_DEVICE_OUT_AUX_DIGITAL_1 = 17,
PAL_DEVICE_OUT_HEARING_AID = 18,
PAL_DEVICE_OUT_HAPTICS_DEVICE = 19,
PAL_DEVICE_OUT_ULTRASOUND = 20,
PAL_DEVICE_OUT_ULTRASOUND_DEDICATED = 21,
PAL_DEVICE_OUT_BLUETOOTH_BLE = 22,
PAL_DEVICE_OUT_BLUETOOTH_BLE_BROADCAST = 23,
PAL_DEVICE_OUT_DUMMY = 24,
PAL_DEVICE_OUT_RECORD_PROXY = 25,
PAL_DEVICE_OUT_MAX = 26,
PAL_DEVICE_IN_MIN = PAL_DEVICE_OUT_MAX /* 26 */,
PAL_DEVICE_IN_HANDSET_MIC = (PAL_DEVICE_IN_MIN + 1) /* 27 */,
PAL_DEVICE_IN_SPEAKER_MIC = (PAL_DEVICE_IN_MIN + 2) /* 28 */,
PAL_DEVICE_IN_BLUETOOTH_SCO_HEADSET = (PAL_DEVICE_IN_MIN + 3) /* 29 */,
PAL_DEVICE_IN_WIRED_HEADSET = (PAL_DEVICE_IN_MIN + 4) /* 30 */,
PAL_DEVICE_IN_AUX_DIGITAL = (PAL_DEVICE_IN_MIN + 5) /* 31 */,
PAL_DEVICE_IN_HDMI = (PAL_DEVICE_IN_MIN + 6) /* 32 */,
PAL_DEVICE_IN_USB_ACCESSORY = (PAL_DEVICE_IN_MIN + 7) /* 33 */,
PAL_DEVICE_IN_USB_DEVICE = (PAL_DEVICE_IN_MIN + 8) /* 34 */,
PAL_DEVICE_IN_USB_HEADSET = (PAL_DEVICE_IN_MIN + 9) /* 35 */,
PAL_DEVICE_IN_FM_TUNER = (PAL_DEVICE_IN_MIN + 10) /* 36 */,
PAL_DEVICE_IN_LINE = (PAL_DEVICE_IN_MIN + 11) /* 37 */,
PAL_DEVICE_IN_SPDIF = (PAL_DEVICE_IN_MIN + 12) /* 38 */,
PAL_DEVICE_IN_PROXY = (PAL_DEVICE_IN_MIN + 13) /* 39 */,
PAL_DEVICE_IN_HANDSET_VA_MIC = (PAL_DEVICE_IN_MIN + 14) /* 40 */,
PAL_DEVICE_IN_BLUETOOTH_A2DP = (PAL_DEVICE_IN_MIN + 15) /* 41 */,
PAL_DEVICE_IN_HEADSET_VA_MIC = (PAL_DEVICE_IN_MIN + 16) /* 42 */,
PAL_DEVICE_IN_VI_FEEDBACK = (PAL_DEVICE_IN_MIN + 17) /* 43 */,
PAL_DEVICE_IN_TELEPHONY_RX = (PAL_DEVICE_IN_MIN + 18) /* 44 */,
PAL_DEVICE_IN_ULTRASOUND_MIC = (PAL_DEVICE_IN_MIN + 19) /* 45 */,
PAL_DEVICE_IN_EXT_EC_REF = (PAL_DEVICE_IN_MIN + 20) /* 46 */,
PAL_DEVICE_IN_ECHO_REF = (PAL_DEVICE_IN_MIN + 21) /* 47 */,
PAL_DEVICE_IN_HAPTICS_VI_FEEDBACK = (PAL_DEVICE_IN_MIN + 22) /* 48 */,
PAL_DEVICE_IN_BLUETOOTH_BLE = (PAL_DEVICE_IN_MIN + 23) /* 49 */,
PAL_DEVICE_IN_CPS_FEEDBACK = (PAL_DEVICE_IN_MIN + 24) /* 50 */,
PAL_DEVICE_IN_DUMMY = (PAL_DEVICE_IN_MIN + 25) /* 51 */,
PAL_DEVICE_IN_CPS2_FEEDBACK = (PAL_DEVICE_IN_MIN + 26) /* 52 */,
PAL_DEVICE_IN_RECORD_PROXY = (PAL_DEVICE_IN_MIN + 27) /* 53 */,
PAL_DEVICE_IN_MAX = (PAL_DEVICE_IN_MIN + 28) /* 54 */,
}

View File

@@ -0,0 +1,30 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@VintfStability
parcelable PalMediaConfig {
int sampleRate;
int bitwidth;
vendor.qti.hardware.paleventnotifier.PalChannelInfo chInfo;
vendor.qti.hardware.paleventnotifier.PalAudioFmt audioFormatId;
}

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@VintfStability
parcelable PalStreamAttributes {
vendor.qti.hardware.paleventnotifier.PalStreamType type;
vendor.qti.hardware.paleventnotifier.PalStreamInfo info;
vendor.qti.hardware.paleventnotifier.PalStreamFlag flags;
vendor.qti.hardware.paleventnotifier.PalStreamDirection direction;
vendor.qti.hardware.paleventnotifier.PalMediaConfig inMediaConfig;
vendor.qti.hardware.paleventnotifier.PalMediaConfig outMediaConfig;
}

View File

@@ -0,0 +1,30 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@Backing(type="int") @VintfStability
enum PalStreamDirection {
PAL_AUDIO_OUTPUT = 0x1,
PAL_AUDIO_INPUT = 0x2,
PAL_AUDIO_INPUT_OUTPUT = 0x3,
PAL_AUDIO_INVALID = 0x4,
}

View File

@@ -0,0 +1,33 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@Backing(type="int") @VintfStability
enum PalStreamFlag {
PAL_STREAM_FLAG_TIMESTAMP = 0x1,
PAL_STREAM_FLAG_NON_BLOCKING = 0x2,
PAL_STREAM_FLAG_MMAP = 0x4,
PAL_STREAM_FLAG_MMAP_NO_IRQ = 0x8,
PAL_STREAM_FLAG_EXTERN_MEM = 0x10,
PAL_STREAM_FLAG_SRCM_INBAND = 0x20,
PAL_STREAM_FLAG_INVALID,
}

View File

@@ -0,0 +1,35 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@VintfStability
parcelable PalStreamInfo {
long version;
long size;
long durationUs;
boolean hasVideo;
int txProxyType;
int rxProxyType;
boolean isStreaming;
int loopbackType;
int hapticsType;
}

View File

@@ -0,0 +1,53 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@Backing(type="int") @VintfStability
enum PalStreamType {
PAL_STREAM_LOW_LATENCY = 1,
PAL_STREAM_DEEP_BUFFER = 2,
PAL_STREAM_COMPRESSED = 3,
PAL_STREAM_VOIP = 4,
PAL_STREAM_VOIP_RX = 5,
PAL_STREAM_VOIP_TX = 6,
PAL_STREAM_VOICE_CALL_MUSIC = 7,
PAL_STREAM_GENERIC = 8,
PAL_STREAM_RAW = 9,
PAL_STREAM_VOICE_RECOGNITION = 10,
PAL_STREAM_VOICE_CALL_RECORD = 11,
PAL_STREAM_VOICE_CALL_TX = 12,
PAL_STREAM_VOICE_CALL_RX_TX = 13,
PAL_STREAM_VOICE_CALL = 14,
PAL_STREAM_LOOPBACK = 15,
PAL_STREAM_TRANSCODE = 16,
PAL_STREAM_VOICE_UI = 17,
PAL_STREAM_PCM_OFFLOAD = 18,
PAL_STREAM_ULTRA_LOW_LATENCY = 19,
PAL_STREAM_PROXY = 20,
PAL_STREAM_NON_TUNNEL = 21,
PAL_STREAM_HAPTICS = 22,
PAL_STREAM_ACD = 23,
PAL_STREAM_CONTEXT_PROXY = 24,
PAL_STREAM_SENSOR_PCM_DATA = 25,
PAL_STREAM_ULTRASOUND = 26,
PAL_STREAM_SPATIAL_AUDIO = 27,
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright (c) 2024 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 <name>-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.paleventnotifier;
@Backing(type="int") @VintfStability
enum Status {
UNKNOWN = (-1) /* -1 */,
SUCCESS = 0,
IO_ERROR,
BUSY,
NO_SPACE,
INVALID_FD,
ADVERTISE_ERROR,
PROTOCOL_NOT_AVAILABLE,
NOT_SUPPORTED,
DOWN_WITH_SSR,
NOW_INPROGRESS,
ALREADY_INPROGRESS,
CANCELLED,
NOT_RECOVERABLE,
}

View File

@@ -0,0 +1,2 @@
6b0951f26301a69b992c4e32ffc2b138421364f0ec7ebc008aff730bf5c17cea vendor.qti.hardware.AMSIPC@1.0::types
c587d2afcdb5515ea90cb04e7756f3710a95497dd5a6dfaad14da9149566e0a2 vendor.qti.hardware.AMSIPC@1.0::IAMS

View File

@@ -0,0 +1,30 @@
# Copyright (c) 2020, 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.
8f6dbce99b3683c75e2deffd6cec20acdeb1b5d6cfe6067e28668b437366be1f vendor.qti.hardware.pal@1.0::types
0c0044fa5fe7fe10fcb1fdd37c2d794894e76167fcf44e5a1cc1a4cf97fbf784 vendor.qti.hardware.pal@1.0::IPAL
af350d9ab3a17fceee66276978a27c90e74fa21ab741c3b3030a021ec1111c9d vendor.qti.hardware.pal@1.0::IPALCallback

View File

@@ -0,0 +1,15 @@
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
package vendor.qti.hardware.paleventnotifier;
import vendor.qti.hardware.paleventnotifier.IPALEventNotifierCallback;
@VintfStability
interface IPALEventNotifier {
int ipc_pal_notify_register_callback(in IPALEventNotifierCallback callback);
}

View File

@@ -0,0 +1,15 @@
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
package vendor.qti.hardware.paleventnotifier;
import vendor.qti.hardware.paleventnotifier.PalCallbackConfig;
@VintfStability
interface IPALEventNotifierCallback {
oneway void onStart(in PalCallbackConfig Config);
oneway void onStop(in PalCallbackConfig Config);
oneway void onDeviceSwitch(in PalCallbackConfig Config);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
package vendor.qti.hardware.paleventnotifier;
/**
* PAL Audio format enumeration
*/
@VintfStability
@Backing(type="int")
enum PalAudioFmt {
PAL_AUDIO_FMT_DEFAULT_PCM = 0x1,
PAL_AUDIO_FMT_PCM_S16_LE = PAL_AUDIO_FMT_DEFAULT_PCM,
PAL_AUDIO_FMT_DEFAULT_COMPRESSED = 0x2,
PAL_AUDIO_FMT_MP3 = PAL_AUDIO_FMT_DEFAULT_COMPRESSED,
PAL_AUDIO_FMT_AAC = 0x3,
PAL_AUDIO_FMT_AAC_ADTS = 0x4,
PAL_AUDIO_FMT_AAC_ADIF = 0x5,
PAL_AUDIO_FMT_AAC_LATM = 0x6,
PAL_AUDIO_FMT_WMA_STD = 0x7,
PAL_AUDIO_FMT_ALAC = 0x8,
PAL_AUDIO_FMT_APE = 0x9,
PAL_AUDIO_FMT_WMA_PRO = 0xA,
PAL_AUDIO_FMT_FLAC = 0xB,
PAL_AUDIO_FMT_FLAC_OGG = 0xC,
PAL_AUDIO_FMT_VORBIS = 0xD,
PAL_AUDIO_FMT_AMR_NB = 0xE,
PAL_AUDIO_FMT_AMR_WB = 0xF,
PAL_AUDIO_FMT_AMR_WB_PLUS = 0x10,
PAL_AUDIO_FMT_EVRC = 0x11,
PAL_AUDIO_FMT_G711 = 0x12,
PAL_AUDIO_FMT_QCELP = 0x13,
PAL_AUDIO_FMT_PCM_S8 = 0x14,
PAL_AUDIO_FMT_PCM_S24_3LE = 0x15,
PAL_AUDIO_FMT_PCM_S24_LE = 0x16,
PAL_AUDIO_FMT_PCM_S32_LE = 0x17,
PAL_AUDIO_FMT_OPUS = 0x18,
PAL_AUDIO_FMT_COMPRESSED_RANGE_BEGIN = 0xF0000000,
PAL_AUDIO_FMT_COMPRESSED_EXTENDED_RANGE_BEGIN = 0xF0000F00,
PAL_AUDIO_FMT_COMPRESSED_EXTENDED_RANGE_END = 0xF0000FFF,
PAL_AUDIO_FMT_COMPRESSED_RANGE_END = PAL_AUDIO_FMT_COMPRESSED_EXTENDED_RANGE_END,
}

View File

@@ -0,0 +1,18 @@
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
package vendor.qti.hardware.paleventnotifier;
import vendor.qti.hardware.paleventnotifier.PalDeviceId;
import vendor.qti.hardware.paleventnotifier.PalStreamAttributes;
@VintfStability
parcelable PalCallbackConfig {
int noOfPrevDevices;
int noOfCurrentDevices;
PalDeviceId[] prevDevices;
PalDeviceId[] currentDevices;
PalStreamAttributes streamAttributes;
}

View File

@@ -0,0 +1,15 @@
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
package vendor.qti.hardware.paleventnotifier;
/**
* Audio channel info data structure
*/
@VintfStability
parcelable PalChannelInfo {
char channels;
byte[64] chMap;
}

View File

@@ -0,0 +1,70 @@
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
package vendor.qti.hardware.paleventnotifier;
@VintfStability
@Backing(type="int")
enum PalDeviceId {
PAL_DEVICE_OUT_MIN = 0,
PAL_DEVICE_NONE = 1, /**< for transcode usecases*/
PAL_DEVICE_OUT_HANDSET = 2,
PAL_DEVICE_OUT_SPEAKER = 3,
PAL_DEVICE_OUT_WIRED_HEADSET = 4,
PAL_DEVICE_OUT_WIRED_HEADPHONE = 5, /**< Wired headphones without mic*/
PAL_DEVICE_OUT_LINE = 6,
PAL_DEVICE_OUT_BLUETOOTH_SCO = 7,
PAL_DEVICE_OUT_BLUETOOTH_A2DP = 8,
PAL_DEVICE_OUT_AUX_DIGITAL = 9,
PAL_DEVICE_OUT_HDMI = 10,
PAL_DEVICE_OUT_USB_DEVICE = 11,
PAL_DEVICE_OUT_USB_HEADSET = 12,
PAL_DEVICE_OUT_SPDIF = 13,
PAL_DEVICE_OUT_FM = 14,
PAL_DEVICE_OUT_AUX_LINE = 15,
PAL_DEVICE_OUT_PROXY = 16,
PAL_DEVICE_OUT_AUX_DIGITAL_1 = 17,
PAL_DEVICE_OUT_HEARING_AID = 18,
PAL_DEVICE_OUT_HAPTICS_DEVICE = 19,
PAL_DEVICE_OUT_ULTRASOUND = 20,
PAL_DEVICE_OUT_ULTRASOUND_DEDICATED = 21,
PAL_DEVICE_OUT_BLUETOOTH_BLE = 22,
PAL_DEVICE_OUT_BLUETOOTH_BLE_BROADCAST = 23,
PAL_DEVICE_OUT_DUMMY = 24,
PAL_DEVICE_OUT_RECORD_PROXY = 25,
// Add new OUT devices here, increment MAX and MIN below when you do so
PAL_DEVICE_OUT_MAX = 26,
//INPUT DEVICES
PAL_DEVICE_IN_MIN = PAL_DEVICE_OUT_MAX,
PAL_DEVICE_IN_HANDSET_MIC = PAL_DEVICE_IN_MIN +1,
PAL_DEVICE_IN_SPEAKER_MIC = PAL_DEVICE_IN_MIN + 2,
PAL_DEVICE_IN_BLUETOOTH_SCO_HEADSET = PAL_DEVICE_IN_MIN + 3,
PAL_DEVICE_IN_WIRED_HEADSET = PAL_DEVICE_IN_MIN + 4,
PAL_DEVICE_IN_AUX_DIGITAL = PAL_DEVICE_IN_MIN + 5,
PAL_DEVICE_IN_HDMI = PAL_DEVICE_IN_MIN + 6,
PAL_DEVICE_IN_USB_ACCESSORY = PAL_DEVICE_IN_MIN + 7,
PAL_DEVICE_IN_USB_DEVICE = PAL_DEVICE_IN_MIN + 8,
PAL_DEVICE_IN_USB_HEADSET = PAL_DEVICE_IN_MIN + 9,
PAL_DEVICE_IN_FM_TUNER = PAL_DEVICE_IN_MIN + 10,
PAL_DEVICE_IN_LINE = PAL_DEVICE_IN_MIN + 11,
PAL_DEVICE_IN_SPDIF = PAL_DEVICE_IN_MIN + 12,
PAL_DEVICE_IN_PROXY = PAL_DEVICE_IN_MIN + 13,
PAL_DEVICE_IN_HANDSET_VA_MIC = PAL_DEVICE_IN_MIN + 14,
PAL_DEVICE_IN_BLUETOOTH_A2DP = PAL_DEVICE_IN_MIN + 15,
PAL_DEVICE_IN_HEADSET_VA_MIC = PAL_DEVICE_IN_MIN + 16,
PAL_DEVICE_IN_VI_FEEDBACK = PAL_DEVICE_IN_MIN + 17,
PAL_DEVICE_IN_TELEPHONY_RX = PAL_DEVICE_IN_MIN + 18,
PAL_DEVICE_IN_ULTRASOUND_MIC = PAL_DEVICE_IN_MIN +19,
PAL_DEVICE_IN_EXT_EC_REF = PAL_DEVICE_IN_MIN + 20,
PAL_DEVICE_IN_ECHO_REF = PAL_DEVICE_IN_MIN + 21,
PAL_DEVICE_IN_HAPTICS_VI_FEEDBACK = PAL_DEVICE_IN_MIN + 22,
PAL_DEVICE_IN_BLUETOOTH_BLE = PAL_DEVICE_IN_MIN + 23,
PAL_DEVICE_IN_CPS_FEEDBACK = PAL_DEVICE_IN_MIN + 24,
PAL_DEVICE_IN_DUMMY = PAL_DEVICE_IN_MIN + 25,
PAL_DEVICE_IN_CPS2_FEEDBACK = PAL_DEVICE_IN_MIN + 26,
PAL_DEVICE_IN_RECORD_PROXY = PAL_DEVICE_IN_MIN + 27,
// Add new IN devices here, increment MAX and MIN below when you do so
PAL_DEVICE_IN_MAX = PAL_DEVICE_IN_MIN + 28,
}

View File

@@ -0,0 +1,20 @@
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
package vendor.qti.hardware.paleventnotifier;
import vendor.qti.hardware.paleventnotifier.PalAudioFmt;
import vendor.qti.hardware.paleventnotifier.PalChannelInfo;
/**
* Media configuraiton
*/
@VintfStability
parcelable PalMediaConfig {
int sampleRate;
int bitwidth;
PalChannelInfo chInfo;
PalAudioFmt audioFormatId;
}

View File

@@ -0,0 +1,25 @@
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
package vendor.qti.hardware.paleventnotifier;
import vendor.qti.hardware.paleventnotifier.PalMediaConfig;
import vendor.qti.hardware.paleventnotifier.PalStreamDirection;
import vendor.qti.hardware.paleventnotifier.PalStreamFlag;
import vendor.qti.hardware.paleventnotifier.PalStreamInfo;
import vendor.qti.hardware.paleventnotifier.PalStreamType;
/**
* < PAL stream attributes to be specified, used in pal_stream_open cmd
*/
@VintfStability
parcelable PalStreamAttributes {
PalStreamType type;
PalStreamInfo info;
PalStreamFlag flags;
PalStreamDirection direction;
PalMediaConfig inMediaConfig;
PalMediaConfig outMediaConfig;
}

View File

@@ -0,0 +1,18 @@
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
package vendor.qti.hardware.paleventnotifier;
/**
* Audio stream direction enumeration
*/
@VintfStability
@Backing(type="int")
enum PalStreamDirection {
PAL_AUDIO_OUTPUT = 0x1,
PAL_AUDIO_INPUT = 0x2,
PAL_AUDIO_INPUT_OUTPUT = 0x3,
PAL_AUDIO_INVALID = 0x4,
}

View File

@@ -0,0 +1,21 @@
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
package vendor.qti.hardware.paleventnotifier;
/**
* Available stream flags of an audio session
*/
@VintfStability
@Backing(type="int")
enum PalStreamFlag {
PAL_STREAM_FLAG_TIMESTAMP = 0x1,
PAL_STREAM_FLAG_NON_BLOCKING = 0x2,
PAL_STREAM_FLAG_MMAP = 0x4,
PAL_STREAM_FLAG_MMAP_NO_IRQ = 0x8,
PAL_STREAM_FLAG_EXTERN_MEM = 0x10,
PAL_STREAM_FLAG_SRCM_INBAND = 0x20,
PAL_STREAM_FLAG_INVALID,
}

View File

@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
package vendor.qti.hardware.paleventnotifier;
@VintfStability
parcelable PalStreamInfo {
long version;
long size;
long durationUs;
boolean hasVideo;
int txProxyType;
int rxProxyType;
boolean isStreaming;
int loopbackType;
int hapticsType;
}

View File

@@ -0,0 +1,119 @@
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
package vendor.qti.hardware.paleventnotifier;
/**
* Audio stream types
*/
@VintfStability
@Backing(type="int")
enum PalStreamType {
PAL_STREAM_LOW_LATENCY = 1,
/**
* < :low latency, higher power
*/
PAL_STREAM_DEEP_BUFFER = 2,
/**
* < :low power, higher latency
*/
PAL_STREAM_COMPRESSED = 3,
/**
* < :compresssed audio
*/
PAL_STREAM_VOIP = 4,
/**
* < :pcm voip audio
*/
PAL_STREAM_VOIP_RX = 5,
/**
* < :pcm voip audio downlink
*/
PAL_STREAM_VOIP_TX = 6,
/**
* < :pcm voip audio uplink
*/
PAL_STREAM_VOICE_CALL_MUSIC = 7,
/**
* < :incall music
*/
PAL_STREAM_GENERIC = 8,
/**
* < :generic playback audio
*/
PAL_STREAM_RAW = 9,
/**
* < pcm no post processing
*/
PAL_STREAM_VOICE_RECOGNITION = 10,
/**
* < voice recognition
*/
PAL_STREAM_VOICE_CALL_RECORD = 11,
/**
* < incall record
*/
PAL_STREAM_VOICE_CALL_TX = 12,
/**
* < incall record, uplink
*/
PAL_STREAM_VOICE_CALL_RX_TX = 13,
/**
* < incall record, uplink & Downlink
*/
PAL_STREAM_VOICE_CALL = 14,
/**
* < voice call
*/
PAL_STREAM_LOOPBACK = 15,
/**
* < loopback
*/
PAL_STREAM_TRANSCODE = 16,
/**
* < audio transcode
*/
PAL_STREAM_VOICE_UI = 17,
/**
* < voice ui
*/
PAL_STREAM_PCM_OFFLOAD = 18,
/**
* < pcm offload audio
*/
PAL_STREAM_ULTRA_LOW_LATENCY = 19,
/**
* < pcm ULL audio
*/
PAL_STREAM_PROXY = 20,
/**
* < pcm proxy audio
*/
PAL_STREAM_NON_TUNNEL = 21,
/**
* < NT Mode session
*/
PAL_STREAM_HAPTICS = 22,
/**
* < Haptics Stream
*/
PAL_STREAM_ACD = 23,
/**
* < ACD Stream
*/
PAL_STREAM_CONTEXT_PROXY = 24,
/**
* < Context Proxy Stream
*/
PAL_STREAM_SENSOR_PCM_DATA = 25,
/**
* < Sensor PCM Data Stream
*/
PAL_STREAM_ULTRASOUND = 26,
/**
* < Ultrasound Proximity detection
*/
PAL_STREAM_SPATIAL_AUDIO = 27,
}

View File

@@ -0,0 +1,24 @@
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
package vendor.qti.hardware.paleventnotifier;
@Backing(type="int") @VintfStability
enum Status {
UNKNOWN = -1,
SUCCESS = 0,
IO_ERROR,
BUSY,
NO_SPACE,
INVALID_FD,
ADVERTISE_ERROR,
PROTOCOL_NOT_AVAILABLE,
NOT_SUPPORTED,
DOWN_WITH_SSR,
NOW_INPROGRESS,
ALREADY_INPROGRESS,
CANCELLED,
NOT_RECOVERABLE,
}

View File

@@ -0,0 +1,31 @@
#ANT
BOARD_ANT_WIRELESS_DEVICE := "qualcomm-hidl"
#BT
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_QCOM := true
#FM
ifeq ($(TARGET_BOARD_TYPE),auto)
BOARD_HAVE_QCOM_FM := false
else ifeq ($(TARGET_BOARD_AUTO),true)
BOARD_HAVE_QCOM_FM := false
else
BOARD_HAVE_QCOM_FM := true
endif
TARGET_USE_QTI_BT_CONFIGSTORE := true
TARGET_USE_QTI_BT_SAR := true
TARGET_USE_QTI_VND_FWK_DETECT := true
TARGET_USE_BT_DUN := false
ifeq ($(TARGET_USES_QMAA),true)
ifneq ($(TARGET_USES_QMAA_OVERRIDE_BLUETOOTH),true)
BOARD_HAVE_BLUETOOTH_QCOM := false
DISABLE_BT_FTM := true
BOARD_ANT_WIRELESS_DEVICE :=
endif
ifneq ($(TARGET_USES_QMAA_OVERRIDE_FM),true)
BOARD_HAVE_QCOM_FM := false
endif
endif

View File

@@ -0,0 +1,11 @@
#BT
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_QCOM := true
#FM
BOARD_HAVE_QCOM_FM := false
TARGET_USE_QTI_BT_CONFIGSTORE := false
TARGET_USE_QTI_BT_SAR := false
TARGET_USE_QTI_VND_FWK_DETECT := false
TARGET_USE_BT_DUN := false

View File

@@ -0,0 +1,30 @@
#BT
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_QCOM := true
#FM
BOARD_HAVE_QCOM_FM := true
ifneq ($(filter sdm660 msm8998, $(TARGET_BOARD_PLATFORM)),)
BOARD_ANT_WIRELESS_DEVICE := "qualcomm-hidl"
BOARD_HAS_QCA_FM_SOC := "cherokee"
endif
ifneq ($(filter msm8996, $(TARGET_BOARD_PLATFORM)),)
#BOARD_ANT_WIRELESS_DEVICE := "qualcomm-hidl"
endif
ifneq ($(filter msm8937 msm8953 msm8909, $(TARGET_BOARD_PLATFORM)),)
BOARD_ANT_WIRELESS_DEVICE := "vfs-prerelease"
endif
TARGET_USE_QTI_BT_CONFIGSTORE := true
TARGET_USE_QTI_BT_SAR := true
TARGET_USE_QTI_VND_FWK_DETECT := true
TARGET_USE_BT_DUN := false
ifeq ($(TARGET_BOARD_PLATFORM),msm8937)
ifeq ($(TARGET_BOARD_SUFFIX),_32go)
TARGET_USE_QTI_BT_SAR := false
endif
endif

View File

@@ -0,0 +1,15 @@
#ANT
ifneq ($(filter sdm660 msm8998, $(TARGET_BOARD_PLATFORM)),)
BOARD_ANT_WIRELESS_DEVICE := "qualcomm-hidl"
endif
ifneq ($(filter msm8937 msm8953 msm8909, $(TARGET_BOARD_PLATFORM)),)
BOARD_ANT_WIRELESS_DEVICE := "vfs-prerelease"
endif
#BT
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_QCOM := true
#FM
BOARD_HAVE_QCOM_FM := true

View File

@@ -0,0 +1,111 @@
#ANT
ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS), true)
ifeq ($(BOARD_ANT_WIRELESS_DEVICE), "vfs-prerelease")
PRODUCT_PACKAGES += AntHalService
PRODUCT_PACKAGES += libantradio
PRODUCT_PACKAGES += antradio_app
else
PRODUCT_PACKAGES += AntHalService-Soong
PRODUCT_PACKAGES += com.dsi.ant@1.0
endif
endif #TARGET_FWK_SUPPORTS_FULL_VALUEADDS
#BT
ifeq ($(BOARD_HAVE_BLUETOOTH_QCOM),true)
PRODUCT_PACKAGES += Bluetooth
ifneq ($(TARGET_BOARD_TYPE),auto)
# Set supported Bluetooth profiles to enabled
#PRODUCT_PRODUCT_PROPERTIES += \
# bluetooth.profile.a2dp.source.enabled=true \
# bluetooth.profile.avrcp.target.enabled=true \
# bluetooth.profile.avrcp.controller.enabled=true \
# bluetooth.profile.hfp.ag.enabled=true \
# bluetooth.profile.gatt.enabled=true \
# bluetooth.profile.hid.host.enabled=true \
# bluetooth.profile.hid.device.enabled=true \
# bluetooth.profile.map.server.enabled=true \
# bluetooth.profile.opp.enabled=false \
# bluetooth.profile.pan.nap.enabled=true \
# bluetooth.profile.pan.panu.enabled=true \
# bluetooth.profile.pbap.server.enabled=true
#PRODUCT_SYSTEM_EXT_PROPERTIES += \
# bluetooth.profile.sap.server.enabled=true \
# bluetooth.profile.pbap.sim.enabled=true \
# bluetooth.hfp.codec_aptx_voice.enabled=true \
# ro.bluetooth.leaudio_offload.supported=true \
# persist.bluetooth.leaudio_offload.disabled=false \
# persist.bluetooth.leaudio.allow.multiple.context=false
PRODUCT_PACKAGES += Xpan
PRODUCT_PACKAGES += privapp-permission-xpan.xml
endif #TARGET_BOARD_TYPE
ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS), true)
ifneq ($(TARGET_BOARD_TYPE),auto)
TARGET_USE_QTI_BT_STACK := false
endif
ifeq ($(TARGET_USE_QTI_BT_STACK),true)
# BT Related Libs
PRODUCT_PACKAGES += libbluetooth_qti
PRODUCT_PACKAGES += libbluetooth_qti_jni
PRODUCT_PACKAGES += bt_logger
PRODUCT_PACKAGES += libbt-logClient
PRODUCT_PACKAGES += libbtconfigstore
PRODUCT_PACKAGES += vendor.qti.hardware.btconfigstore@1.0
PRODUCT_PACKAGES += vendor.qti.hardware.btconfigstore@2.0
PRODUCT_PACKAGES += com.qualcomm.qti.bluetooth_audio@1.0
PRODUCT_PACKAGES += vendor.qti.hardware.bluetooth_audio@2.0
ifeq ($(TARGET_USE_BT_DUN),true)
PRODUCT_PACKAGES += vendor.qti.hardware.bluetooth_dun-V1.0-java
PRODUCT_PACKAGES += BluetoothExt
endif #TARGET_USE_BT_DUN
PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/packages/apps/Bluetooth
PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/system/bt/conf
PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/system/bt/main
PRODUCT_PACKAGE_OVERLAYS += vendor/qcom/opensource/commonsys-intf/bluetooth/overlay/qva
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := vendor/qcom/opensource/commonsys-intf/bluetooth/build/qva/config
# BT Related Test app & Tools
PRODUCT_PACKAGES_DEBUG += btsnoop
PRODUCT_PACKAGES_DEBUG += gatt_tool_qti_internal
PRODUCT_PACKAGES_DEBUG += l2cap_coc_tool
PRODUCT_PACKAGES_DEBUG += l2test_ertm
PRODUCT_PACKAGES_DEBUG += rfc
ifneq ($(TARGET_HAS_LOW_RAM), true)
PRODUCT_PACKAGES_DEBUG += BTTestApp
endif #TARGET_HAS_LOW_RAM
else
#PRODUCT_SOONG_NAMESPACES += packages/modules/Bluetooth/android/app
#PRODUCT_PACKAGE_OVERLAYS += vendor/qcom/opensource/commonsys-intf/bluetooth/overlay/generic
#BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := vendor/qcom/opensource/commonsys-intf/bluetooth/build/generic/config
endif #TARGET_USE_QTI_BT_STACK
else
#PRODUCT_PACKAGE_OVERLAYS += vendor/qcom/opensource/commonsys-intf/bluetooth/overlay/generic
#BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := vendor/qcom/opensource/commonsys-intf/bluetooth/build/generic/config
endif #TARGET_FWK_SUPPORTS_FULL_VALUEADDS
endif #BOARD_HAVE_BLUETOOTH_QCOM
#WIPOWER
ifeq ($(BOARD_USES_WIPOWER),true)
ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS), true)
#WIPOWER, wbc
PRODUCT_PACKAGES += wbc_hal.default
PRODUCT_PACKAGES += com.quicinc.wbc
PRODUCT_PACKAGES += com.quicinc.wbc.xml
PRODUCT_PACKAGES += com.quicinc.wbcservice
PRODUCT_PACKAGES += com.quicinc.wbcservice.xml
PRODUCT_PACKAGES += libwbc_jni
PRODUCT_PACKAGES += com.quicinc.wipoweragent
PRODUCT_PACKAGES += com.quicinc.wbcserviceapp
endif #TARGET_FWK_SUPPORTS_FULL_VALUEADDS
endif #BOARD_USES_WIPOWER

View File

@@ -0,0 +1,20 @@
#ANT
BOARD_ANT_WIRELESS_DEVICE := "qualcomm-hidl"
#BT
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_QCOM := true
#FM
ifneq ($(TARGET_BOARD_TYPE),auto)
BOARD_HAVE_QCOM_FM := true
endif
ifeq ($(TARGET_USES_QMAA),true)
ifneq ($(TARGET_USES_QMAA_OVERRIDE_BLUETOOTH),true)
BOARD_ANT_WIRELESS_DEVICE :=
endif
ifneq ($(TARGET_USES_QMAA_OVERRIDE_FM),true)
BOARD_HAVE_QCOM_FM := false
endif
endif

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2013, The Linux Foundation. All rights reserved.
* Not a Contribution.
*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H
// Wide-band speech support
#define BTM_WBS_INCLUDED TRUE
#define BTIF_HF_WBS_PREFERRED TRUE
// Google VSC spec support
#define BLE_VND_INCLUDED TRUE
// QTI power management workaround
#define BT_CLEAN_TURN_ON_DISABLED TRUE
#endif

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2013, The Linux Foundation. All rights reserved.
* Not a Contribution.
*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H
#define BTM_DEF_LOCAL_NAME "QCOM-BTD"
// Disables read remote device feature
#define MAX_ACL_CONNECTIONS 16
#define MAX_L2CAP_CHANNELS 64
#define BLE_VND_INCLUDED TRUE
#define GATT_MAX_PHY_CHANNEL 10
// skips conn update at conn completion
#define BT_CLEAN_TURN_ON_DISABLED 1
#define AVDT_NUM_SEPS 35
#endif

View File

@@ -0,0 +1,81 @@
/*
* Copyright (c) 2019 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.
*/
#ifndef BTCOMMON_INTERFACE_DEFS_H
#define BTCOMMON_INTERFACE_DEFS_H
#pragma once
typedef enum {
BT_SOC_TYPE_DEFAULT = 0x0000,
BT_SOC_TYPE_SMD = BT_SOC_TYPE_DEFAULT,
BT_SOC_TYPE_AR3K,
BT_SOC_TYPE_ROME,
BT_SOC_TYPE_CHEROKEE,
BT_SOC_TYPE_HASTINGS,
BT_SOC_TYPE_MOSELLE,
BT_SOC_TYPE_HAMILTON,
BT_SOC_TYPE_GANGES,
/* Add chipset type here */
BT_SOC_TYPE_RESERVED
} bt_soc_type_t;
typedef struct {
uint16_t product_id;
uint16_t rsp_version;
uint8_t feat_mask_len;
uint8_t features[8];
} add_on_features_list_t;
enum {
BT_PROP_ALL = 0x0000,
BT_PROP_SOC_TYPE,
BT_PROP_A2DP_OFFLOAD_CAP,
BT_PROP_SPILT_A2DP,
BT_PROP_AAC_FRAME_CTL,
BT_PROP_WIPOWER,
BT_PROP_SWB_ENABLE,
BT_PROP_SWBPM_ENABLE,
BT_PROP_A2DP_MCAST_TEST,
BT_PROP_TWSP_STATE,
BT_PROP_STACK_TIMEOUT,
BT_PROP_MAX_POWER,
// FM PROPERTY
FM_PROP_NOTCH_VALUE = 0x1000,
FM_PROP_HW_INIT,
FM_PROP_HW_MODE,
FM_PROP_CTL_START,
FM_PROP_CTL_STOP,
FM_STATS_PROP,
FM_PROP_WAN_RATCONF,
FM_PROP_BTWLAN_LPFENABLER,
};
#endif

View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2014, 2016-2019, The Linux Foundation. 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 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.
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 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.
-->
<resources>
<bool name="profile_supported_sap">true</bool>
</resources>

View File

@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2014, 2016-2019, The Linux Foundation. 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 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.
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 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.
-->
<resources>
<bool name="profile_supported_hfpclient">false</bool>
<bool name="profile_supported_avrcp_controller">true</bool>
<bool name="profile_supported_a2dp_sink">true</bool>
<bool name="profile_supported_sap">true</bool>
<bool name="profile_supported_ba">true</bool>
<bool name="profile_supported_avrcp_target">false</bool>
</resources>

View File

@@ -0,0 +1,14 @@
---
Language: Cpp
BasedOnStyle: Google
Standard : C++11
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortBlocksOnASingleLine: false
ColumnLimit: 100
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
DerivePointerAlignment: false
PointerAlignment: Right
#ReflowComments: false

View File

@@ -0,0 +1,10 @@
cc_library_headers {
name: "display_intf_headers",
vendor_available: true,
export_include_dirs: [
"gralloc",
"include",
"libqdmetadata",
"services",
],
}

View File

@@ -0,0 +1,5 @@
ACLOCAL_AMFLAGS = -I m4
HEADER_PATH = ${srcdir}/include
display_commonsys_h_sources = $(HEADER_PATH)/*.h
display_commonsys_includedir = $(includedir)
display_commonsys_include_HEADERS = $(display_commonsys_h_sources)

View File

@@ -0,0 +1,35 @@
aidl_interface {
name: "vendor.qti.hardware.display.aiqe",
vendor_available: true,
owner: "qti",
srcs: ["vendor/qti/hardware/display/aiqe/*.aidl"],
stability: "vintf",
backend: {
cpp: {
enabled: false,
},
java: {
enabled: true,
sdk_version: "module_current",
},
ndk: {
enabled: true,
},
},
versions_with_info: [
{
version: "1",
imports: [],
},
{
version: "2",
imports: [],
},
{
version: "3",
imports: [],
},
],
frozen: true,
}

View File

@@ -0,0 +1 @@
c31a3caf975b3ef452b146660e13f51c248fa31e

View File

@@ -0,0 +1,30 @@
/*
* Changes from Qualcomm Innovation Center, Inc. are provided under the following license:
* Copyright (c) 2024 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 <name>-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.display.aiqe;
@VintfStability
interface IDisplayAiqe {
void setSsrcMode(in int disp_id, in String mode_name);
void enableCopr(in int disp_id, in boolean enable);
int[] getCoprStats(in int disp_id);
}

View File

@@ -0,0 +1 @@
5a9915340b07c7501cfca4107ada6c15474402b1

View File

@@ -0,0 +1,33 @@
/*
* Changes from Qualcomm Innovation Center, Inc. are provided under the following license:
* Copyright (c) 2024 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 <name>-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.display.aiqe;
@VintfStability
interface IDisplayAiqe {
void setSsrcMode(in int disp_id, in String mode_name);
void enableCopr(in int disp_id, in boolean enable);
int[] getCoprStats(in int disp_id);
void setABCState(in int dispId, in int enable);
void setABCReconfig(in int dispId);
void setABCMode(in int dispId, in String mode_name);
}

View File

@@ -0,0 +1 @@
1862f2ce86c1703b98e994b5d200c2b58dd8661b

View File

@@ -0,0 +1,33 @@
/*
* Copyright (c) 2024 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 <name>-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.display.aiqe;
@VintfStability
interface IDisplayAiqe {
void setSsrcMode(in int disp_id, in String mode_name);
void enableCopr(in int disp_id, in boolean enable);
int[] getCoprStats(in int disp_id);
void setABCState(in int dispId, in int enable);
void setABCReconfig(in int dispId);
void setABCMode(in int dispId, in String mode_name);
void setMdnieMode(in String mode_name);
}

View File

@@ -0,0 +1,33 @@
/*
* Copyright (c) 2024 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 <name>-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.display.aiqe;
@VintfStability
interface IDisplayAiqe {
void setSsrcMode(in int disp_id, in String mode_name);
void enableCopr(in int disp_id, in boolean enable);
int[] getCoprStats(in int disp_id);
void setABCState(in int dispId, in int enable);
void setABCReconfig(in int dispId);
void setABCMode(in int dispId, in String mode_name);
void setMdnieMode(in String mode_name);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
package vendor.qti.hardware.display.aiqe;
@VintfStability
interface IDisplayAiqe {
/**
* Set the active SSRC mode for the specified display.
* The SSRC feature must be active for this to have an effect
*
* @param dispId ID of the display to target.
* @param mode_name Name of the SSRC mode to set.
* @return OK on success or error if any parameters are invalid.
*/
void setSsrcMode(in int disp_id, in String mode_name);
/**
* Enable COPR feature for the specified display.
*
* @param dispId ID of the display to target.
* @param enable enable/disable COPR feature
* @return OK on success or error if any parameters are invalid.
*/
void enableCopr(in int disp_id, in boolean enable);
/**
* Query the COPR statistics for the specified display.
* COPR feature must be active for this to work
*
* @param dispId ID of the display to target.
* @return vector of COPR statistic data
*/
int[] getCoprStats(in int disp_id);
/**
* Set ABC feature State
*
* @param dispId ID of the display to target.
* @param enable control ABC feature enable/disable
* @return error is NONE upon success
*/
void setABCState(in int dispId, in int enable);
/**
* Set ABC feature Reconfig
*
* @param dispId ID of the display to target.
* @return error is NONE upon success
*/
void setABCReconfig(in int dispId);
/**
* Set ABC feature mode
*
* @param dispId ID of the display to target.
* @param mode name of the ABC feature
* @return error is NONE upon success
*/
void setABCMode(in int dispId, in String mode_name);
/**
* Set the Mdnie mode.
*
* @param mode_name Name of the Mdnie Mode to set.
* @return OK on success or error if any parameters are invalid.
*/
void setMdnieMode(in String mode_name);
}

View File

@@ -0,0 +1,31 @@
aidl_interface {
name: "vendor.qti.hardware.display.color",
vendor_available: true,
owner: "qti",
srcs: ["vendor/qti/hardware/display/color/*.aidl"],
stability: "vintf",
backend: {
cpp: {
enabled: false,
},
java: {
enabled: true,
sdk_version: "module_current",
},
ndk: {
enabled: true,
},
},
versions_with_info: [
{
version: "1",
imports: [],
},
{
version: "2",
imports: [],
},
],
frozen: true,
}

View File

@@ -0,0 +1 @@
423c962c634a981b3722b48ad99e9fd851a4f8e8

View File

@@ -0,0 +1,32 @@
/*
* 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 <name>-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.display.color;
@VintfStability
interface IDisplayColor {
int init(in int flags);
vendor.qti.hardware.display.color.Result deInit(in int ctxHandle, in int flags);
void toggleSocketService(in boolean enable);
vendor.qti.hardware.display.color.Result getRenderIntentsMap(in int disp_id, out String[] render_intent_string, out int[] render_intent_enum);
vendor.qti.hardware.display.color.Result getSPRMode(in int ctxHandle, in int dispId, out vendor.qti.hardware.display.color.SprModeInfo info);
vendor.qti.hardware.display.color.Result setSPRMode(in int ctxHandle, in int dispId, in vendor.qti.hardware.display.color.SprModeInfo info);
}

View File

@@ -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 <name>-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.display.color;
@Backing(type="int") @VintfStability
enum Result {
OK = 0,
PERMISSION_DENIED = -1,
NO_MEMORY = -12,
BAD_VALUE = -22,
INVALID_OPERATION = -38,
}

View File

@@ -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 <name>-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.display.color;
@VintfStability
parcelable SprModeInfo {
int mode_id;
}

View File

@@ -0,0 +1 @@
8a093cd1a869f0ae297cfd793032547dedf013fa

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@Backing(type="int") @VintfStability
enum DispIntfType {
DSI0 = 0,
DSI1 = 1,
HDMI = 2,
MHL = 3,
VIRTUAL = 4,
MAX = 5,
}

View File

@@ -0,0 +1,33 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@VintfStability
parcelable DisplayInfo {
int flags;
int id;
int width;
int height;
int status;
vendor.qti.hardware.display.color.DispIntfType intf;
String name;
}

View File

@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@VintfStability
parcelable DisplayNumInfo {
int numDisplays;
int flags;
}

View File

@@ -0,0 +1,38 @@
/*
* Copyright (c) 2022, 2024 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 <name>-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.display.color;
@VintfStability
interface IDisplayColor {
int init(in int flags);
vendor.qti.hardware.display.color.Result deInit(in int ctxHandle, in int flags);
void toggleSocketService(in boolean enable);
vendor.qti.hardware.display.color.Result getRenderIntentsMap(in int disp_id, out String[] render_intent_string, out int[] render_intent_enum);
vendor.qti.hardware.display.color.Result getSPRMode(in int ctxHandle, in int dispId, out vendor.qti.hardware.display.color.SprModeInfo info);
vendor.qti.hardware.display.color.Result setSPRMode(in int ctxHandle, in int dispId, in vendor.qti.hardware.display.color.SprModeInfo info);
vendor.qti.hardware.display.color.Result getNumDisplay(in long ctxHandle, out vendor.qti.hardware.display.color.DisplayNumInfo dispNumInfo);
vendor.qti.hardware.display.color.Result getDisplayId(in long ctxHandle, out long[] display_id);
vendor.qti.hardware.display.color.Result getDisplay(in long ctxHandle, in int index, out vendor.qti.hardware.display.color.DisplayInfo dispInfo);
vendor.qti.hardware.display.color.Result getGlobalPARange(in long ctxHandle, in int dispId, out vendor.qti.hardware.display.color.PARange range);
vendor.qti.hardware.display.color.Result getGlobalPA(in long ctxHandle, in int dispId, out vendor.qti.hardware.display.color.PAEnable paEnable, out vendor.qti.hardware.display.color.PAConfig cfg);
vendor.qti.hardware.display.color.Result setGlobalPA(in long ctxHandle, in int dispId, in int enable, in vendor.qti.hardware.display.color.PAConfig cfg);
}

View File

@@ -0,0 +1,29 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@VintfStability
parcelable PAConfig {
boolean valid;
int flags;
vendor.qti.hardware.display.color.PAConfigData data;
}

View File

@@ -0,0 +1,31 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@VintfStability
parcelable PAConfigData {
int hue;
float saturation;
float value;
float contrast;
float sat_thresh;
}

View File

@@ -0,0 +1,27 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@VintfStability
parcelable PAEnable {
int enable;
}

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@VintfStability
parcelable PARange {
int flags;
vendor.qti.hardware.display.color.Range hue;
vendor.qti.hardware.display.color.RangeFloat saturation;
vendor.qti.hardware.display.color.RangeFloat value;
vendor.qti.hardware.display.color.RangeFloat contrast;
vendor.qti.hardware.display.color.RangeFloat satThreshold;
}

View File

@@ -0,0 +1,29 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@VintfStability
parcelable Range {
int max;
int min;
int step;
}

View File

@@ -0,0 +1,29 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@VintfStability
parcelable RangeFloat {
float max;
float min;
float step;
}

View File

@@ -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 <name>-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.display.color;
@Backing(type="int") @VintfStability
enum Result {
OK,
PERMISSION_DENIED = (-1) /* -1 */,
NO_MEMORY = (-12) /* -12 */,
BAD_VALUE = (-22) /* -22 */,
INVALID_OPERATION = (-38) /* -38 */,
}

View File

@@ -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 <name>-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.display.color;
@VintfStability
parcelable SprModeInfo {
int mode_id;
}

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@Backing(type="int") @VintfStability
enum DispIntfType {
DSI0 = 0,
DSI1 = 1,
HDMI = 2,
MHL = 3,
VIRTUAL = 4,
MAX = 5,
}

View File

@@ -0,0 +1,33 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@VintfStability
parcelable DisplayInfo {
int flags;
int id;
int width;
int height;
int status;
vendor.qti.hardware.display.color.DispIntfType intf;
String name;
}

View File

@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@VintfStability
parcelable DisplayNumInfo {
int numDisplays;
int flags;
}

View File

@@ -0,0 +1,38 @@
/*
* Copyright (c) 2022, 2024 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 <name>-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.display.color;
@VintfStability
interface IDisplayColor {
int init(in int flags);
vendor.qti.hardware.display.color.Result deInit(in int ctxHandle, in int flags);
void toggleSocketService(in boolean enable);
vendor.qti.hardware.display.color.Result getRenderIntentsMap(in int disp_id, out String[] render_intent_string, out int[] render_intent_enum);
vendor.qti.hardware.display.color.Result getSPRMode(in int ctxHandle, in int dispId, out vendor.qti.hardware.display.color.SprModeInfo info);
vendor.qti.hardware.display.color.Result setSPRMode(in int ctxHandle, in int dispId, in vendor.qti.hardware.display.color.SprModeInfo info);
vendor.qti.hardware.display.color.Result getNumDisplay(in long ctxHandle, out vendor.qti.hardware.display.color.DisplayNumInfo dispNumInfo);
vendor.qti.hardware.display.color.Result getDisplayId(in long ctxHandle, out long[] display_id);
vendor.qti.hardware.display.color.Result getDisplay(in long ctxHandle, in int index, out vendor.qti.hardware.display.color.DisplayInfo dispInfo);
vendor.qti.hardware.display.color.Result getGlobalPARange(in long ctxHandle, in int dispId, out vendor.qti.hardware.display.color.PARange range);
vendor.qti.hardware.display.color.Result getGlobalPA(in long ctxHandle, in int dispId, out vendor.qti.hardware.display.color.PAEnable paEnable, out vendor.qti.hardware.display.color.PAConfig cfg);
vendor.qti.hardware.display.color.Result setGlobalPA(in long ctxHandle, in int dispId, in int enable, in vendor.qti.hardware.display.color.PAConfig cfg);
}

View File

@@ -0,0 +1,29 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@VintfStability
parcelable PAConfig {
boolean valid;
int flags;
vendor.qti.hardware.display.color.PAConfigData data;
}

View File

@@ -0,0 +1,31 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@VintfStability
parcelable PAConfigData {
int hue;
float saturation;
float value;
float contrast;
float sat_thresh;
}

View File

@@ -0,0 +1,27 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@VintfStability
parcelable PAEnable {
int enable;
}

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@VintfStability
parcelable PARange {
int flags;
vendor.qti.hardware.display.color.Range hue;
vendor.qti.hardware.display.color.RangeFloat saturation;
vendor.qti.hardware.display.color.RangeFloat value;
vendor.qti.hardware.display.color.RangeFloat contrast;
vendor.qti.hardware.display.color.RangeFloat satThreshold;
}

View File

@@ -0,0 +1,29 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@VintfStability
parcelable Range {
int max;
int min;
int step;
}

View File

@@ -0,0 +1,29 @@
/*
* Copyright (c) 2024 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 <name>-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.display.color;
@VintfStability
parcelable RangeFloat {
float max;
float min;
float step;
}

View File

@@ -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 <name>-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.display.color;
@Backing(type="int") @VintfStability
enum Result {
OK,
PERMISSION_DENIED = (-1) /* -1 */,
NO_MEMORY = (-12) /* -12 */,
BAD_VALUE = (-22) /* -22 */,
INVALID_OPERATION = (-38) /* -38 */,
}

View File

@@ -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 <name>-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.display.color;
@VintfStability
parcelable SprModeInfo {
int mode_id;
}

View File

@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
package vendor.qti.hardware.display.color;
/*
* Display interface types
*/
@VintfStability
@Backing(type="int")
enum DispIntfType {
DSI0 = 0,
DSI1 = 1,
HDMI = 2,
MHL = 3,
VIRTUAL = 4,
MAX = 5,
}

View File

@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
package vendor.qti.hardware.display.color;
import vendor.qti.hardware.display.color.DispIntfType;
@VintfStability
parcelable DisplayInfo {
int flags;
int id;
int width;
int height;
int status;
DispIntfType intf;
String name;
}

Some files were not shown because too many files have changed in this diff Show More