• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2014 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 #ifndef OFFLOAD_EFFECT_BASS_BOOST_H_
18 #define OFFLOAD_EFFECT_BASS_BOOST_H_
19 
20 #include "bundle.h"
21 
22 extern const effect_descriptor_t bassboost_descriptor;
23 
24 typedef struct bassboost_context_s {
25     effect_context_t common;
26 
27     int strength;
28 
29     // Offload vars
30     struct mixer_ctl *ctl;
31     bool temp_disabled;
32     uint32_t device;
33     struct bass_boost_params offload_bass;
34 } bassboost_context_t;
35 
36 int bassboost_get_parameter(effect_context_t *context, effect_param_t *p,
37                             uint32_t *size);
38 
39 int bassboost_set_parameter(effect_context_t *context, effect_param_t *p,
40                             uint32_t size);
41 
42 int bassboost_set_device(effect_context_t *context,  uint32_t device);
43 
44 int bassboost_reset(effect_context_t *context);
45 
46 int bassboost_init(effect_context_t *context);
47 
48 int bassboost_enable(effect_context_t *context);
49 
50 int bassboost_disable(effect_context_t *context);
51 
52 int bassboost_start(effect_context_t *context, output_context_t *output);
53 
54 int bassboost_stop(effect_context_t *context, output_context_t *output);
55 
56 #endif /* OFFLOAD_EFFECT_BASS_BOOST_H_ */
57