Loading hal/audio_extn/audio_extn.c +1 −1 Original line number Diff line number Diff line Loading @@ -210,7 +210,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 @@ -87,7 +87,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 @@ -125,14 +125,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 @@ -234,7 +233,7 @@ void audio_extn_spkr_prot_calib_cancel(void *adev); #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 @@ -242,8 +241,7 @@ void audio_extn_spkr_prot_calib_cancel(void *adev); #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 @@ -284,7 +282,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 +2 −3 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 Loading @@ -137,7 +136,7 @@ size_t audio_extn_compr_cap_read(struct stream_in * in, header->frame_size = bytes - sizeof(*header) - header->reserved[0]; } ALOGV("c_in_buf: %p, data offset: %p, header size: %u," ALOGV("c_in_buf: %p, data offset: %p, header size: %zu," "reserved[0]: %u frame_size: %d", c_in_mod.in_buf, c_in_mod.in_buf + c_in_header, sizeof(*header), header->reserved[0], 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 +6 −8 Original line number Diff line number Diff line Loading @@ -127,7 +127,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 @@ -324,12 +324,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 @@ -210,7 +210,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 @@ -87,7 +87,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 @@ -125,14 +125,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 @@ -234,7 +233,7 @@ void audio_extn_spkr_prot_calib_cancel(void *adev); #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 @@ -242,8 +241,7 @@ void audio_extn_spkr_prot_calib_cancel(void *adev); #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 @@ -284,7 +282,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 +2 −3 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 Loading @@ -137,7 +136,7 @@ size_t audio_extn_compr_cap_read(struct stream_in * in, header->frame_size = bytes - sizeof(*header) - header->reserved[0]; } ALOGV("c_in_buf: %p, data offset: %p, header size: %u," ALOGV("c_in_buf: %p, data offset: %p, header size: %zu," "reserved[0]: %u frame_size: %d", c_in_mod.in_buf, c_in_mod.in_buf + c_in_header, sizeof(*header), header->reserved[0], 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 +6 −8 Original line number Diff line number Diff line Loading @@ -127,7 +127,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 @@ -324,12 +324,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