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
68b3f616
Commit
68b3f616
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 Radio: Wait for disable to complete" into fm.lnx.2.1-dev
parents
ffc1653b
a1805d9a
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
+7
-0
7 additions, 0 deletions
fm_hci/fm_hci.c
fm_hci/fm_hci.h
+1
-0
1 addition, 0 deletions
fm_hci/fm_hci.h
with
8 additions
and
0 deletions
fm_hci/fm_hci.c
+
7
−
0
View file @
68b3f616
...
...
@@ -677,6 +677,12 @@ void fm_hci_close(void *arg) {
return
;
}
event_notification
(
hci
,
HC_EVENT_EXIT
);
pthread_mutex_lock
(
&
hci
->
event_lock
);
again:
pthread_cond_wait
(
&
hci
->
event_cond
,
&
hci
->
event_lock
);
if
(
!
(
ready_events
&
HC_EVENT_EXIT_DONE
))
goto
again
;
pthread_mutex_unlock
(
&
hci
->
event_lock
);
}
int
fm_hci_init
(
fm_hci_hal_t
*
hci_hal
)
...
...
@@ -785,6 +791,7 @@ static void fm_hci_exit(void *arg)
vendor_close
(
hci
);
pthread_cond_broadcast
(
&
hci
->
event_cond
);
pthread_cond_broadcast
(
&
hci
->
cmd_credits_cond
);
event_notification
(
hci
,
HC_EVENT_EXIT_DONE
);
stop_rx_thread
(
hci
);
stop_tx_thread
(
hci
);
ALOGD
(
"Tx, Rx Threads join done"
);
...
...
This diff is collapsed.
Click to expand it.
fm_hci/fm_hci.h
+
1
−
0
View file @
68b3f616
...
...
@@ -46,6 +46,7 @@
#define HC_EVENT_LPM_IDLE_TIMEOUT 0x0100
#define HC_EVENT_EXIT 0x0200
#define HC_EVENT_EPILOG 0x0400
#define HC_EVENT_EXIT_DONE 0x8000
#define MAX_FM_CMD_CNT 100
#define FM_CMD 0x11
...
...
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