Home | History | Annotate | Download | only in voice_processing
      1 /*
      2  * Copyright (C) 2015 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 #include <hardware/audio_effect.h>
     18 //------------------------------------------------------------------------------
     19 // Effect descriptors
     20 //------------------------------------------------------------------------------
     21 
     22 // UUIDs for effect types have been generated from http://www.itu.int/ITU-T/asn1/uuid.html
     23 // as the pre processing effects are not defined by OpenSL ES
     24 
     25 // Acoustic Echo Cancellation dce45980-42b3-11e5-89be-0002a5d5c51b
     26 const effect_descriptor_t qcom_product_aec_descriptor = {
     27         { 0x7b491460, 0x8d4d, 0x11e0, 0xbd61, { 0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b } }, // type
     28         { 0xdce45980, 0x42b3, 0x11e5, 0x89be, { 0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b } }, // uuid
     29         EFFECT_CONTROL_API_VERSION,
     30         (EFFECT_FLAG_TYPE_PRE_PROC|EFFECT_FLAG_DEVICE_IND|EFFECT_FLAG_HW_ACC_TUNNEL),
     31         0,
     32         0,
     33         "Acoustic Echo Canceler",
     34         "Qualcomm Fluence for Angler"
     35 };
     36 
     37 // Noise suppression effd4400-42b3-11e5-a2be-0002a5d5c51b
     38 const effect_descriptor_t qcom_product_ns_descriptor = {
     39         { 0x58b4b260, 0x8e06, 0x11e0, 0xaa8e, { 0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b } }, // type
     40         { 0xeffd4400, 0x42b3, 0x11e5, 0xa2be, { 0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b } }, // uuid
     41         EFFECT_CONTROL_API_VERSION,
     42         (EFFECT_FLAG_TYPE_PRE_PROC|EFFECT_FLAG_DEVICE_IND|EFFECT_FLAG_HW_ACC_TUNNEL),
     43         0,
     44         0,
     45         "Noise Suppression",
     46         "Qualcomm Fluence for Angler"
     47 };
     48 
     49 //ENABLE_AGC
     50 // Automatic Gain Control fe022200-42b3-11e5-8918-0002a5d5c51b
     51 //const effect_descriptor_t qcom_product_agc_descriptor = {
     52 //        { 0x0a8abfe0, 0x654c, 0x11e0, 0xba26, { 0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b } }, // type
     53 //        { 0xfe022200, 0x42b3, 0x11e5, 0x8918, { 0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b } }, // uuid
     54 //        EFFECT_CONTROL_API_VERSION,
     55 //        (EFFECT_FLAG_TYPE_PRE_PROC|EFFECT_FLAG_DEVICE_IND|EFFECT_FLAG_HW_ACC_TUNNEL),
     56 //        0,
     57 //        0,
     58 //        "Automatic Gain Control",
     59 //        "Qualcomm Fluence for Angler"
     60 //};
     61 
     62