Loading hal/audio_extn/utils.c +2 −1 Original line number Diff line number Diff line Loading @@ -1244,7 +1244,8 @@ uint32_t get_alsa_fragment_size(uint32_t bytes_per_sample, *be multiple of (number of channels * bytes per sample) *For writes to succeed, the buffer must be written at address which is multiple of 32 */ fragment_size = ALIGN(fragment_size, (bytes_per_sample * noOfChannels * 32)); fragment_size = ALIGN(fragment_size, (bytes_per_sample * noOfChannels)); fragment_size = ALIGN(fragment_size, 32); ALOGI("PCM offload Fragment size to %d bytes", fragment_size); return fragment_size; Loading hal/msm8974/platform.h +1 −1 Original line number Diff line number Diff line Loading @@ -298,7 +298,7 @@ enum { /* Used in calculating fragment size for pcm offload */ #define PCM_OFFLOAD_BUFFER_DURATION 40 /* 40 millisecs */ #define PCM_OFFLOAD_BUFFER_DURATION 80 /* 80 millisecs */ /* MAX PCM fragment size cannot be increased further due * to flinger's cblk size of 1mb,and it has to be a multiple of Loading Loading
hal/audio_extn/utils.c +2 −1 Original line number Diff line number Diff line Loading @@ -1244,7 +1244,8 @@ uint32_t get_alsa_fragment_size(uint32_t bytes_per_sample, *be multiple of (number of channels * bytes per sample) *For writes to succeed, the buffer must be written at address which is multiple of 32 */ fragment_size = ALIGN(fragment_size, (bytes_per_sample * noOfChannels * 32)); fragment_size = ALIGN(fragment_size, (bytes_per_sample * noOfChannels)); fragment_size = ALIGN(fragment_size, 32); ALOGI("PCM offload Fragment size to %d bytes", fragment_size); return fragment_size; Loading
hal/msm8974/platform.h +1 −1 Original line number Diff line number Diff line Loading @@ -298,7 +298,7 @@ enum { /* Used in calculating fragment size for pcm offload */ #define PCM_OFFLOAD_BUFFER_DURATION 40 /* 40 millisecs */ #define PCM_OFFLOAD_BUFFER_DURATION 80 /* 80 millisecs */ /* MAX PCM fragment size cannot be increased further due * to flinger's cblk size of 1mb,and it has to be a multiple of Loading