diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-01-19 10:19:53 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-01-19 10:19:53 -0300 |
commit | 4460a5d5d5015b003c703f3e81c00ad0ed3ac838 (patch) | |
tree | f776998d0ec223c4045c828c86ca8ff6ac83e8da | |
parent | 5793f93350dd8f29b7bc97eb1ad38873e4ecebde (diff) |
Fix hsp rate and channels.
-rw-r--r-- | src/modules/bluetooth/module-bluetooth-device.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index cb4746a4..b22578e8 100644 --- a/src/modules/bluetooth/module-bluetooth-device.c +++ b/src/modules/bluetooth/module-bluetooth-device.c @@ -448,8 +448,11 @@ static int bt_setconf(struct userdata *u) { } u->ss.format = PA_SAMPLE_S16LE; } - else - u->ss.format = PA_SAMPLE_U8; + else { + u->ss.format = PA_SAMPLE_S16LE; + u->ss.channels = 1; + u->ss.rate = 8000; + } memset(msg.buf, 0, BT_SUGGESTED_BUFFER_SIZE); msg.setconf_req.h.type = BT_REQUEST; |