diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-02 18:16:23 +0300 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-02 18:16:23 +0300 | 
| commit | 757aa0f3e7ea0aadc61f8381481f599a1237b3b6 (patch) | |
| tree | 78aa1ac02e0338e01783a6497b0e69526aa4d580 /audio/headset.c | |
| parent | d93954332a46b1ad51297dfe2e3785bf580dac21 (diff) | |
Check HFP status before checking cli_active variable
Diffstat (limited to 'audio/headset.c')
| -rw-r--r-- | audio/headset.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/audio/headset.c b/audio/headset.c index cfd8b079..b71b4faa 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -1398,6 +1398,9 @@ static void send_foreach_headset(GSList *devices,  static int cli_cmp(struct headset *hs)  { +	if (!hs->hfp_active) +		return -1; +  	if (hs->cli_active)  		return 0;  	else | 
