blob: 430a07db9471ba032031b67e6e8843414be6f86c [file] [log] [blame]
Subhash Chandra Bose Naripeddy3eedc002013-11-12 20:45:15 -08001/*
2 * Copyright (c) 2013, The Linux Foundation. All rights reserved.
3 * Not a Contribution.
4 *
5 * Copyright (C) 2013 The Android Open Source Project
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19
20#ifndef OFFLOAD_EFFECT_BASS_BOOST_H_
21#define OFFLOAD_EFFECT_BASS_BOOST_H_
22
23#include "bundle.h"
24
25extern const effect_descriptor_t bassboost_descriptor;
26
27typedef struct bassboost_context_s {
28 effect_context_t common;
29
30 int strength;
31
32 // Offload vars
33 struct mixer_ctl *ctl;
34 bool temp_disabled;
35 uint32_t device;
36 struct bass_boost_params offload_bass;
37} bassboost_context_t;
38
39int bassboost_get_parameter(effect_context_t *context, effect_param_t *p,
40 uint32_t *size);
41
42int bassboost_set_parameter(effect_context_t *context, effect_param_t *p,
43 uint32_t size);
44
45int bassboost_set_device(effect_context_t *context, uint32_t device);
46
47int bassboost_reset(effect_context_t *context);
48
49int bassboost_init(effect_context_t *context);
50
51int bassboost_enable(effect_context_t *context);
52
53int bassboost_disable(effect_context_t *context);
54
55int bassboost_start(effect_context_t *context, output_context_t *output);
56
57int bassboost_stop(effect_context_t *context, output_context_t *output);
58
59#endif /* OFFLOAD_EFFECT_BASS_BOOST_H_ */