OSDN Git Service

android/hal-audio: Make audio socket non-blocking
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Wed, 16 Apr 2014 23:50:35 +0000 (01:50 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 17 Apr 2014 06:51:17 +0000 (09:51 +0300)
commit8a57bbdc4cade7cdc77e778f508601662ea5f6f2
treea0f5fb5443b9885108cb22a03478407384f0de61
parent1daf36c8f3ecea9452c68ebc3790e1e4aae98841
android/hal-audio: Make audio socket non-blocking

This patch makes writing to audio socket non-blocking since there's no
point in waiting indefinitely to write some data. Instead, we wait no
more than 500ms for socket to be ready and just skip packet otherwise.
android/hal-audio.c