blob: 1ab7f801c7b260dffeae510186204b867c55114e [file] [log] [blame]
jasmine cha75fa6f02018-03-30 15:41:33 +08001/*
Arun Mirpurid750ac52019-04-12 18:33:55 -07002 * Copyright (C) 2018-2019 The Android Open Source Project
jasmine cha75fa6f02018-03-30 15:41:33 +08003 *
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 MAXXAUDIO_H_
18#define MAXXAUDIO_H_
19
Arun Mirpurid750ac52019-04-12 18:33:55 -070020void ma_init(void *platform, maxx_audio_init_config_t init_config);
21void ma_deinit();
22bool ma_set_state(struct audio_device *adev, int stream_type,
Aalique Grahame5ce7fbe2019-01-28 12:08:13 -080023 float vol, bool active);
Arun Mirpurid750ac52019-04-12 18:33:55 -070024void ma_set_device(struct audio_usecase *usecase);
25void ma_set_parameters(struct audio_device *adev,
Aalique Grahame5ce7fbe2019-01-28 12:08:13 -080026 struct str_parms *parms);
Arun Mirpurid750ac52019-04-12 18:33:55 -070027bool ma_supported_usb();
28#endif /* MAXXAUDIO_H_ */