455 Commits

Author SHA1 Message Date
Milanka Ringwald
747ec64600 a2dp: avdtp source sends sbc frames at constant speed
a2dp: introduce context, move common code to avdtp.c

a2dp: wrap source functionality

a2dp: enable packet handler

a2dp: draft implemetation source open stream

avrcp: add streaming connection opened/released events

avdtp source: introduce timer for storing audio data at const fr., encode into sbc, and prepare for sending

wav_util: fix return of wav_reader_read_int16

sbc: rename sbc to msbc test

sbc: improve usage output

sbc: fix makefile

sbc: remove hardcoded bitrate

avdtp: add encode/decode sine example without using ring buffer

avdtp: move ring buffer to stream endpoint

avdtp: add encode/decode test with ring buffer

sbc: use btstack_sbc_encoder_num_audio_frames - 1 audio frame contains 1 audio sample for mono and 2 for stereo

sbc: use btstack_sbc_encoder_num_audio_frames - 1 audio frame contains 1 audio sample for mono and 2 for stereo

sbc: revert sample counting

avdtp: source sending correct audio first time

avdtp: shorter timer for audio generation gets correct stream

avdtp: set state to AVDTP_STREAM_ENDPOINT_STREAMING_W2_SEND when more data is ready

avdtp: introduce transport category as mandatory

avdtp: introduce transport category as mandatory
2017-03-20 11:43:41 +01:00
Matthias Ringwald
851e09fd8a add missing field initializers in hci transport h4 (ehcill) embedded 2017-03-01 10:16:58 +01:00
Matthias Ringwald
eda85fbfc3 sm: don't store info for signed writes without ENABLE_LE_SIGNED_WRITE 2017-02-11 22:26:34 +01:00
Matthias Ringwald
7f812a1893 wav_util: annotate wav_reader_read_int16 to store in host endianess 2017-01-27 12:08:59 +01:00
Matthias Ringwald
92abe7b913 wav_util: wav_writer_write_int16 expects samples in host endianess, wav_writer_write_le_int16 expected little endian format 2017-01-26 22:00:02 +01:00
Matthias Ringwald
5a97f1ba9b winusb: dynamically pick alt setting based on voice settings and num connections 2017-01-23 23:08:33 +01:00
Matthias Ringwald
c6ac61cddc winusb: switch to alt setting #1 in usc_sco_start and back to #0 in usb_sco_stop 2017-01-23 22:27:04 +01:00
Matthias Ringwald
c4cea4ae2b winusb: extract usb_sco_[un]register_buffers, make sure to call after setting alternative setting 2017-01-23 22:01:35 +01:00
Matthias Ringwald
99fc8027cd winusb: seach for ios endpoints on interface #1, alt setting #1 2017-01-23 17:26:53 +01:00
Matthias Ringwald
a93756fc8a winusb: add iso packet sizes 2017-01-23 17:24:04 +01:00
Matthias Ringwald
b5ffb4cad6 winusb: start/stop sco transfers 2017-01-23 17:12:39 +01:00
Matthias Ringwald
b9227387ac winusb: extract usb_sco_start/usb_sco_stop 2017-01-23 16:56:32 +01:00
Matthias Ringwald
1b3ee5c3b1 winusb: track sco changes 2017-01-23 16:49:48 +01:00
Matthias Ringwald
f64229a083 libusb: use appropriate iso packet size for alternate setting 2017-01-20 22:26:57 +01:00
Matthias Ringwald
c6f9dc916d libusb: pick alt setting based on voice settings/num connections 2017-01-19 18:10:47 +01:00
Matthias Ringwald
2117d3a5b1 libusb: dynamically set alternate setting for interface #1 2017-01-19 17:55:42 +01:00
Matthias Ringwald
56e558dbc2 libusb: start/stop isochronous transfers when SCO connections change 2017-01-19 17:44:52 +01:00
Matthias Ringwald
ee752bb8db hci_transport: add set_sco_config and call when nr. of SCO connections changes 2017-01-19 17:05:43 +01:00
Matthias Ringwald
47184392b9 libusb: remove debug msg for sco cancel on shutdown 2017-01-19 14:09:28 +01:00
Matthias Ringwald
f34d119bfa libusb: use alternate setting 1 for now, add table for iso packet size for each alt setting 2017-01-19 12:12:25 +01:00
Matthias Ringwald
a8bdd0b781 windows-h4: add comment about USB driver internal buffers and SCO data 2017-01-16 22:43:37 +01:00
Matthias Ringwald
a508997d74 Merge branch 'develop' into windows-h4 2017-01-16 21:32:42 +01:00
Matthias Ringwald
19423ce79f winusb: fix compile without enable_sco_over_hci 2017-01-16 14:44:17 +01:00
Matthias Ringwald
eef5d8269f libusb: fix compile without sco over hci 2017-01-14 22:23:38 +01:00
Matthias Ringwald
e86b2fec6e embedded: handle timers when system_time overruns 2017-01-13 18:00:38 +01:00
Matthias Ringwald
ee73ad13c7 libusb: streamline names for different packet types and transfers 2017-01-11 10:29:27 +01:00
Matthias Ringwald
08dc2fad0e reduce buffers to 8 * 3 for incoming sco like with libusb 2017-01-10 15:31:26 +01:00
Matthias Ringwald
fdd329349c cleanup code 2017-01-10 12:20:18 +01:00
Matthias Ringwald
11cb6f2da3 winusb: basically working 2017-01-09 16:14:50 +01:00
Matthias Ringwald
83f31aa4d7 sco sending implemented but not working 2017-01-09 10:57:59 +01:00
Matthias Ringwald
f9644fc508 process transfers in correct order - use single active data source 2017-01-06 17:27:18 +01:00
Matthias Ringwald
f258f41689 tests to manually schedule transfers, try processing transfers in correct order 2017-01-06 16:59:51 +01:00
Matthias Ringwald
e29e1f07a3 also free ISO data buffers 2017-01-05 17:34:32 +01:00
Matthias Ringwald
cea08008b9 implement usb close 2017-01-05 17:28:25 +01:00
Matthias Ringwald
83159bb637 Probe all USB devices, check Class, SubClass, and Protocol 2017-01-05 17:10:20 +01:00
Matthias Ringwald
51a84de64a setup iso transfer after scanning for endpoints 2017-01-05 15:45:07 +01:00
Matthias Ringwald
988201648f scan for endpoints 2017-01-05 15:35:19 +01:00
Matthias Ringwald
5da690179b windows: USB implementation based on WinUSB 2017-01-04 21:59:26 +01:00
Matthias Ringwald
036dc6b8c0 windows: use 100 instead of 20 handles in runloop 2017-01-04 21:56:52 +01:00
Matthias Ringwald
9ec2630ce4 fix unused parameters warning 2016-12-22 22:16:16 +01:00
Matthias Ringwald
2b39b77181 Merge branch 'windows-h4' of https://github.com/bluekitchen/btstack into windows-h4 2016-12-19 15:35:38 +01:00
Matthias Ringwald
5c7fd12999 Merge branch 'develop' into windows-h4 2016-12-19 15:28:16 +01:00
Matthias Ringwald
1f4116c166 libusb: fix compile 2016-12-05 22:38:19 +01:00
Joep Moritz
a09e374ceb libusb: cancel outstanding SCO transfers, too. 2016-12-05 22:18:32 +01:00
Matthias Ringwald
9419a14f96 windows: store link key in current dir instead of /tmp 2016-12-02 17:45:38 +01:00
Matthias Ringwald
5ea446fa57 implement stdin_support for Windows 2016-11-30 15:27:50 +01:00
Matthias Ringwald
61dbb0731d Merge branch 'develop' into windows-h4 2016-11-30 11:32:08 +01:00
Matthias Ringwald
a1dc4edb43 stdin: add btstack_stdin_read() and use in examples 2016-11-30 11:29:55 +01:00
Matthias Ringwald
d198cb2001 stdin: drop unused blocking helper functions btstack_stdin_query_int and btstack_stdin_query_hex 2016-11-30 11:10:13 +01:00
Matthias Ringwald
ea7390156b move windows port to platform 2016-11-28 17:46:51 +01:00