summaryrefslogtreecommitdiffstats
path: root/audio/ctl_bluetooth.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-12-04 19:42:00 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-12-04 19:42:00 +0000
commitd51c190ddd0c2774509d0284979b24b9b0f3524a (patch)
tree2fa2dac6abc9633e3f4a6495c2f6a2380be97447 /audio/ctl_bluetooth.c
parent2934e194f3ffe754e18477113c870a7b98f88454 (diff)
Fix error messages. (thanks to fchevalier for the patch)
Diffstat (limited to 'audio/ctl_bluetooth.c')
-rw-r--r--audio/ctl_bluetooth.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/audio/ctl_bluetooth.c b/audio/ctl_bluetooth.c
index 5c198b1a..04185b36 100644
--- a/audio/ctl_bluetooth.c
+++ b/audio/ctl_bluetooth.c
@@ -164,24 +164,24 @@ static int bluetooth_send_ctl(struct bluetooth_data *data,
return -errno;
}
- type = bt_audio_strmsg(ctl_rsp->h.msg_type);
+ type = bt_audio_strmsg(ctl_rsp->rsp_h.msg_h.msg_type);
if (!type) {
SNDERR("Bogus message type %d "
"received from audio service",
- ctl_rsp->h.msg_type);
+ ctl_rsp->rsp_h.msg_h.msg_type);
return -EINVAL;
}
- if (ctl_rsp->h.msg_type != BT_CONTROL_RSP) {
+ if (ctl_rsp->rsp_h.msg_h.msg_type != BT_CONTROL_RSP) {
SNDERR("Unexpected message %s received", type);
return -EINVAL;
}
- if (ctl_rsp->posix_errno != 0) {
+ if (ctl_rsp->rsp_h.posix_errno != 0) {
SNDERR("BT_CONTROL failed : %s (%d)",
- strerror(ctl_rsp->posix_errno),
- ctl_rsp->posix_errno);
- return -ctl_rsp->posix_errno;
+ strerror(ctl_rsp->rsp_h.posix_errno),
+ ctl_rsp->rsp_h.posix_errno);
+ return -ctl_rsp->rsp_h.posix_errno;
}
return 0;