diff options
| author | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-08-12 18:59:36 -0300 | 
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-08-12 18:59:36 -0300 | 
| commit | 8de21fda4fdeaa150c7e6d8ec579f4593d2c567c (patch) | |
| tree | 6bc4f6650d4a055bad019340a94ff38739590d02 /audio/headset.c | |
| parent | cfb4d2ae65f9dc2c2f792dfeb1afc164ee598efc (diff) | |
Make audio plugin to register adapter drivers.
Diffstat (limited to 'audio/headset.c')
| -rw-r--r-- | audio/headset.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/audio/headset.c b/audio/headset.c index bcbc9e8a..c3825851 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -709,7 +709,8 @@ static void rfcomm_connect_cb(GIOChannel *chan, int err, const bdaddr_t *src,  	hs->rfcomm = chan;  	p->io = NULL; -	if (server_is_enabled(HANDSFREE_SVCLASS_ID) && hs->hfp_handle != 0) +	if (server_is_enabled(&dev->src, HANDSFREE_SVCLASS_ID) && +			hs->hfp_handle != 0)  		hs->hfp_active = TRUE;  	else  		hs->hfp_active = FALSE; @@ -1519,7 +1520,7 @@ struct headset *headset_init(struct audio_device *dev, sdp_record_t *record,  	hs->rfcomm_ch = -1;  	hs->sp_gain = -1;  	hs->mic_gain = -1; -	hs->search_hfp = server_is_enabled(HANDSFREE_SVCLASS_ID); +	hs->search_hfp = server_is_enabled(&dev->src, HANDSFREE_SVCLASS_ID);  	hs->hfp_active = FALSE;  	hs->cli_active = FALSE;  	hs->ph_number = NULL; | 
