summaryrefslogtreecommitdiff
path: root/audio
AgeCommit message (Collapse)AuthorFilesLines
2011-02-24Fix DBG() calls with bogus messagesAnderson Lizardo1-1/+1
Remove unnecessary trailing newlines (already added by DBG()) and rewrite debug messages to become more useful.
2011-02-18telephony-ofono: fix resetting network status and signalLuiz Augusto von Dentz1-0/+2
This prevent using status and signal from previous active modem
2011-02-18telephony-ofono: reset indicators when a network is foundLuiz Augusto von Dentz1-0/+9
Indicators may have invalid values set from the last time they were used
2011-02-17Fix no SEP if corresponding interface is disabledDmitriy Paliy1-1/+10
A2DP sink endpoint shall not be created if A2DP sink interface is disabled. Same holds for A2DP source endpoint and A2DP source interface. Such fixes bluetoothd crash when SDP record is registered and remote device tries to connect and stream to A2DP sink which is not initialized. Dereferencing of NULL happens in source_new_stream since device->source was not created.
2011-02-16telephony-maemo6: fix not cleaning up network status on exitLuiz Augusto von Dentz1-0/+3
This may cause indicators to not be reported correctly when adapter is reset.
2011-02-16telephony-maemo6: fix not cleaning up active calls list on exitLuiz Augusto von Dentz1-0/+3
This can cause problem if the adapter is reset in the middle of a call the indicators won't be update properly.
2011-02-15Fix not updating call indicator when parsing call info replyLuiz Augusto von Dentz1-27/+36
This can happen if there is a call with a status different than idle when adaptor is turned on the call indicators weren't updated.
2011-02-15Fix not resetting indicators whenever the driver is initializedLuiz Augusto von Dentz1-0/+9
This may cause invalid values to be reported since the status of call can change during the time adaptor was off.
2011-02-13audio: Remove workaround for compiler warningsMarcel Holtmann8-9/+7
2011-02-11hfp: gateway_suspend_stream should trigger a state changeDaniel Wagner1-0/+1
When gateway_suspend_stream is called it should change the gateway state machine from PLAYING to CONNECTED.
2011-02-09Fix bluetoothd exit on badly formated AT+VTSDmitriy Paliy1-1/+7
This fixes bluetoothd exit when AT+VTS command is badly formatted, e.g. as AT+VTS\xfe\xfe[...]=1 Verification it done for the numeric value to be larger than 0x23, that corresponds to the hash '#', and to be lower than 0x44, that corresponds to 'D', such that the tone is in {0-9, *, #, A, B, C, D}.
2011-02-08Reuse same SEP when reconfiguring A2DP streamsJohan Hedberg3-0/+11
It makes sense to try to reuse the same SEP whenever possible when reconfiguring streams. In fact this is even necessary with a particular BMW car kit which doesn't allow a new stream to be set up to any other SEP.
2011-02-02Fix crash while parsering of endpoint propertiesLuiz Augusto von Dentz1-8/+17
When parsing endpoint properties application my not have set some of the mandatory properties, also the size of capability is now initialized with 0 so if the codec doesn't have any capabilities (e.g. pcm) the variable won't be used uninitialized.
2011-02-02Code cleanup: unnesessary line removed in avdtp.cDmitriy Paliy1-1/+0
2011-02-02Fix possible crash on AVDTP Suspend req timeoutDmitriy Paliy1-11/+4
This fixes possible bluetoothd crash on AVDTP Suspend request timeout if A2DP client was destroyed after the request was sent but before its timeout handled. If Suspend request times out due to any reason, then references to A2DP session and stream are cleared in unix_client. Therefore, callback cannot be removed when unix_client is destroyed (e.g. on incomming call). After that, consequent Abort request is sent. If the request times out as well, than stream_state_changed callback is invoked to change AVDTP state to Idle, which causes crash due to NULL dereferencing. Therefore, it is important to keep references to AVDTP session and stream in unix_client until it is destroyed.
2011-01-20Update a2dpsink to use new Acquire APILuiz Augusto von Dentz1-12/+7
2011-01-19Update NREC callback code to originally intended v2 stateJohan Hedberg2-15/+10
2011-01-19Add proper tracking mechanism to NRECLuiz Augusto von Dentz3-1/+84
NREC may change during the connections so it has to be tracked in order to signal changes to applications.
2011-01-19Add Routing property to MediaTransport interfaceLuiz Augusto von Dentz1-0/+4
This should indicate to the endpoint what routing the transport is using
2011-01-19Remove IMTU and OMTU properties and return its values on Acquire replyLuiz Augusto von Dentz1-23/+33
This should make Acquire blocking friendly since the client no longer has to call GetProperties to discover how much it can write/read when using the acquired file descriptor.
2011-01-19Fix use of deprecated glib on audio pluginLuiz Augusto von Dentz4-90/+97
2011-01-11Fix memory leak when calling endpoint to select capabilitiesLuiz Augusto von Dentz1-0/+1
When passing allocated memory to avdtp_service_cap_new it needs to be freed since avdtp_service_cap_new copies the memory.
2011-01-11Fix possible memory leak on each a2dp stream setupLuiz Augusto von Dentz2-11/+20
Setup capabilities were not freed when capabilities were automatically generated and not just taken as it used to be with old unix socket clients.
2011-01-11Fix possible memory leak when handling avdtp transport connectionLuiz Augusto von Dentz1-1/+3
When acting as initiator stream io already has a reference to io channel to be able to cancel if necessary.
2011-01-11Fix memory leak when calling endpoint methodLuiz Augusto von Dentz1-6/+15
The pending call must be unrefed in those cases
2011-01-10telephony-ofono: add support for Three Way Calling featureLuiz Augusto von Dentz1-4/+58
The Three Way Calling additionally support AT+CHLD values 0,3 and 4.
2011-01-10telephony-ofono: add support for Enhanced Call Control featureLuiz Augusto von Dentz1-14/+36
The Enhanced Call Control feature is simply an extension of the current AT+CHLD command: - Release Specified Call: AT+CHLD=1<idex> - Private Consultation Mode: AT+CHLD=1<idex> The new arguments for this command include an index of a specific call as indicated in the +CLCC response.
2011-01-10telephony-ofono: add proper support for AT+CHLD and AT+CKPDLuiz Augusto von Dentz1-29/+165
2011-01-10telephony-ofono: add support for inband ringtone featureLuiz Augusto von Dentz1-0/+1
2011-01-07telephony-ofono: fix not updating indicators when a call is removedLuiz Augusto von Dentz1-8/+10
In some extreme cases such as modem removal ofono may not have a chance to set the call to disconnected state so indicators would not be update properly.
2011-01-07telephony-ofono: add handling for Modem.Interfaces propertyLuiz Augusto von Dentz1-30/+155
This should make sure a modem is only used if a network is available
2011-01-07telephony-ofono: handle ofono appearing/disappearing from busLuiz Augusto von Dentz1-5/+26
2011-01-07telephony-ofono: simplify watches handling logicLuiz Augusto von Dentz1-52/+33
2011-01-07telephony-ofono: fix not canceling pending calls on exitLuiz Augusto von Dentz1-1/+18
2011-01-07telephony-ofono: make use of GetCalls methodLuiz Augusto von Dentz1-236/+279
2011-01-07telephony-ofono: make use of GetModems methodLuiz Augusto von Dentz1-100/+171
Ofono API has changed, modem list is no longer a property
2011-01-07telephony-ofono: fix not setting originating when status property changesLuiz Augusto von Dentz1-0/+2
2011-01-07telephony-ofono: fix not being able to answer alerting/waiting callsLuiz Augusto von Dentz1-1/+8
2011-01-07telephony-ofono: notify alerting calls when headset connectsLuiz Augusto von Dentz1-0/+23
2010-12-27Fix printing D-Bus errors when headset record could not be foundLuiz Augusto von Dentz1-1/+2
When connection is started via headset_config_stream there is no D-Bus message to reply to.
2010-12-22Configure HFP/HSP endpoints if headset interface is already connectedLuiz Augusto von Dentz1-2/+11
HFP/HSP can be connected when registering an endpoint which is different than on a2dp where the sep cannot be configured already since it wasn't available before.
2010-12-19Add manager_foreach_adapter()Johan Hedberg2-2/+2
Ultimately manager_get_adapters shouldn't be needed at all. By introducing manager_foreach_adapter most instances can be removed.
2010-12-16Add AVDTP SRC stream send buffer size verificationDmitriy Paliy1-0/+53
Functions get_send_buffer_size and set_send_buffer_size are added to avdpt.c. get_send_buffer_size returns size of send buffer for a given socket on success or error code on failure. set_send_buffer_size sets size of send buffer for a given socket, and returns 0 on success or error code on failure. Size of send buffer for L2CAP socket for SRC AVDTP stream is verified during establishment of a new transport channel. If the size is less than twice of outgoing L2CAP MTU, then it is considered as being insufficient to handle streaming data reliably. In this case buffer size is increased to be twice of MTU size. Such fixes some IOP problems with car-kits that use large MTU for music playback.
2010-12-16Convert more D-Bus errors to btd_error_*Gustavo F. Padovan1-8/+2
2010-12-16Add btd_error_not_ready()Gustavo F. Padovan1-2/+1
2010-12-16Add btd_error_agent_not_available()Gustavo F. Padovan1-2/+1
2010-12-16Fix sending duplicate speaker/microphone gains to the headsetLuiz Augusto von Dentz1-4/+8
Current code only prevent duplicate D-Bus signals, so in case headset changes the volume a client may set the same volume level again which would be send as new volume level. To fix this headset_set_gain now return -EALREADY if nothing has changed so code using it can just ignore the change instead of sending to remote device.
2010-12-16Fix not calling SetConfiguration on hfp/hsp endpoints before connectedLuiz Augusto von Dentz1-7/+4
This cause some clients like PulseAudio to fail to find a proper transport since connected state is send before transport configuration is set. To fix this now SetConfiguration is called early on when headset is still in connecting phase, this matches sink/source where SetConfiguration is also called before connected.
2010-12-16Remove error_common_reply()Gustavo F. Padovan4-36/+33
Remove old dbus error report function. This patch doesn't make things really really better, but is a start.
2010-12-15Fix invalid g_io_channel_unref call in hf_io_cbJohan Hedberg1-1/+0