diff options
author | Sangchul Lee <sc11.lee@samsung.com> | 2016-01-15 10:51:30 +0900 |
---|---|---|
committer | Sangchul Lee <sc11.lee@samsung.com> | 2016-01-15 11:13:19 +0900 |
commit | 66cebc127215e96f7abdb55a3fd5b5ad9d686969 (patch) | |
tree | 6fec41d31a8f2132dde794d1b7d70b2011ca693d | |
parent | 37cf7b5563b75a541f9ac3864aed8dd1bd3d53f7 (diff) | |
download | audio-hal-max98090-66cebc127215e96f7abdb55a3fd5b5ad9d686969.tar.gz audio-hal-max98090-66cebc127215e96f7abdb55a3fd5b5ad9d686969.tar.bz2 audio-hal-max98090-66cebc127215e96f7abdb55a3fd5b5ad9d686969.zip |
Send message for setting valiables(latency,adjust time) when the loopback stream is incomingsubmit/tizen_tv/20160115.045016accepted/tizen/tv/20160115.114948
[Version] 0.2.15
[Profile] TV
[Issue Type] Feature Enhancement
Change-Id: Iddc7a6fae45f08eeabcc224a3ed079b66d9255f8
-rw-r--r-- | packaging/audio-hal-max98090.spec | 2 | ||||
-rw-r--r-- | tizen-audio-device.c | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/packaging/audio-hal-max98090.spec b/packaging/audio-hal-max98090.spec index db53dbb..1d9ce95 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.14 +Version: 0.2.15 Release: 0 Group: System/Libraries License: Apache-2.0 diff --git a/tizen-audio-device.c b/tizen-audio-device.c index 25de3cb..afc0af6 100644 --- a/tizen-audio-device.c +++ b/tizen-audio-device.c @@ -286,6 +286,8 @@ static audio_return_t _do_route_reset(audio_hal_t *ah, uint32_t direction) return audio_ret; } +#define LOOPBACK_ARG_LATENCY_MSEC 40 +#define LOOPBACK_ARG_ADJUST_TIME_SEC 3 audio_return_t audio_do_route(void *audio_handle, audio_route_info_t *info) { audio_return_t audio_ret = AUDIO_RET_OK; @@ -310,6 +312,11 @@ audio_return_t audio_do_route(void *audio_handle, audio_route_info_t *info) AUDIO_LOG_WARN("set reset return 0x%x", audio_ret); } } else { + /* send latency and adjust time for loopback */ + if (!strncmp("loopback", info->role, MAX_NAME_LEN)) { + _audio_comm_send_message(ah, "loopback::latency", LOOPBACK_ARG_LATENCY_MSEC); + _audio_comm_send_message(ah, "loopback::adjust_time", LOOPBACK_ARG_ADJUST_TIME_SEC); + } /* need to prepare for "alarm","notification","emergency","voice-information","voice-recognition","ringtone" */ audio_ret = _do_route_ap_playback_capture(ah, info); if (AUDIO_IS_ERROR(audio_ret)) { |