diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2014-10-24 22:51:33 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-10-24 22:51:33 -0700 |
commit | df80f867a3a8092e94a97225388e3360e06cb31b (patch) | |
tree | fa88e72feefa751a912160922099c2c7dd18f52b | |
parent | 94d782cf5020abff684cc00e615d5782b4bf5044 (diff) | |
parent | 445f73c7d77851c323ac284581e67718d7d5edfb (diff) | |
download | android_hardware_qcom_audio-df80f867a3a8092e94a97225388e3360e06cb31b.tar.gz android_hardware_qcom_audio-df80f867a3a8092e94a97225388e3360e06cb31b.tar.bz2 android_hardware_qcom_audio-df80f867a3a8092e94a97225388e3360e06cb31b.zip |
Merge "hal: Remove checks for 24 bit platform support"
-rw-r--r-- | hal/audio_hw.c | 5 | ||||
-rw-r--r-- | hal/msm8916/platform.c | 4 | ||||
-rw-r--r-- | hal/msm8960/platform.c | 4 | ||||
-rw-r--r-- | hal/msm8974/platform.c | 17 | ||||
-rw-r--r-- | hal/platform_api.h | 1 |
5 files changed, 0 insertions, 31 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c index c4ad4c93..9de620fd 100644 --- a/hal/audio_hw.c +++ b/hal/audio_hw.c @@ -2671,11 +2671,6 @@ static int adev_open_output_stream(struct audio_hw_device *dev, out->compr_config.codec->format = SNDRV_PCM_FORMAT_S24_LE; } - if (out->bit_width == 24 && !platform_check_24_bit_support()) { - ALOGW("24 bit support is not enabled, using 16 bit backend"); - out->compr_config.codec->format = SNDRV_PCM_FORMAT_S16_LE; - } - if (config->offload_info.format == AUDIO_FORMAT_FLAC) out->compr_config.codec->options.flac_dec.sample_size = PCM_OUTPUT_BIT_WIDTH; diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c index c7d155c3..2dccbfbb 100644 --- a/hal/msm8916/platform.c +++ b/hal/msm8916/platform.c @@ -2281,10 +2281,6 @@ uint32_t platform_get_pcm_offload_buffer_size(audio_offload_info_t* info) return fragment_size; } -bool platform_check_24_bit_support() { - return false; -} - bool platform_check_and_set_codec_backend_cfg(struct audio_device* adev __unused, struct audio_usecase *usecase __unused) { diff --git a/hal/msm8960/platform.c b/hal/msm8960/platform.c index e2c30f4b..eea10dad 100644 --- a/hal/msm8960/platform.c +++ b/hal/msm8960/platform.c @@ -1030,10 +1030,6 @@ bool platform_listen_usecase_needs_event(audio_usecase_t uc_id __unused) return false; } -bool platform_check_24_bit_support() { - return false; -} - bool platform_check_and_set_codec_backend_cfg(struct audio_device* adev __unused, struct audio_usecase *usecase __unused) { diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c index dd4bc68d..a0a9321d 100644 --- a/hal/msm8974/platform.c +++ b/hal/msm8974/platform.c @@ -2538,17 +2538,6 @@ uint32_t platform_get_pcm_offload_buffer_size(audio_offload_info_t* info) return fragment_size; } -bool platform_check_24_bit_support() { - - char value[PROPERTY_VALUE_MAX] = {0}; - property_get("audio.offload.24bit.enable", value, "0"); - if (atoi(value)) { - ALOGW("Property audio.offload.24bit.enable is set"); - return true; - } - return false; -} - int platform_set_codec_backend_cfg(struct audio_device* adev, unsigned int bit_width, unsigned int sample_rate) { @@ -2698,12 +2687,6 @@ bool platform_check_codec_backend_cfg(struct audio_device* adev, bool platform_check_and_set_codec_backend_cfg(struct audio_device* adev, struct audio_usecase *usecase) { - // check if 24bit configuration is enabled first - if (!platform_check_24_bit_support()) { - ALOGW("24bit not enable, no need to check for backend change"); - return false; - } - ALOGV("platform_check_and_set_codec_backend_cfg usecase = %d",usecase->id ); unsigned int new_bit_width, old_bit_width; diff --git a/hal/platform_api.h b/hal/platform_api.h index b11a0c7c..520b27b2 100644 --- a/hal/platform_api.h +++ b/hal/platform_api.h @@ -89,7 +89,6 @@ uint32_t platform_get_compress_offload_buffer_size(audio_offload_info_t* info); uint32_t platform_get_pcm_offload_buffer_size(audio_offload_info_t* info); bool platform_check_and_set_codec_backend_cfg(struct audio_device* adev, struct audio_usecase *usecase); -bool platform_check_24_bit_support(); int platform_get_usecase_index(const char * usecase); int platform_set_usecase_pcm_id(audio_usecase_t usecase, int32_t type, int32_t pcm_id); void platform_set_echo_reference(void *platform, bool enable); |