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
Lennart Poettering
07db64b9d3
remove redundant cast
2009-01-27 00:53:31 +01:00
Luiz Augusto von Dentz
4460a5d5d5
Fix hsp rate and channels.
2009-01-19 10:19:53 -03:00
Lennart Poettering
29c7a28817
kill autoload stuff as planned
2009-01-15 20:07:13 +01:00
Marc-André Lureau
7e6309c77c
bluetooth: Update sbc from git upstream.
...
It contains encoding fixes, pass the conformance tests, and is now
vectorizable. Next update might include SSE and/or Neon code.
2009-01-08 19:17:37 +02:00
Luiz Augusto von Dentz
e7e6f86bbe
Fix sending wrong codec capability length.
2009-01-06 11:02:16 -03:00
Luiz Augusto von Dentz
1a96c9b0a6
Fix send and recv message sizes.
2009-01-06 11:00:44 -03:00
Luiz Augusto von Dentz
be49c92a38
Send packets with proper size.
2009-01-05 19:12:43 -03:00
Luiz Augusto von Dentz
7323e1a0a8
Update module-bluetooth-device to the new ipc.
2008-12-22 14:24:07 -03:00
Lennart Poettering
86c6fd85f1
Don't store pointer to pa_module
...
pa_module pointers might become invalid at any time, so we use the
stable uin32_t index of the module for identifying or modules instead.
2008-12-17 21:19:53 +01:00
Luiz Augusto von Dentz
dcd498c5ad
Fix bug walking on module list.
2008-12-17 21:06:46 +01:00
Lennart Poettering
60c2a82462
Merge commit 'vudentz/master'
2008-10-13 19:55:11 +02:00
Lennart Poettering
5a5d2884e0
properly remove dbus matches an filters when unloading m-b-d
2008-10-13 19:52:02 +02:00
Luiz Augusto von Dentz
931cbd19f2
Fix possible invalid read while attempting to load module-bluetooth-device.
2008-10-09 19:31:43 -03:00
Luiz Augusto von Dentz
3d7b76d159
Unload module-bluetooth-device if the remote device disconnects.
2008-10-07 10:37:57 -03:00
Lennart Poettering
fa93cb71e8
make distcheck pass
2008-10-06 03:35:46 +02:00
Luiz Augusto von Dentz
fef63d77b4
Fix loading module-bluetooth-device with an invalid parameter.
2008-10-03 18:07:07 -03:00
Luiz Augusto von Dentz
0c998b0891
Replace handlers of deprecated Connected signals with new PropertyChanged.
2008-10-03 18:07:07 -03:00
Luiz Augusto von Dentz
b205fcc17c
Cleanup module-bluetooth-discover.
2008-10-03 18:07:07 -03:00
Luiz Augusto von Dentz
20f68bcc46
Fix Connected signal handler.
2008-10-03 18:07:07 -03:00
Luiz Augusto von Dentz
04677cb925
Fix match rule problems.
2008-10-03 18:07:07 -03:00
Luiz Augusto von Dentz
0be845f3a9
Remove PropertyChanged signal handler.
2008-10-03 18:07:07 -03:00
Luiz Augusto von Dentz
3b427b7014
Add signal handlers for Connected signals.
2008-10-03 18:07:07 -03:00