Loading hal/audio_hw.c +14 −14 Original line number Diff line number Diff line Loading @@ -382,7 +382,7 @@ int disable_snd_device(struct audio_device *adev, /* exit usb capture thread */ if(SND_DEVICE_IN_USB_HEADSET_MIC == snd_device) audio_extn_usb_stop_capture(adev); audio_extn_usb_stop_capture(); if ((snd_device == SND_DEVICE_OUT_SPEAKER || snd_device == SND_DEVICE_OUT_VOICE_SPEAKER) && Loading Loading @@ -979,18 +979,18 @@ static void *offload_thread_loop(void *context) send_callback = false; switch(cmd->cmd) { case OFFLOAD_CMD_WAIT_FOR_BUFFER: ALOGD("copl(%x):calling compress_wait", (unsigned int)out); ALOGD("copl(%p):calling compress_wait", out); compress_wait(out->compr, -1); ALOGD("copl(%x):out of compress_wait", (unsigned int)out); ALOGD("copl(%p):out of compress_wait", out); send_callback = true; event = STREAM_CBK_EVENT_WRITE_READY; break; case OFFLOAD_CMD_PARTIAL_DRAIN: ret = compress_next_track(out->compr); if(ret == 0) { ALOGD("copl(%x):calling compress_partial_drain", (unsigned int)out); ALOGD("copl(%p):calling compress_partial_drain", out); compress_partial_drain(out->compr); ALOGD("copl(%x):out of compress_partial_drain", (unsigned int)out); ALOGD("copl(%p):out of compress_partial_drain", out); } else if(ret == -ETIMEDOUT) compress_drain(out->compr); Loading @@ -1000,9 +1000,9 @@ static void *offload_thread_loop(void *context) event = STREAM_CBK_EVENT_DRAIN_READY; break; case OFFLOAD_CMD_DRAIN: ALOGD("copl(%x):calling compress_drain", (unsigned int)out); ALOGD("copl(%p):calling compress_drain", out); compress_drain(out->compr); ALOGD("copl(%x):calling compress_drain", (unsigned int)out); ALOGD("copl(%p):calling compress_drain", out); send_callback = true; event = STREAM_CBK_EVENT_DRAIN_READY; break; Loading Loading @@ -1402,7 +1402,7 @@ static int out_standby(struct audio_stream *stream) out->pcm = NULL; } } else { ALOGD("copl(%x):standby", (unsigned int)out); ALOGD("copl(%p):standby", out); stop_compressed_output_l(out); out->gapless_mdata.encoder_delay = 0; out->gapless_mdata.encoder_padding = 0; Loading Loading @@ -1699,9 +1699,9 @@ static ssize_t out_write(struct audio_stream_out *stream, const void *buffer, } if (is_offload_usecase(out->usecase)) { ALOGD("copl(%x): writing buffer (%d bytes) to compress device", (unsigned int)out, bytes); ALOGD("copl(%p): writing buffer (%d bytes) to compress device", out, bytes); if (out->send_new_metadata) { ALOGD("copl(%x):send new gapless metadata", (unsigned int)out); ALOGD("copl(%p):send new gapless metadata", out); compress_set_gapless_metadata(out->compr, &out->gapless_mdata); out->send_new_metadata = 0; } Loading Loading @@ -1851,7 +1851,7 @@ static int out_pause(struct audio_stream_out* stream) int status = -ENOSYS; ALOGV("%s", __func__); if (is_offload_usecase(out->usecase)) { ALOGD("copl(%x):pause compress driver", (unsigned int)out); ALOGD("copl(%p):pause compress driver", out); pthread_mutex_lock(&out->lock); if (out->compr != NULL && out->offload_state == OFFLOAD_STATE_PLAYING) { status = compress_pause(out->compr); Loading @@ -1868,7 +1868,7 @@ static int out_resume(struct audio_stream_out* stream) int status = -ENOSYS; ALOGV("%s", __func__); if (is_offload_usecase(out->usecase)) { ALOGD("copl(%x):resume compress driver", (unsigned int)out); ALOGD("copl(%p):resume compress driver", out); status = 0; pthread_mutex_lock(&out->lock); if (out->compr != NULL && out->offload_state == OFFLOAD_STATE_PAUSED) { Loading Loading @@ -1901,11 +1901,11 @@ static int out_flush(struct audio_stream_out* stream) struct stream_out *out = (struct stream_out *)stream; ALOGV("%s", __func__); if (is_offload_usecase(out->usecase)) { ALOGD("copl(%x):calling compress flush", (unsigned int)out); ALOGD("copl(%p):calling compress flush", out); pthread_mutex_lock(&out->lock); stop_compressed_output_l(out); pthread_mutex_unlock(&out->lock); ALOGD("copl(%x):out of compress flush", (unsigned int)out); ALOGD("copl(%p):out of compress flush", out); return 0; } return -ENOSYS; Loading hal/msm8916/platform.c +1 −1 Original line number Diff line number Diff line Loading @@ -1912,7 +1912,7 @@ uint32_t platform_get_compress_offload_buffer_size(audio_offload_info_t* info) if (info != NULL && info->has_video && info->is_streaming) { fragment_size = COMPRESS_OFFLOAD_FRAGMENT_SIZE_FOR_AV_STREAMING; ALOGV("%s: offload fragment size reduced for AV streaming to %d", __func__, out->compr_config.fragment_size); __func__, fragment_size); } fragment_size = ALIGN( fragment_size, 1024); Loading Loading
hal/audio_hw.c +14 −14 Original line number Diff line number Diff line Loading @@ -382,7 +382,7 @@ int disable_snd_device(struct audio_device *adev, /* exit usb capture thread */ if(SND_DEVICE_IN_USB_HEADSET_MIC == snd_device) audio_extn_usb_stop_capture(adev); audio_extn_usb_stop_capture(); if ((snd_device == SND_DEVICE_OUT_SPEAKER || snd_device == SND_DEVICE_OUT_VOICE_SPEAKER) && Loading Loading @@ -979,18 +979,18 @@ static void *offload_thread_loop(void *context) send_callback = false; switch(cmd->cmd) { case OFFLOAD_CMD_WAIT_FOR_BUFFER: ALOGD("copl(%x):calling compress_wait", (unsigned int)out); ALOGD("copl(%p):calling compress_wait", out); compress_wait(out->compr, -1); ALOGD("copl(%x):out of compress_wait", (unsigned int)out); ALOGD("copl(%p):out of compress_wait", out); send_callback = true; event = STREAM_CBK_EVENT_WRITE_READY; break; case OFFLOAD_CMD_PARTIAL_DRAIN: ret = compress_next_track(out->compr); if(ret == 0) { ALOGD("copl(%x):calling compress_partial_drain", (unsigned int)out); ALOGD("copl(%p):calling compress_partial_drain", out); compress_partial_drain(out->compr); ALOGD("copl(%x):out of compress_partial_drain", (unsigned int)out); ALOGD("copl(%p):out of compress_partial_drain", out); } else if(ret == -ETIMEDOUT) compress_drain(out->compr); Loading @@ -1000,9 +1000,9 @@ static void *offload_thread_loop(void *context) event = STREAM_CBK_EVENT_DRAIN_READY; break; case OFFLOAD_CMD_DRAIN: ALOGD("copl(%x):calling compress_drain", (unsigned int)out); ALOGD("copl(%p):calling compress_drain", out); compress_drain(out->compr); ALOGD("copl(%x):calling compress_drain", (unsigned int)out); ALOGD("copl(%p):calling compress_drain", out); send_callback = true; event = STREAM_CBK_EVENT_DRAIN_READY; break; Loading Loading @@ -1402,7 +1402,7 @@ static int out_standby(struct audio_stream *stream) out->pcm = NULL; } } else { ALOGD("copl(%x):standby", (unsigned int)out); ALOGD("copl(%p):standby", out); stop_compressed_output_l(out); out->gapless_mdata.encoder_delay = 0; out->gapless_mdata.encoder_padding = 0; Loading Loading @@ -1699,9 +1699,9 @@ static ssize_t out_write(struct audio_stream_out *stream, const void *buffer, } if (is_offload_usecase(out->usecase)) { ALOGD("copl(%x): writing buffer (%d bytes) to compress device", (unsigned int)out, bytes); ALOGD("copl(%p): writing buffer (%d bytes) to compress device", out, bytes); if (out->send_new_metadata) { ALOGD("copl(%x):send new gapless metadata", (unsigned int)out); ALOGD("copl(%p):send new gapless metadata", out); compress_set_gapless_metadata(out->compr, &out->gapless_mdata); out->send_new_metadata = 0; } Loading Loading @@ -1851,7 +1851,7 @@ static int out_pause(struct audio_stream_out* stream) int status = -ENOSYS; ALOGV("%s", __func__); if (is_offload_usecase(out->usecase)) { ALOGD("copl(%x):pause compress driver", (unsigned int)out); ALOGD("copl(%p):pause compress driver", out); pthread_mutex_lock(&out->lock); if (out->compr != NULL && out->offload_state == OFFLOAD_STATE_PLAYING) { status = compress_pause(out->compr); Loading @@ -1868,7 +1868,7 @@ static int out_resume(struct audio_stream_out* stream) int status = -ENOSYS; ALOGV("%s", __func__); if (is_offload_usecase(out->usecase)) { ALOGD("copl(%x):resume compress driver", (unsigned int)out); ALOGD("copl(%p):resume compress driver", out); status = 0; pthread_mutex_lock(&out->lock); if (out->compr != NULL && out->offload_state == OFFLOAD_STATE_PAUSED) { Loading Loading @@ -1901,11 +1901,11 @@ static int out_flush(struct audio_stream_out* stream) struct stream_out *out = (struct stream_out *)stream; ALOGV("%s", __func__); if (is_offload_usecase(out->usecase)) { ALOGD("copl(%x):calling compress flush", (unsigned int)out); ALOGD("copl(%p):calling compress flush", out); pthread_mutex_lock(&out->lock); stop_compressed_output_l(out); pthread_mutex_unlock(&out->lock); ALOGD("copl(%x):out of compress flush", (unsigned int)out); ALOGD("copl(%p):out of compress flush", out); return 0; } return -ENOSYS; Loading
hal/msm8916/platform.c +1 −1 Original line number Diff line number Diff line Loading @@ -1912,7 +1912,7 @@ uint32_t platform_get_compress_offload_buffer_size(audio_offload_info_t* info) if (info != NULL && info->has_video && info->is_streaming) { fragment_size = COMPRESS_OFFLOAD_FRAGMENT_SIZE_FOR_AV_STREAMING; ALOGV("%s: offload fragment size reduced for AV streaming to %d", __func__, out->compr_config.fragment_size); __func__, fragment_size); } fragment_size = ALIGN( fragment_size, 1024); Loading