Commit graph

38 commits

Author SHA1 Message Date
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
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
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
Lennart Poettering
390133f2dc big module-bluetooth-device.c rework 2009-02-02 01:58:48 +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
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
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
fa93cb71e8 make distcheck pass 2008-10-06 03:35:46 +02:00
Luiz Augusto von Dentz
b205fcc17c Cleanup module-bluetooth-discover. 2008-10-03 18:07:07 -03:00
Lennart Poettering
3f4bc0368d all kinds of minor type, memory leak, initializatio fixes 2008-09-29 21:43:28 +02:00
Lennart Poettering
a35f84a4f9 instead of failing when the requested sampling rate is not available find the next one that is higher 2008-09-29 21:42:29 +02:00
Lennart Poettering
aa1974b7a0 Use the same module parameter names for module-bluetooth-device as for most other modules 2008-09-29 21:40:52 +02:00
João Paulo Rechi Vita
8b02c2fbc1 Change all int vars that doesn't allow negative values to uint 2008-09-11 01:12:10 +03:00
João Paulo Rechi Vita
78a3c72f60 Move bluetooth discover and device modules to src/modules/bluetooth 2008-09-11 01:12:10 +03:00
Renamed from src/modules/module-bt-device.c (Browse further)