Commit Graph

1340 Commits

Author SHA1 Message Date
Luiz Augusto von Dentz
79501d3c33 Add proper checks for MediaTransport.SetProperty 2010-09-15 15:28:44 +03:00
Luiz Augusto von Dentz
c9a76c4044 Remove local cache for nrec and inband
Those can be acessed directly from device/headset.
2010-09-15 15:22:24 +03:00
Luiz Augusto von Dentz
d19ec4d20c Update a2dp transport delay when it changes 2010-09-15 15:22:14 +03:00
Luiz Augusto von Dentz
ad28681367 Introduce headset_get_inband 2010-09-15 15:22:06 +03:00
Luiz Augusto von Dentz
f87e1bed13 Add initial implementation of org.bluez.Media spec 2010-09-15 15:21:53 +03:00
Luiz Augusto von Dentz
3622790d16 Add support for media transport in gstreamer plugin 2010-09-15 15:05:44 +03:00
Luiz Augusto Von Dentz
c1d7443db5 Add option to enable/disable unix ipc via audio.conf 2010-09-15 15:05:44 +03:00
Luiz Augusto von Dentz
dbf642ce32 Fix crash on gstreamer plugin if device doesn't support sbc 2010-09-13 16:20:35 +03:00
Luiz Augusto von Dentz
217b1bea41 Fix closing stream of locked sep when reconfiguring
Stream should only be closed if sep is unlocked otherwise there is a
possibility that sep reconfiguration is triggered although the sep is in
use by the user application.
2010-09-08 19:46:56 +03:00
Luiz Augusto von Dentz
ce8ed402a7 Make use of ofono bus name when watching its signals 2010-09-07 23:41:36 +03:00
Luiz Augusto von Dentz
92936ce9fc Fix memory leak and possible crash when removing audio device
Memory allocated for pending authorizations were not freed when
removing/unregistering an audio device, this could also cause a crash
if the core doesn't automatically cancel pending requests.
2010-09-03 12:46:18 +03:00
Colin Didier
50c1564d86 Don't report error for EINTR
An interrupted syscall is not an error when returning from poll().
2010-08-25 16:13:58 +03:00
Colin Didier
69b0d50a87 Fix leftovers handling with bluetooth_a2dp_write
If for some reason there is not enough data provided to the function
bluetooth_a2dp_write() and there are leftovers to handle, the ALSA
module will segfault.
2010-08-25 16:13:20 +03:00
Johan Hedberg
da446f5edd Fix format string warnings for g_dbus_create_error
This patch fixes gcc warnings for "format not a string literal and no
format arguments".
2010-08-19 23:24:42 +03:00
Luiz Augusto von Dentz
368b35aaee Fix crash when there is no enough space to fragment avdtp packet
This was catch when running codenomicon tests when the output mtu is not
big enough to stuff fragmented packets.
2010-08-19 14:06:51 +03:00
Dmitriy Paliy
1e335a631b Add fast connectable support to HFP
Audio.conf is updated to support fast connectable mode. Set
FastConnectable to true to enable and to false to disable. Headset
initialization and call indicators are updated respectively. It is
disabled by default.
2010-08-18 13:46:03 +03:00
Dmitriy Paliy
7c073172d0 Add set fast connectable to audio manager
Set fast connectable added to audio manager interface. Enables
fast connectable mode for all audio adapters or sets respective
values to default when disabled. It does not interfere with any
other audio manager's interfaces, modes, or states.
2010-08-18 13:46:01 +03:00
Jose Antonio Santos Cadenas
3050083544 Fix compilation warning with gcc 4.5.0 2010-08-11 09:16:54 -04:00
Radoslaw Jablonski
7496d6ab53 Fix handling of incoming call indication when in WAITING state
Some headsets expect incoming call indication before they can send ATA
command. In current implementation of telephony we do not send outband
notyfication about incoming call when call previously was in WAITING
state. And without that kind of notyfication BH-108 and BackBeat 903
headset cannot send ATA command - user is unable to answer to that call
from headset.

Added handling for that case in func handle_call_status(). When phone now
is in CSD_CALL_STATUS_MT_ALERTING and previously was in
CSD_CALL_STATUS_WAITING that means we need to send incoming call
notyfication (it was not sent earlier because new call was waiting for end
of active call). This will send RING commands to headset if it is needed.
2010-07-14 14:06:39 -03:00
Johan Hedberg
57f39cde3e Fix missing whitespace in telephony-maemo6 2010-07-13 17:31:06 -03:00
Luiz Augusto von Dentz
9ddeed8332 telephony-maemo6: add ClearLastNumber method
ClearLastNumber can be called to indicate the driver to clear the last
dialed number
2010-07-13 17:29:37 -03:00
Dmitriy Paliy
11698717de Fix code consistency for signal strength in maemo6 telephony driver
This patch simplifies and makes maemo6 telephony driver code consistent
with libscnet API regarding SignalBarsChanged. RSSI percents and RSSI
dBs are not among the parameters when SignalBarsChanged emited.
Therefore, these parameters are removed. Names are changed to reflect
libscnet d-bus interface notations. Comments and debug information are
updated in places where units or operations are unclear.
2010-07-12 14:30:15 -03:00
Dmitriy Paliy
7b658b2bc1 Fix signal strength for HFP in maemo6 telephony
Signal strength in terms of bars units is updated by emited
SignalBarsChanged instead of SignalStrengthChanged from libscnet library.
It contains required number of bars to display in scale 0..5. Conversion
from percent or decibel units to bars is not needed and therefore removed.

Same holds when initializing by request of SignalBars, where bars are in
0..5 range. Conversion from percents is removed. Sanity check is done to
prevent -1 that may be returned when the property is unavailabe (modem
state off).

RSSI percents and dBs are neither present among SignalBarsChanged
properties nor requested during initialization and, therefore, removed.
2010-07-12 14:19:15 -03:00
Johan Hedberg
65c9310f96 Fix the ALSA plugin to match the updated libsbc API 2010-06-30 11:57:39 +03:00
Luiz Augusto von Dentz
2a6500b516 Fix possible memory leaks on ofono driver 2010-06-29 10:29:10 +03:00
Luiz Augusto von Dentz
ef1e62baec Fix not freeing memory on driver exit 2010-06-29 10:29:10 +03:00
Luiz Augusto von Dentz
0f775bfff6 Remove redundant information that is already present in DBG 2010-06-29 10:29:10 +03:00
Harri Mahonen
5eed41df3e audio: fix memory leak with typefinding
sbc structure gets leaked each time when there is no data or SBC
syncword, because sbc_finalize is not called. Call sbc_init after
checking the data for syncword.
2010-06-29 10:29:10 +03:00
Johan Hedberg
b2d8565922 Fix missing error check to dbus_message_get_args 2010-06-17 21:31:32 +03:00
Johan Hedberg
331c7dfa40 Add an error log when avdtp_close fails in stream_timeout 2010-06-17 12:26:31 +03:00
Johan Hedberg
b336e93a47 Fix memory leak 2010-06-17 09:40:56 +03:00
Johan Hedberg
f083541fe7 Fix audio profile disconnection order
According to the SIG whitepaper the order should be AVCTP, AVDTP, HFP.
2010-06-09 12:22:20 +08:00
Gustavo F. Padovan
680211cd89 audio: fix leak on gateway 2010-06-08 16:06:27 +08:00
Gustavo F. Padovan
f982f8fc51 audio: Fix typo 2010-06-08 14:22:02 +08:00
Zhu Yanhai
a4cb490fe2 Fix adapter reference counting in gateway_server_remove
gateway_server_remove should unref the adapter, not ref it.
2010-06-04 11:24:42 +03:00
Luiz Augusto von Dentz
139eb67d43 Add headset_set_gain to eliminate duplicate code 2010-05-27 15:23:03 +03:00
Luiz Augusto von Dentz
c50c5af698 Fix not emitting PropertyChanged for SpeakerGain/MicrophoneGain
Currently only the deprecated SpeakerGainChanged/MicrophoneGainChanged are
being emitted when some application set then locally.
2010-05-27 15:23:03 +03:00
Luiz Augusto von Dentz
23b5af1358 Use DBG instead of debug for more verbose output 2010-05-27 15:23:03 +03:00
Johan Hedberg
bac81ba536 Coding style cleanup 2010-05-26 13:14:25 +03:00
Luiz Augusto von Dentz
ee23600edd Fix redundant speaker/microphone gains being sent
Both D-Bus signals and +VG command are being sent without checking if their
values have really changed, this is similar to ignore redundant option used
in telephony indicators so we don't disturb the connections with redundant
information.
2010-05-25 11:21:46 +03:00
Gustavo F. Padovan
8e58667ef0 Move debug() to DBG()
Use the new dynamic debug feature
2010-05-21 18:21:48 +02:00
Gustavo F. Padovan
e891f7df62 Move logging.{c,h} to log.{c,h}
Try to make log stuff more similar to ConnMan and oFono.
2010-05-21 14:40:36 +02:00
Luiz Augusto Von Dentz
5126e1b880 Fix service indicator not sent when entering searching state 2010-05-21 11:16:39 +02:00
Marcel Holtmann
e20bd41482 Add pragma based workaround for GStreamer warnings 2010-05-19 16:59:30 +02:00
Marcel Holtmann
6aabc8a0de Revert "Fix build issues with latest GStreamer updates" 2010-05-19 16:10:26 +02:00
Marcel Holtmann
f806584c72 Fix build issues with latest GStreamer updates 2010-05-17 22:31:28 +02:00
Luiz Augusto von Dentz
5963a29e54 Fix signal strength indicator on maemo6 driver
Negative values should be interpreted as 0 since HFP does only support
positive indicators from 0 to 5.
2010-05-11 15:57:05 +03:00
Luiz Augusto von Dentz
ecf039f113 Fix operator name indicator on maemo6 driver
Operator name is empty in case of offline/flight mode is selected.
2010-05-11 10:58:23 +03:00
Luiz Augusto Von Dentz
b5eb420ebf Fix maemo6 API changes since maemo5
This should cover the changes in D-Bus API of csnet and simpb since
maemo5.
2010-04-06 12:29:53 +03:00
Luiz Augusto Von Dentz
e3300f188a Introduce maemo6 telephony driver
Copy from maemo5 driver to accomodate API changes done in maemo6.
2010-04-06 12:29:27 +03:00