Fix hsp rate and channels.
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Mon, 19 Jan 2009 13:19:53 +0000 (10:19 -0300)
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Mon, 19 Jan 2009 13:19:53 +0000 (10:19 -0300)
src/modules/bluetooth/module-bluetooth-device.c

index cb4746a..b22578e 100644 (file)
@@ -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;