platform_hardware_libhardware/modules
Liu Changcheng f292d562d4 tune command execute time to resolve FPE_INTDIV error
There's below error which trigger FPE_INTDIV becuase tuner->config isn't
set in time.

CMD_TUNE is executed before CMD_CONFIG after being opened immediately
11:27:10.307 21151 21151 I radio_hw_stub: rdev_open_tuner rdev 0x7b36ea03e000
11:27:10.307 21151 21151 V radio_hw_stub: send_command_l 1 delay_ms 500
11:27:10.307 21151 21151 V radio_hw_stub: send_command_l CMD_CONFIG type 0
11:27:10.307 21151 21151 I radio_hw_stub: rdev_open_tuner DONE
11:27:10.307 21151 22015 I radio_hw_stub: callback_thread_loop
11:27:10.603 21151 22015 E radio_hw_stub: callback_thread_loop processing command 4 time 1321010830.603019830
11:27:10.604 21151 22015 F libc    : Fatal signal 8 (SIGFPE), code 1, fault addr 0x7b36e704b5d6 in tid 22015 (sound trigger c)
11:27:10.632 22021 22021 F DEBUG   : signal 8 (SIGFPE), code 1 (FPE_INTDIV), fault addr 0x7b36e704b5d6

There's no need to use seq lock to correct the sequence. Adjust the time
is the simple way to fix above error.

Change-Id: I1bd5535840fe990db1f6c355af85c93443d9de87
Signed-off-by: Liu Changcheng <changcheng.liu@intel.com>
Signed-off-by: Jerry Liu <primerlink@gmail.com>
2017-04-18 09:00:32 +08:00
..
audio Merge "audio.*.default: remove unneeded dependency/IWYU" 2017-04-12 15:49:42 +00:00
audio_remote_submix libhardware: deprecate cutils/log.h 2017-04-11 10:50:06 -07:00
camera libhardware: deprecate cutils/log.h 2017-04-11 10:50:06 -07:00
consumerir consumerir.default: remove unneeded dependency. 2017-04-12 18:51:15 +00:00
fingerprint libhardware: deprecate cutils/log.h 2017-04-11 10:50:06 -07:00
gralloc libhardware: deprecate cutils/log.h 2017-04-11 10:50:06 -07:00
hwcomposer libhardware: deprecate cutils/log.h 2017-04-11 10:50:06 -07:00
input Only log when actually receiving actual switch events. 2015-11-25 16:51:44 +00:00
local_time libhardware: deprecate cutils/log.h 2017-04-11 10:50:06 -07:00
nfc Begin converting Android.mk to Android.bp 2016-07-12 23:34:37 -07:00
nfc-nci libhardware: deprecate cutils/log.h 2017-04-11 10:50:06 -07:00
power modules/power: Silence compiler warnings 2016-08-25 06:13:52 -07:00
radio tune command execute time to resolve FPE_INTDIV error 2017-04-18 09:00:32 +08:00
sensors libhardware: deprecate cutils/log.h 2017-04-11 10:50:06 -07:00
soundtrigger libhardware: deprecate cutils/log.h 2017-04-11 10:50:06 -07:00
thermal Add else branch to avoide fclose(NULL) 2016-11-16 09:26:53 +08:00
tv_input libhardware: deprecate cutils/log.h 2017-04-11 10:50:06 -07:00
usbaudio Simplify and clarify channel count/mask calculation for stream open routines. 2016-06-13 13:59:59 -06:00
usbcamera libhardware: deprecate cutils/log.h 2017-04-11 10:50:06 -07:00
vehicle libhardware: deprecate cutils/log.h 2017-04-11 10:50:06 -07:00
vibrator libhardware: deprecate cutils/log.h 2017-04-11 10:50:06 -07:00
vr Add HAL for VR mode. 2016-01-27 17:58:31 -08:00
Android.mk Add radio HAL stub to the build list; fix format warning. 2017-02-08 15:04:31 -08:00
README.android auto import from //depot/cupcake/@135843 2009-03-03 19:32:14 -08:00

Default (and possibly architecture dependents) HAL modules go here. 


libhardware.so eventually should contain *just* the HAL hub
(hardware.c), everything in it should be rewritten as modules.

Modules are .so in /system/libs/hw/ and have a well defined naming
convention:

    /system/libs/hw/<*_HARDWARE_MODULE_ID>.<ro.product.board>.so
    /system/libs/hw/<*_HARDWARE_MODULE_ID>.<ro.board.platform>.so
    /system/libs/hw/<*_HARDWARE_MODULE_ID>.<ro.arch>.so
    /system/libs/hw/<*_HARDWARE_MODULE_ID>.default.so

They also have a well defined interface which lives in include/hardware/.

A module can have several variants: "default", "arch" and "board", and they're
loaded in the "board", "arch" and "default" order.
The source code for the "board" variant, usually lives under partners/...

The source code for "default" and "arch" would usually
live under hardware/modules/.