blob: 2c0ad71639db47575b7a4044c53aa24d91f19a9c [file] [log] [blame]
justinweng20fb6d82019-02-21 18:49:00 -07001/*
2 * Copyright (C) 2019 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 AUDIOZOOM_H_
18#define AUDIOZOOM_H_
19
20#ifndef AUDIOZOOM_QDSP_ENABLED
21#define audio_extn_audiozoom_init() (0)
22#define audio_extn_audiozoom_set_microphone_direction(stream, dir) (-ENOSYS)
23#define audio_extn_audiozoom_set_microphone_field_dimension(stream, zoom) (-ENOSYS)
24#else
25int audio_extn_audiozoom_init();
26int audio_extn_audiozoom_set_microphone_direction(struct stream_in *stream,
27 audio_microphone_direction_t dir);
28int audio_extn_audiozoom_set_microphone_field_dimension(struct stream_in *stream, float zoom);
29#endif
30
31#endif /* AUDIOZOOM_H_ */