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/pcm_bluetooth.c | |
parent | 184c50fd834ed54f1f137c65ab8ef461febdeb41 (diff) |
Use device string for the IPC
Diffstat (limited to 'audio/pcm_bluetooth.c')
-rw-r--r-- | audio/pcm_bluetooth.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c index 8fb560a4..0ddd67ab 100644 --- a/audio/pcm_bluetooth.c +++ b/audio/pcm_bluetooth.c @@ -36,9 +36,6 @@ #include <alsa/asoundlib.h> #include <alsa/pcm_external.h> -#include <bluetooth/bluetooth.h> -#include <bluetooth/sco.h> - #include "ipc.h" #include "sbc.h" @@ -56,6 +53,10 @@ #define DBG(fmt, arg...) #endif +#ifndef SOL_SCO +#define SOL_SCO 17 +#endif + #ifndef SCO_TXBUFS #define SCO_TXBUFS 0x03 #endif @@ -928,7 +929,7 @@ static int bluetooth_cfg(struct bluetooth_data *data, snd_config_t *conf) return -EINVAL; } - str2ba(addr, &pkt->bdaddr); + strncpy(pkt->device, addr, 18); continue; } |