Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fm-commonsys
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
vendor
qcom-opensource
fm-commonsys
Commits
27843f31
Commit
27843f31
authored
8 years ago
by
Service qcabuildsw
Committed by
Gerrit - the friendly Code Review server
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "FM: Fix KW issues found in FM" into fm.lnx.2.0.4-rel
parents
5bb41552
1f19de06
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fm_hci/fm_hci.c
+14
-2
14 additions, 2 deletions
fm_hci/fm_hci.c
helium/radio_helium_hal.c
+6
-5
6 additions, 5 deletions
helium/radio_helium_hal.c
with
20 additions
and
7 deletions
fm_hci/fm_hci.c
+
14
−
2
View file @
27843f31
...
@@ -273,14 +273,26 @@ static void *hci_read_thread(void *arg)
...
@@ -273,14 +273,26 @@ static void *hci_read_thread(void *arg)
struct
fm_event_header_t
*
evt_buf
=
(
struct
fm_event_header_t
*
)
malloc
(
sizeof
(
struct
fm_event_header_t
)
+
MAX_FM_EVT_PARAMS
);
struct
fm_event_header_t
*
evt_buf
=
(
struct
fm_event_header_t
*
)
malloc
(
sizeof
(
struct
fm_event_header_t
)
+
MAX_FM_EVT_PARAMS
);
if
(
!
evt_buf
)
if
(
!
evt_buf
)
{
length
=
read_fm_event
(
hci
,
evt_buf
,
sizeof
(
struct
fm_event_header_t
)
+
MAX_FM_EVT_PARAMS
);
ALOGE
(
"%s: Memory allocation failed for evt_buf"
,
__func__
);
goto
cleanup
;
}
length
=
read_fm_event
(
hci
,
evt_buf
,
sizeof
(
struct
fm_event_header_t
)
+
MAX_FM_EVT_PARAMS
);
ALOGD
(
"length=%d
\n
"
,
length
);
ALOGD
(
"length=%d
\n
"
,
length
);
if
(
length
<=
0
)
{
if
(
length
<=
0
)
{
lib_running
=
0
;
lib_running
=
0
;
}
}
goto
exit
;
cleanup:
lib_running
=
0
;
hci
=
NULL
;
exit:
ALOGV
(
"%s: Leaving hci_read_thread()"
,
__func__
);
ALOGV
(
"%s: Leaving hci_read_thread()"
,
__func__
);
if
(
evt_buf
)
free
(
evt_buf
);
pthread_exit
(
NULL
);
pthread_exit
(
NULL
);
return
arg
;
return
arg
;
}
}
...
...
This diff is collapsed.
Click to expand it.
helium/radio_helium_hal.c
+
6
−
5
View file @
27843f31
...
@@ -641,8 +641,11 @@ static inline void hci_ev_radio_text(char *buff)
...
@@ -641,8 +641,11 @@ static inline void hci_ev_radio_text(char *buff)
while
((
buff
[
len
+
RDS_OFFSET
]
!=
0x0d
)
&&
(
len
<
MAX_RT_LENGTH
))
while
((
buff
[
len
+
RDS_OFFSET
]
!=
0x0d
)
&&
(
len
<
MAX_RT_LENGTH
))
len
++
;
len
++
;
if
(
len
==
0
)
return
;
ALOGV
(
"%s:%s: radio text length=%d
\n
"
,
LOG_TAG
,
__func__
,
len
);
ALOGV
(
"%s:%s: radio text length=%d
\n
"
,
LOG_TAG
,
__func__
,
len
);
data
=
malloc
(
len
+
RDS_OFFSET
);
data
=
malloc
(
len
+
RDS_OFFSET
+
1
);
if
(
!
data
)
{
if
(
!
data
)
{
ALOGE
(
"%s:Failed to allocate memory"
,
LOG_TAG
);
ALOGE
(
"%s:Failed to allocate memory"
,
LOG_TAG
);
return
;
return
;
...
@@ -654,11 +657,9 @@ static inline void hci_ev_radio_text(char *buff)
...
@@ -654,11 +657,9 @@ static inline void hci_ev_radio_text(char *buff)
data
[
3
]
=
buff
[
RDS_PID_HIGHER
];
data
[
3
]
=
buff
[
RDS_PID_HIGHER
];
data
[
4
]
=
buff
[
RT_A_B_FLAG_OFFSET
];
data
[
4
]
=
buff
[
RT_A_B_FLAG_OFFSET
];
if
(
len
>
0
)
{
memcpy
(
data
+
RDS_OFFSET
,
&
buff
[
RDS_OFFSET
],
len
);
memcpy
(
data
+
RDS_OFFSET
,
&
buff
[
RDS_OFFSET
],
len
);
data
[
len
+
RDS_OFFSET
]
=
0x00
;
}
data
[
len
+
RDS_OFFSET
]
=
0x00
;
hal
->
jni_cb
->
rt_update_cb
(
data
);
hal
->
jni_cb
->
rt_update_cb
(
data
);
free
(
data
);
free
(
data
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment