161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti/*
261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti * Not a contribution.
461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti *
561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti * Copyright (C) 2013 The Android Open Source Project
661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti *
761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti * Licensed under the Apache License, Version 2.0 (the "License");
861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti * you may not use this file except in compliance with the License.
961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti * You may obtain a copy of the License at
1061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti *
1161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti *      http://www.apache.org/licenses/LICENSE-2.0
1261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti *
1361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti * Unless required by applicable law or agreed to in writing, software
1461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti * distributed under the License is distributed on an "AS IS" BASIS,
1561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti * See the License for the specific language governing permissions and
1761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti * limitations under the License.
1861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti */
1961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
2061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti#ifndef VOICE_EXTN_H
2161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti#define VOICE_EXTN_H
2261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
2361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti#ifdef MULTI_VOICE_SESSION_ENABLED
2461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_start_call(struct audio_device *adev);
2561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_stop_call(struct audio_device *adev);
2661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_get_session_from_use_case(struct audio_device *adev,
2761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                         const audio_usecase_t usecase_id,
2861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                         struct voice_session **session);
2961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletivoid voice_extn_init(struct audio_device *adev);
3061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_set_parameters(struct audio_device *adev,
3161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                              struct str_parms *parms);
3261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletivoid voice_extn_get_parameters(const struct audio_device *adev,
3361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                               struct str_parms *query,
3461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                               struct str_parms *reply);
3561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_is_in_call_rec_stream(struct stream_in *in, bool *in_call_rec);
3661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_is_call_state_active(struct audio_device *adev,
3761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                    bool *is_call_active);
3861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_get_active_session_id(struct audio_device *adev,
3961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                     uint32_t *session_id);
4061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletivoid voice_extn_in_get_parameters(struct stream_in *in,
4161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                  struct str_parms *query,
4261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                  struct str_parms *reply);
4361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletivoid voice_extn_out_get_parameters(struct stream_out *out,
4461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                   struct str_parms *query,
4561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                   struct str_parms *reply);
4661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti#else
4761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_start_call(struct audio_device *adev __unused)
4861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
4961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
5061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
5161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
5261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_stop_call(struct audio_device *adev __unused)
5361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
5461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
5561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
5661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
5761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_get_session_from_use_case(struct audio_device *adev __unused,
5861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                                const audio_usecase_t usecase_id __unused,
5961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                                struct voice_session **session __unused)
6061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
6161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
6261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
6361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
6461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic void voice_extn_init(struct audio_device *adev __unused)
6561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
6661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
6761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
6861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_set_parameters(struct audio_device *adev __unused,
6961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                     struct str_parms *parms __unused)
7061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
7161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
7261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
7361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
7461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic void voice_extn_get_parameters(const struct audio_device *adev __unused,
7561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                      struct str_parms *query __unused,
7661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                      struct str_parms *reply __unused)
7761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
7861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
7961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
8061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_is_call_state_active(struct audio_device *adev __unused,
8161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                           bool *is_call_active __unused)
8261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
8361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
8461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
8561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
8661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_is_in_call_rec_stream(struct stream_in *in __unused, bool *in_call_rec __unused)
8761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
8861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
8961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
9061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
9161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_get_active_session_id(struct audio_device *adev __unused,
9261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                            uint32_t *session_id __unused)
9361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
9461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
9561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
9661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
9761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic void voice_extn_in_get_parameters(struct stream_in *in __unused,
9861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                         struct str_parms *query __unused,
9961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                         struct str_parms *reply __unused)
10061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
10161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
10261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
10361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic void voice_extn_out_get_parameters(struct stream_out *out __unused,
10461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                          struct str_parms *query __unused,
10561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                          struct str_parms *reply __unused)
10661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
10761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
10861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti#endif
10961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
11061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti#ifdef INCALL_MUSIC_ENABLED
11161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_check_and_set_incall_music_usecase(struct audio_device *adev,
11261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                                  struct stream_out *out);
11361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti#else
11461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_check_and_set_incall_music_usecase(struct audio_device *adev __unused,
11561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                                         struct stream_out *out __unused)
11661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
11761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
11861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
11961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti#endif
12061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
12161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti#ifdef COMPRESS_VOIP_ENABLED
12261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_compress_voip_close_output_stream(struct audio_stream *stream);
12361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_compress_voip_open_output_stream(struct stream_out *out);
12461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
12561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_compress_voip_close_input_stream(struct audio_stream *stream);
12661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_compress_voip_open_input_stream(struct stream_in *in);
12761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
12861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_compress_voip_out_get_buffer_size(struct stream_out *out);
12961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_compress_voip_in_get_buffer_size(struct stream_in *in);
13061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
13161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_compress_voip_start_input_stream(struct stream_in *in);
13261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_compress_voip_start_output_stream(struct stream_out *out);
13361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
13461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_compress_voip_set_mic_mute(struct audio_device *dev, bool state);
13561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_compress_voip_set_volume(struct audio_device *adev, float volume);
13661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_compress_voip_select_devices(struct audio_device *adev,
13761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                            snd_device_t *out_snd_device,
13861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                            snd_device_t *in_snd_device);
13961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletiint voice_extn_compress_voip_set_parameters(struct audio_device *adev,
14061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                             struct str_parms *parms);
14161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletivoid voice_extn_compress_voip_get_parameters(struct str_parms *query,
14261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                             struct str_parms *reply);
14361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
14461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletivoid voice_extn_compress_voip_out_get_parameters(struct stream_out *out,
14561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                                 struct str_parms *query,
14661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                                 struct str_parms *reply);
14761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletivoid voice_extn_compress_voip_in_get_parameters(struct stream_in *in,
14861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                                struct str_parms *query,
14961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                                struct str_parms *reply);
15061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletibool voice_extn_compress_voip_pcm_prop_check();
15161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletibool voice_extn_compress_voip_is_active(struct audio_device *adev);
15261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletibool voice_extn_compress_voip_is_format_supported(audio_format_t format);
15361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletibool voice_extn_compress_voip_is_config_supported(struct audio_config *config);
15461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti#else
15561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_compress_voip_close_output_stream(struct audio_stream *stream __unused)
15661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
15761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
15861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
15961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
16061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
16161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_compress_voip_open_output_stream(struct stream_out *out __unused)
16261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
16361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
16461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
16561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
16661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
16761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_compress_voip_close_input_stream(struct audio_stream *stream __unused)
16861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
16961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
17061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
17161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
17261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
17361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_compress_voip_open_input_stream(struct stream_in *in __unused)
17461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
17561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
17661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
17761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
17861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
17961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_compress_voip_out_get_buffer_size(struct stream_out *stream __unused)
18061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
18161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
18261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
18361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
18461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
18561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_compress_voip_in_get_buffer_size(struct stream_in *in __unused)
18661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
18761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
18861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
18961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
19061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
19161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_compress_voip_start_input_stream(struct stream_in *in __unused)
19261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
19361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
19461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
19561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
19661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
19761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_compress_voip_start_output_stream(struct stream_out *out __unused)
19861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
19961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
20061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
20161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
20261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
20361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_compress_voip_set_mic_mute(struct audio_device *adev, bool state __unused)
20461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
20561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
20661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return 0;
20761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
20861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
20961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_compress_voip_set_volume(struct audio_device *adev __unused, float volume __unused)
21061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
21161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
21261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return 0;
21361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
21461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
21561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_compress_voip_select_devices(struct audio_device *adev __unused,
21661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                                   snd_device_t *out_snd_device __unused,
21761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                                   snd_device_t *in_snd_device __unused)
21861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
21961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
22061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
22161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
22261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
22361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic int voice_extn_compress_voip_set_parameters(struct audio_device *adev __unused,
22461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                                    struct str_parms *parms __unused)
22561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
22661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
22761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return -ENOSYS;
22861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
22961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
23061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic void voice_extn_compress_voip_get_parameters(struct str_parms *query __unused,
23161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                                    struct str_parms *reply __unused)
23261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
23361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
23461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
23561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
23661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic void voice_extn_compress_voip_out_get_parameters(struct stream_out *out __unused,
23761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                                        struct str_parms *query __unused,
23861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                                        struct str_parms *reply __unused)
23961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
24061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
24161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
24261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
24361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic void voice_extn_compress_voip_in_get_parameters(struct stream_in *in __unused,
24461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                                       struct str_parms *query __unused,
24561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti                                                       struct str_parms *reply __unused)
24661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
24761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
24861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
24961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
25061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic bool voice_extn_compress_voip_pcm_prop_check()
25161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
25261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
25361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return false;
25461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
25561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
25661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic bool voice_extn_compress_voip_is_active(struct audio_device *adev __unused)
25761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
25861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
25961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return false;
26061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
26161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
26261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic bool voice_extn_compress_voip_is_format_supported(audio_format_t format __unused)
26361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
26461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
26561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return true;
26661e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
26761e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
26861e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuletistatic bool voice_extn_compress_voip_is_config_supported(struct audio_config *config __unused)
26961e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti{
27061e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    ALOGE("%s: COMPRESS_VOIP_ENABLED is not defined", __func__);
27161e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti    return true;
27261e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti}
27361e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti#endif
27461e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti
27561e21a4fe27118141afc13323807f83b733cf426Uday Kishore Pasupuleti#endif //VOICE_EXTN_H
276