From 97c120e3f1425d9c431c12167ca4684a0af5f844 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 25 Aug 2007 17:46:57 +0000 Subject: Use device string for the IPC --- audio/pcm_bluetooth.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'audio/pcm_bluetooth.c') 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 #include -#include -#include - #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; } -- cgit