Loading hal/audio_extn/audio_extn.c +1 −1 Original line number Diff line number Diff line Loading @@ -165,7 +165,7 @@ void audio_extn_set_fluence_parameters(struct audio_device *adev, } } int audio_extn_get_fluence_parameters(struct audio_device *adev, int audio_extn_get_fluence_parameters(const struct audio_device *adev, struct str_parms *query, struct str_parms *reply) { int ret = 0, err; Loading hal/audio_extn/audio_extn.h +6 −8 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ bool audio_extn_should_use_handset_anc(int in_channels); #else void audio_extn_set_fluence_parameters(struct audio_device *adev, struct str_parms *parms); int audio_extn_get_fluence_parameters(struct audio_device *adev, int audio_extn_get_fluence_parameters(const struct audio_device *adev, struct str_parms *query, struct str_parms *reply); #endif Loading Loading @@ -115,14 +115,13 @@ bool audio_extn_usb_is_proxy_inuse(); #endif #ifndef SSR_ENABLED #define audio_extn_ssr_init(adev, in) (0) #define audio_extn_ssr_init(in) (0) #define audio_extn_ssr_deinit() (0) #define audio_extn_ssr_update_enabled() (0) #define audio_extn_ssr_get_enabled() (0) #define audio_extn_ssr_read(stream, buffer, bytes) (0) #else int32_t audio_extn_ssr_init(struct audio_device *adev, struct stream_in *in); int32_t audio_extn_ssr_init(struct stream_in *in); int32_t audio_extn_ssr_deinit(); void audio_extn_ssr_update_enabled(); bool audio_extn_ssr_get_enabled(); Loading Loading @@ -183,7 +182,7 @@ bool audio_extn_spkr_prot_is_enabled(); #endif #ifndef COMPRESS_CAPTURE_ENABLED #define audio_extn_compr_cap_init(adev,in) (0) #define audio_extn_compr_cap_init(in) (0) #define audio_extn_compr_cap_enabled() (0) #define audio_extn_compr_cap_format_supported(format) (0) #define audio_extn_compr_cap_usecase_supported(usecase) (0) Loading @@ -191,8 +190,7 @@ bool audio_extn_spkr_prot_is_enabled(); #define audio_extn_compr_cap_read(in, buffer, bytes) (0) #define audio_extn_compr_cap_deinit() (0) #else void audio_extn_compr_cap_init(struct audio_device *adev, struct stream_in *in); void audio_extn_compr_cap_init(struct stream_in *in); bool audio_extn_compr_cap_enabled(); bool audio_extn_compr_cap_format_supported(audio_format_t format); bool audio_extn_compr_cap_usecase_supported(audio_usecase_t usecase); Loading Loading @@ -231,7 +229,7 @@ void audio_extn_dolby_send_ddp_endp_params(struct audio_device *adev); #ifndef HFP_ENABLED #define audio_extn_hfp_is_active(adev) (0) #define audio_extn_hfp_get_usecase() (0) #define audio_extn_hfp_get_usecase() (-1) #else bool audio_extn_hfp_is_active(struct audio_device *adev); audio_usecase_t audio_extn_hfp_get_usecase(); Loading hal/audio_extn/compress_capture.c +1 −2 Original line number Diff line number Diff line Loading @@ -51,8 +51,7 @@ static struct compress_in_module c_in_mod = { }; void audio_extn_compr_cap_init(struct audio_device *adev, struct stream_in *in) void audio_extn_compr_cap_init(struct stream_in *in) { in->usecase = USECASE_AUDIO_RECORD_COMPRESS; in->config.channels = COMPRESS_IN_CONFIG_CHANNELS; Loading hal/audio_extn/dolby.c +1 −1 Original line number Diff line number Diff line Loading @@ -187,7 +187,7 @@ int update_ddp_endp_table(int device, int dev_ch_cap, int param_id, void send_ddp_endp_params_stream(struct stream_out *out, int device, int dev_ch_cap, bool set_cache) bool set_cache __unused) { int idx, i; int ddp_endp_params_data[2*DDP_ENDP_NUM_PARAMS + 1]; Loading hal/audio_extn/hfp.c +4 −6 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/ #define AUDIO_PARAMETER_KEY_HFP_VOLUME "hfp_volume" static int32_t start_hfp(struct audio_device *adev, struct str_parms *parms); struct str_parms *parms __unused); static int32_t stop_hfp(struct audio_device *adev); Loading Loading @@ -121,7 +121,7 @@ static int32_t hfp_set_volume(struct audio_device *adev, float value) } static int32_t start_hfp(struct audio_device *adev, struct str_parms *parms) struct str_parms *parms __unused) { int32_t i, ret = 0; struct audio_usecase *uc_info; Loading Loading @@ -298,12 +298,10 @@ void audio_extn_hfp_set_parameters(struct audio_device *adev, struct str_parms * if (rate == 8000){ hfpmod.ucid = USECASE_AUDIO_HFP_SCO; pcm_config_hfp.rate = rate; } else if (rate == 16000){ } else if (rate == 16000){ hfpmod.ucid = USECASE_AUDIO_HFP_SCO_WB; pcm_config_hfp.rate = rate; } else } else ALOGE("Unsupported rate.."); } Loading Loading
hal/audio_extn/audio_extn.c +1 −1 Original line number Diff line number Diff line Loading @@ -165,7 +165,7 @@ void audio_extn_set_fluence_parameters(struct audio_device *adev, } } int audio_extn_get_fluence_parameters(struct audio_device *adev, int audio_extn_get_fluence_parameters(const struct audio_device *adev, struct str_parms *query, struct str_parms *reply) { int ret = 0, err; Loading
hal/audio_extn/audio_extn.h +6 −8 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ bool audio_extn_should_use_handset_anc(int in_channels); #else void audio_extn_set_fluence_parameters(struct audio_device *adev, struct str_parms *parms); int audio_extn_get_fluence_parameters(struct audio_device *adev, int audio_extn_get_fluence_parameters(const struct audio_device *adev, struct str_parms *query, struct str_parms *reply); #endif Loading Loading @@ -115,14 +115,13 @@ bool audio_extn_usb_is_proxy_inuse(); #endif #ifndef SSR_ENABLED #define audio_extn_ssr_init(adev, in) (0) #define audio_extn_ssr_init(in) (0) #define audio_extn_ssr_deinit() (0) #define audio_extn_ssr_update_enabled() (0) #define audio_extn_ssr_get_enabled() (0) #define audio_extn_ssr_read(stream, buffer, bytes) (0) #else int32_t audio_extn_ssr_init(struct audio_device *adev, struct stream_in *in); int32_t audio_extn_ssr_init(struct stream_in *in); int32_t audio_extn_ssr_deinit(); void audio_extn_ssr_update_enabled(); bool audio_extn_ssr_get_enabled(); Loading Loading @@ -183,7 +182,7 @@ bool audio_extn_spkr_prot_is_enabled(); #endif #ifndef COMPRESS_CAPTURE_ENABLED #define audio_extn_compr_cap_init(adev,in) (0) #define audio_extn_compr_cap_init(in) (0) #define audio_extn_compr_cap_enabled() (0) #define audio_extn_compr_cap_format_supported(format) (0) #define audio_extn_compr_cap_usecase_supported(usecase) (0) Loading @@ -191,8 +190,7 @@ bool audio_extn_spkr_prot_is_enabled(); #define audio_extn_compr_cap_read(in, buffer, bytes) (0) #define audio_extn_compr_cap_deinit() (0) #else void audio_extn_compr_cap_init(struct audio_device *adev, struct stream_in *in); void audio_extn_compr_cap_init(struct stream_in *in); bool audio_extn_compr_cap_enabled(); bool audio_extn_compr_cap_format_supported(audio_format_t format); bool audio_extn_compr_cap_usecase_supported(audio_usecase_t usecase); Loading Loading @@ -231,7 +229,7 @@ void audio_extn_dolby_send_ddp_endp_params(struct audio_device *adev); #ifndef HFP_ENABLED #define audio_extn_hfp_is_active(adev) (0) #define audio_extn_hfp_get_usecase() (0) #define audio_extn_hfp_get_usecase() (-1) #else bool audio_extn_hfp_is_active(struct audio_device *adev); audio_usecase_t audio_extn_hfp_get_usecase(); Loading
hal/audio_extn/compress_capture.c +1 −2 Original line number Diff line number Diff line Loading @@ -51,8 +51,7 @@ static struct compress_in_module c_in_mod = { }; void audio_extn_compr_cap_init(struct audio_device *adev, struct stream_in *in) void audio_extn_compr_cap_init(struct stream_in *in) { in->usecase = USECASE_AUDIO_RECORD_COMPRESS; in->config.channels = COMPRESS_IN_CONFIG_CHANNELS; Loading
hal/audio_extn/dolby.c +1 −1 Original line number Diff line number Diff line Loading @@ -187,7 +187,7 @@ int update_ddp_endp_table(int device, int dev_ch_cap, int param_id, void send_ddp_endp_params_stream(struct stream_out *out, int device, int dev_ch_cap, bool set_cache) bool set_cache __unused) { int idx, i; int ddp_endp_params_data[2*DDP_ENDP_NUM_PARAMS + 1]; Loading
hal/audio_extn/hfp.c +4 −6 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/ #define AUDIO_PARAMETER_KEY_HFP_VOLUME "hfp_volume" static int32_t start_hfp(struct audio_device *adev, struct str_parms *parms); struct str_parms *parms __unused); static int32_t stop_hfp(struct audio_device *adev); Loading Loading @@ -121,7 +121,7 @@ static int32_t hfp_set_volume(struct audio_device *adev, float value) } static int32_t start_hfp(struct audio_device *adev, struct str_parms *parms) struct str_parms *parms __unused) { int32_t i, ret = 0; struct audio_usecase *uc_info; Loading Loading @@ -298,12 +298,10 @@ void audio_extn_hfp_set_parameters(struct audio_device *adev, struct str_parms * if (rate == 8000){ hfpmod.ucid = USECASE_AUDIO_HFP_SCO; pcm_config_hfp.rate = rate; } else if (rate == 16000){ } else if (rate == 16000){ hfpmod.ucid = USECASE_AUDIO_HFP_SCO_WB; pcm_config_hfp.rate = rate; } else } else ALOGE("Unsupported rate.."); } Loading