diff options
author | KimJeongYeon <jeongyeon.kim@samsung.com> | 2015-08-11 11:27:12 +0900 |
---|---|---|
committer | KimJeongYeon <jeongyeon.kim@samsung.com> | 2015-08-11 11:27:25 +0900 |
commit | b842c760e228a8dfbbebd7ae569a054461e50c47 (patch) | |
tree | 572f651288e69764eac5bcc139731d792f6737b2 | |
parent | 8333b75b5d6f060dcea03c69aa7cf0438b084f23 (diff) | |
download | audio-hal-max98090-tizen_3.0.m1_mobile.tar.gz audio-hal-max98090-tizen_3.0.m1_mobile.tar.bz2 audio-hal-max98090-tizen_3.0.m1_mobile.zip |
audio-hal-max98090 fixed freeze issue while using pulsesinktizen_3.0.m2.a1_tv_releasetizen_3.0.m2.a1_mobile_releasetizen_3.0.m1_tv_releasetizen_3.0.m1_mobile_releasesubmit/tizen_common/20151026.085049submit/tizen_common/20151023.083358submit/tizen/20150811.043307accepted/tizen/wearable/20150811.060042accepted/tizen/tv/20150811.060031accepted/tizen/mobile/20150811.055954tizen_3.0.m1_tvtizen_3.0.m1_mobile
[Version] 0.2.9
[Profile] Mobile
[Issue Type] Bug
[Dependency module] NA
[Dependency commit] NA
[Comment]
Signed-off-by: KimJeongYeon <jeongyeon.kim@samsung.com>
Change-Id: I2d13a37d20046f3f8e78ab88ed576f5b03acb91b
-rw-r--r-- | packaging/audio-hal-max98090.spec | 2 | ||||
-rw-r--r-- | tizen-audio.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/packaging/audio-hal-max98090.spec b/packaging/audio-hal-max98090.spec index 01e77dd..85463be 100644 --- a/packaging/audio-hal-max98090.spec +++ b/packaging/audio-hal-max98090.spec @@ -1,6 +1,6 @@ Name: audio-hal-max98090 Summary: TIZEN Audio HAL for MAX98090 -Version: 0.2.8 +Version: 0.2.9 Release: 0 Group: System/Libraries License: Apache-2.0 diff --git a/tizen-audio.c b/tizen-audio.c index af3cb39..b674f62 100644 --- a/tizen-audio.c +++ b/tizen-audio.c @@ -261,7 +261,7 @@ audio_return_t audio_get_buffer_attr(void *userdata, period_time = PERIOD_TIME_FOR_LOW_LATENCY_MSEC; sample_per_period = (samplerate * period_time) / 1000; periods_per_buffer = PERIODS_PER_BUFFER_FASTMODE; - *prebuf = (samplerate / 100) * _audio_sample_size(format) * channels; /* 10ms */ + *prebuf = 0; *minreq = -1; *tlength = (samplerate / 10) * _audio_sample_size(format) * channels; /* 100ms */ *maxlength = -1; @@ -271,7 +271,7 @@ audio_return_t audio_get_buffer_attr(void *userdata, period_time = PERIOD_TIME_FOR_MID_LATENCY_MSEC; sample_per_period = (samplerate * period_time) / 1000; periods_per_buffer = PERIODS_PER_BUFFER_DEFAULT; - *prebuf = -1; + *prebuf = 0; *minreq = -1; *tlength = (uint32_t) _audio_usec_to_bytes(200000, samplerate, format, channels); *maxlength = -1; @@ -291,7 +291,7 @@ audio_return_t audio_get_buffer_attr(void *userdata, period_time = PERIOD_TIME_FOR_VOIP_LATENCY_MSEC; sample_per_period = (samplerate * period_time) / 1000; periods_per_buffer = PERIODS_PER_BUFFER_VOIP; - *prebuf = -1; + *prebuf = 0; *minreq = _audio_usec_to_bytes(20000, samplerate, format, channels); *tlength = _audio_usec_to_bytes(100000, samplerate, format, channels); *maxlength = -1; |