diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-08-25 17:46:57 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-08-25 17:46:57 +0000 |
commit | 97c120e3f1425d9c431c12167ca4684a0af5f844 (patch) | |
tree | 0a8393b2d8b7261532c20b163114c8cfb847414b /audio/unix.c | |
parent | 184c50fd834ed54f1f137c65ab8ef461febdeb41 (diff) |
Use device string for the IPC
Diffstat (limited to 'audio/unix.c')
-rw-r--r-- | audio/unix.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/audio/unix.c b/audio/unix.c index a04c5bfb..246d6813 100644 --- a/audio/unix.c +++ b/audio/unix.c @@ -305,18 +305,21 @@ static void cfg_event(struct unix_client *client, struct ipc_packet *pkt, int ret, fd; unsigned int id; struct a2dp_data *a2dp; + bdaddr_t bdaddr; const char *interface = NULL; + str2ba(pkt->device, &bdaddr); + if (pkt->role == PKT_ROLE_VOICE) interface = AUDIO_HEADSET_INTERFACE; else if (pkt->role == PKT_ROLE_HIFI) interface = AUDIO_SINK_INTERFACE; - dev = manager_find_device(&pkt->bdaddr, interface, TRUE); + dev = manager_find_device(&bdaddr, interface, TRUE); if (dev) goto proceed; - dev = manager_find_device(&pkt->bdaddr, interface, FALSE); + dev = manager_find_device(&bdaddr, interface, FALSE); if (!dev) goto failed; |