diff options
author | Manish Dewangan <manish@codeaurora.org> | 2017-06-09 12:28:37 +0530 |
---|---|---|
committer | Shiv Maliyappanahalli <smaliyap@codeaurora.org> | 2017-08-15 14:52:03 -0700 |
commit | 37864bc1d9e8332d57f04b6bcc2bda223591b2dd (patch) | |
tree | 5b51af4254e0d187398e4e645d1deb26cd611853 /hal/audio_extn/audio_extn.h | |
parent | e64c61e84de88970295701a476c9d20b2f8ddde5 (diff) | |
download | hardware_qcom_audio-37864bc1d9e8332d57f04b6bcc2bda223591b2dd.tar.gz hardware_qcom_audio-37864bc1d9e8332d57f04b6bcc2bda223591b2dd.tar.bz2 hardware_qcom_audio-37864bc1d9e8332d57f04b6bcc2bda223591b2dd.zip |
audio: hal: update backend configuration for DTS passthrough
-For DTS passthrough usecase derive IEC61937 transmissing rate and
channels from DTS frame parser as backend needs to be configured as
per transmission rate and not based on stream sample rate and channels.
CRs-Fixed: 2049605
Change-Id: I9d5703d4b4d3485df629b9f169487e8be852ad7a
Diffstat (limited to 'hal/audio_extn/audio_extn.h')
-rw-r--r-- | hal/audio_extn/audio_extn.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/hal/audio_extn/audio_extn.h b/hal/audio_extn/audio_extn.h index 67a8e265..87723029 100644 --- a/hal/audio_extn/audio_extn.h +++ b/hal/audio_extn/audio_extn.h @@ -480,7 +480,7 @@ enum { #define HDMI_PASSTHROUGH_MAX_SAMPLE_RATE 192000 #ifndef HDMI_PASSTHROUGH_ENABLED -#define audio_extn_passthru_update_stream_configuration(adev, out) (0) +#define audio_extn_passthru_update_stream_configuration(adev, out, buffer, bytes) (0) #define audio_extn_passthru_is_convert_supported(adev, out) (0) #define audio_extn_passthru_is_passt_supported(adev, out) (0) #define audio_extn_passthru_is_passthrough_stream(out) (0) @@ -497,13 +497,15 @@ enum { #define audio_extn_passthru_set_parameters(a, p) (-ENOSYS) #define audio_extn_passthru_init(a) do {} while(0) #define audio_extn_passthru_should_standby(o) (1) +#define audio_extn_passthru_get_channel_count(out) (0) #else bool audio_extn_passthru_is_convert_supported(struct audio_device *adev, struct stream_out *out); bool audio_extn_passthru_is_passt_supported(struct audio_device *adev, struct stream_out *out); -void audio_extn_passthru_update_stream_configuration(struct audio_device *adev, - struct stream_out *out); +void audio_extn_passthru_update_stream_configuration( + struct audio_device *adev, struct stream_out *out, + const void *buffer, size_t bytes); bool audio_extn_passthru_is_passthrough_stream(struct stream_out *out); int audio_extn_passthru_get_buffer_size(audio_offload_info_t* info); int audio_extn_passthru_set_volume(struct stream_out *out, int mute); @@ -519,6 +521,7 @@ bool audio_extn_passthru_is_enabled(); bool audio_extn_passthru_is_active(); void audio_extn_passthru_init(struct audio_device *adev); bool audio_extn_passthru_should_standby(struct stream_out *out); +int audio_extn_passthru_get_channel_count(struct stream_out *out); #endif #ifndef HFP_ENABLED |