Commit graph

135 commits

Author SHA1 Message Date
Marc-André Lureau
af9f92bfaa bluetooth: update SCO over PCM with latest changes 2009-03-19 17:33:34 +02:00
Marc-André Lureau
df3f4eef2d bluetooth: load bluetooth device with connected profile 2009-03-19 17:33:33 +02:00
Marc-André Lureau
9e93b9ce0b bluetooth: stream also when source is suspended 2009-03-05 18:19:39 +02:00
Marc-André Lureau
018cadd337 bluetooth: restart timer when write begin 2009-03-05 18:19:13 +02:00
Marc-André Lureau
362d196093 bluetooth: accept temporarily unavailable error 2009-03-05 17:04:39 +02:00
Marc-André Lureau
2d903bae9a bluetooth: s/handled/not_yet_handled for signals 2009-03-05 16:16:38 +02:00
Marc-André Lureau
12ea5707b5 bluetooth: reset read/write index when starting to stream 2009-03-05 15:47:13 +02:00
Marc-André Lureau
7a8be7f91e bluetooth: don't init profile when off 2009-03-04 17:16:10 +02:00
Marc-André Lureau
683548e8bc bluetooth: service_fd could be 0 2009-03-04 17:07:45 +02:00
Marc-André Lureau
fa736887f4 bluetooth: hsp case, check l for appropriate error message 2009-03-04 17:07:45 +02:00
Colin Guthrie
86dee05aec Use LGPL 2.1 on all files previously using LGPL 2 2009-03-03 20:23:02 +00:00
Lennart Poettering
505df22add run make update-sbc 2009-03-02 14:32:36 +01:00
Lennart Poettering
cc8d51ad62 rename PA_PROP_DEVICE_CONNECTOR to PA_PROP_DEVICE_BUS 2009-03-01 20:32:32 +01:00
Lennart Poettering
cce56ab343 revise form factor list a bit, simplify and use singular everywhere 2009-03-01 20:30:37 +01:00
Lennart Poettering
2d9ae496c9 rework suspending/resuming 2009-02-22 02:00:25 +01:00
Marc-André Lureau
9f89907bfa bluetooth: fix suspend on a2dp (to do on HSP non SCO over PCM)
- s/setup_stream_fd/start_stream_fd

 - introduce stop_stream_fd to suspend properly the stream_fd (does
   not seem necessary when shuting down)

 - move {start,stop}_stream_fd to IO thread, it is also a good idea
   because it takes about 1s to setup.
2009-02-20 03:32:25 +01:00
Lennart Poettering
7bc1847596 Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio 2009-02-20 03:21:46 +01:00
Lennart Poettering
fdca6edf20 make profile names translatable 2009-02-20 01:18:37 +01:00
Marc-André Lureau
38ded3bb31 bluetooth: print SBC encoder implementation info
The encoder initialization is done lazily, so we can only get the
information once encoding start. This is abit annoying..
2009-02-18 15:20:48 +02:00
Marc-André Lureau
b4c391ee5e bluetooth: don't crash on pa_thread_mq_done() if pa_init() fail 2009-02-18 15:20:48 +02:00
Marc-André Lureau
b51e6135e8 bluetooth: update SBC from upstream 2009-02-18 15:20:08 +02:00
Lennart Poettering
0b8a6c66dc bluetooth: fix message queue/rtpoll 2009-02-16 14:17:02 +02:00
Lennart Poettering
6bb3dc82ba don't try to recycle rtpoll objects 2009-02-12 22:52:02 +01:00
Lennart Poettering
52bfd47a49 use the same service fd shutdown logic when destructing module and changing profile 2009-02-12 22:09:00 +01:00
Lennart Poettering
b18c8755d6 minor service IO fixes 2009-02-12 22:06:15 +01:00
Lennart Poettering
d9e3abaf83 the service fd is a stream socket, so handle things accordingly 2009-02-12 21:45:17 +01:00
Lennart Poettering
e82b2fd098 handle errors from BT service properly 2009-02-12 16:51:02 +01:00
Lennart Poettering
84666dbc88 properly free modargs object when init fails; don't abbreviate modargs in struct 2009-02-12 04:00:40 +01:00
Lennart Poettering
a371306710 tabs are evil 2009-02-12 03:57:59 +01:00
Lennart Poettering
a7b992face some minor fixups 2009-02-12 03:56:01 +01:00
Lennart Poettering
6ada8d1fea instead of reparsing the rate module argument when changing profile, simply restore the originally requested sample_spec, this also makes sure the channel count is properly reset 2009-02-12 03:47:27 +01:00
Lennart Poettering
f0cc23d6e5 Merge commit 'elmarco/bt-wip' 2009-02-12 03:35:57 +01:00
Marc-André Lureau
cce4359831 bluetooth: reinitialize the sample spec when switching profile
When doing init_profile(), the value u->sample_spec is modified to the
one which has been last configured. In case of HSP, it will be 8kHz.

Later on, when setting the profile to A2DP, it picks up the lower rate
available which match with current u->sample_spec.

In my case, it would be 16kHz. To circunvent the issue, I decided to
reinitialize the u->sample_spec to default value with user module
argument requested rate.
2009-02-10 23:53:36 +02:00
Marc-André Lureau
cac0f9ef2b bluetooth: export nrec 2009-02-10 16:10:00 +02:00
Marc-André Lureau
452e2b9fa0 bluetooth: suspend SCO state when over PCM 2009-02-10 16:09:56 +02:00
Marc-André Lureau
c8a240cddd bluetooth: SCO over PCM 2009-02-09 22:14:45 +02:00
Marc-André Lureau
b35ae7f531 bluetooth: reconnect to audio service when switching profile
Currently, Bluez audio service crash when reusing the same control
socket to switch to different profiles. This typically happen when
first switching from HSP to A2DP on dual headsets.
2009-02-09 22:13:46 +02:00
Luiz Augusto von Dentz
004b38f0f8 Prevent changing volume on wrong device. 2009-02-04 10:28:03 -03:00
Marc-André Lureau
539abc365f bluetooth: typo 2009-02-03 14:19:16 +02:00
Lennart Poettering
59f3001ca5 pull in new SBC/BT files 2009-02-03 01:33:48 +01:00
Lennart Poettering
390133f2dc big module-bluetooth-device.c rework 2009-02-02 01:58:48 +01:00
Lennart Poettering
62f1f3e563 make rtp.h ANSI C compliant 2009-02-02 01:54:40 +01:00
Lennart Poettering
a41d72bb2e update sbc stuff 2009-02-02 01:44:37 +01:00
Lennart Poettering
d6fdd71c02 add new functions pa_bluetooth_cleanup_name() and pa_bluetooth_get_form_factor() 2009-02-02 00:30:10 +01:00
Lennart Poettering
55e6331bed store the module index shifted by 1 to map PA_INVALID_INDEX to NULL 2009-02-02 00:25:02 +01:00
Lennart Poettering
4a75002ebe add missing files 2009-01-29 20:30:42 +01:00
Lennart Poettering
a71fa021a3 temporary commit of lennarts new bt changes 2009-01-29 16:27:27 +01:00
Lennart Poettering
daf0612e37 make things compile again 2009-01-28 04:49:07 +01:00
Marc-André Lureau
12db687acf bluetooth: cold hsp/a2dp device detection 2009-01-28 01:29:19 +02:00
Marc-André Lureau
a6a1b42c87 bluetooth: hsp volume control 2009-01-28 01:29:19 +02:00