Commit graph

22 commits

Author SHA1 Message Date
Tri Vo
820e9bb5aa Build radio.fm.default.vendor with BOARD_VNDK_VERSION
Bug: 37342627
Test: BOARD_VNDK_VERSION=current m -j64 radio.fm.default.vendor
Change-Id: I77ad718472f531afdcf6519f3c9979eb1b936a58
2017-06-27 12:30:28 -07:00
Liu Changcheng
d1d3a96bed 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-06-05 14:19:53 -07:00
Tomasz Wasilczyk
13f562865f Make antenna always connected.
Setting configuration shouldn't change antenna state.

Test: instrumentation
Bug: b/36863239
Change-Id: I107c8d45928de2a5bc9c04d9db327a85e5760370
2017-05-17 16:23:28 -07:00
Tomasz Wasilczyk
4b2daf73c6 Convert radio.fm.default to soong, set Werror flag and fix warnings.
It requires all devices that set AUDIOSERVER_MULTILIB := 64, to specify
64-bit binary when installed (PRODUCT_PACKAGES += radio.fm.default:64).

Bug: 37512442
Bug: 37159108
Test: it builds
Change-Id: I9be897bb1794a12953fe77665596d00519aeac28
2017-05-01 10:12:22 -07:00
Tomasz Wasilczyk
12ddfd0e2a Make double-open radio tuner failure more verbose.
Bug: b/36863239
Test: manual (watching logs)
Change-Id: I032349eaa11b4a8008f09113c3898452572db219
2017-04-17 17:05:38 -07:00
Mark Salyzyn
1ae7379baa resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution.
Bug: 34250038
Change-Id: I4196a6d5a1365106643ac6c1548fd86faffead6f
2017-04-12 09:11:38 -07:00
Mark Salyzyn
d88dfe8607 libhardware: deprecate cutils/log.h
Replace cutils/log.h with log/log.h. Sort headers. Minimize conflicts.
Add missing required headers.

Test: compile
Bug: 34250038
Change-Id: I5c0f231cbfed90b73e0538c9d32ad3226c7cc5e4
2017-04-11 10:50:06 -07:00
Po-Chien Hsueh
69646f44a5 Merge "Move default HAL libraries to vendor" 2017-03-09 05:15:37 +00:00
Tomasz Wasilczyk
ad78c8d922 Check set_configuration input to make VTS negative test pass.
Bug: b/33382424
Test: VTS
Change-Id: I11b00e0a9797a30549cca989ea5c6a09c2d513c2
2017-03-07 17:05:41 -08:00
Po-Chien Hsueh
c535b2fded Move default HAL libraries to vendor
Libraries under /hardware/libhardware/modules should go to /vendor/.

These are conventionl HALs for default implementations, most of them
are not used.

Camera and thermal are already moved in other CLs.

Bug: 35907904
Test: Compiled and checked install path. Verified on Sailfish with
$ lsof | grep default.

Change-Id: Ibde574001c01cbfea014a20a0fbbb3265e6cdc8a
2017-03-07 11:28:32 +08:00
Tomasz Wasilczyk
33683bf92b Review radio metadata allocations/deallocations.
Bug: b/34054813
Test: VTS, manual
Change-Id: I1cbd7baf5b852cd3d4cab374eb67289f3938fff3
2017-02-16 22:59:22 +00:00
Tomasz Wasilczyk
dd2f59e4ab Add radio HAL stub to the build list; fix format warning.
Test: it builds
Change-Id: Id093441b9909f564d30f8351931ee3ccf55f2617
2017-02-08 15:04:31 -08:00
Tomasz Wasilczyk
3c7297a55a Make metadata field mandatory for program info struct.
Test: VTS, manual
Change-Id: I105f960442839f512db593615e2f2548ffdded35
2017-01-06 14:19:52 -08:00
Eric Laurent
de8e013f54 stub radio HAL: fix default antenna connected state for FM.
Bug: 33583729
Change-Id: Ifbd2c95ab34a8faa7d31f4a1b2f28c6d7df38766

Test: build and run broadcast radio VTS
2016-12-13 14:21:51 -08:00
Eric Laurent
c37e6fe0ce radio: fixes in stub FM radio HAL.
Change-Id: I0adf39a08a364ffdecb1c7f618190174804865f4
2016-10-25 14:26:29 -07:00
Andy Hung
19540e344b Update audio services for 64 bit compilation
Bug: 27479136
Change-Id: I1cb6baf3c507c7004b3245176727be1fd96174df
2016-03-18 10:43:05 -07:00
Eric Laurent
854a10af10 Add debug folder for audioserver
Use /data/misc/audioserver instead of data/misc/media for
audioserver debug.

Bug: 27064332
Change-Id: Ic213ee0354d9ab1ed1980e8c3d07cd239597ad2e
2016-02-24 00:27:46 +00:00
Sanket Agarwal
56941c9a92 Merge "Add features for automotive usecases." 2015-11-05 21:20:25 +00:00
Sanket Agarwal
a83e0a84d5 Add features for automotive usecases.
1. Add clock to metadata - If the CAR does not have a clock (no network
or bad clock) then Radio RDS could be used as a proxy.
2. Add support for emergency announcement - If the CAR wants to make an
emergency announcement.
    2.1 Add support for callbacks.

Bug: b/24807501
Bug: b/22701655

Change-Id: Ie5ada889bb6dfc4a2c1b02fc1db2d48d6899bcde
(cherry picked from commit 5768372922fbdfa47afef5bb414c69d606e7c1d2)
2015-11-05 19:24:32 +00:00
Sanket Agarwal
99e1491330 Radio Hal tool to test HAL implementation.
A simple tool so that the HAL can be poked using a standalone binary.
Useful when changing the HAL and ensuring that HAL changes are
consistent with the required behavior.

 Bug: b/24807501
 Bug: b/22701655

Change-Id: I5aa3b614f83c0fd361787346a2c6d6c383fc8519
(cherry picked from commit 611bb7397be3fa341b3ef80f7a252850c68c2597)
2015-11-05 19:21:34 +00:00
Eric Laurent
acccf647af fm radio HAL: fix metadata handling
Fix potential crash due to list item removal
while processing metadata or cancel command.

Change-Id: I0c5552fcfc515e9591ce77f874c7450edb0dbf72
2015-04-27 23:05:08 +00:00
Eric Laurent
97d2ba6a11 radio stub HAL.
radio HAL stub implementation to be used for
test or reference.

Change-Id: I83294501d0bc138bcce68eb83296da6f6f4438d3
2015-03-12 16:28:46 -07:00