Commit Graph

20 Commits

Author SHA1 Message Date
Jonas Bonn 67701b1c40 drivers: constify vtables
The driver vtables are read-only structures.  This patch declares them as
'const' allowing the compiler to (optionally) put them in the RELRO
section.  RELRO pages may be marked as read-only by the linker after
the relocations have been done ensuring that they aren't inadvertently
or maliciously altered at runtime.
2018-10-17 09:56:27 -05:00
Jarkko Lehtoranta 8b11ee67d7 huaweimodem: Fix AT^DDSETEX=2 timing for voice calls
Voice output serial port is enabled on some Huawei models (e.g. E169)
without problems, but for example on E173u-2 it is never enabled
during an incoming call. There might also be other Huawei models
having the same issue.

I traced the issue down to "^DDSETEX" AT command, which is used
to notify the device to start streaming audio. It seems that Ofono
sends this command too early on incoming calls. The command should
always be sent *after* the dial "D" or answer "A" command. The patch
fixes this behavior and afterwards voice will also work on E173u-2.
2012-03-24 11:50:34 -07:00
Marcel Holtmann 4e77afffb3 drivers: Update copyright information 2011-10-10 13:39:48 -07:00
Jeevaka Badrappan ec323d9c12 huaweimodem: Use defined call_status enum 2011-02-05 05:08:17 -08:00
Lucas De Marchi 0013199bc4 huaweimodem: use ofono_call initializer 2011-02-01 18:31:19 +01:00
Jeevaka Badrappan c00904e2d3 huaweimodem: remove NULL check 2011-01-29 18:39:37 +01:00
Jeevaka Badrappan 12c3cf6969 voicecall: remove ofono_cug_option 2011-01-26 16:38:15 -06:00
Jeevaka Badrappan 6e2b614e64 huaweimodem: M15 coding style fix 2011-01-12 08:06:58 -08:00
Lucas De Marchi b82a7f8511 drivers: explicitly compare pointers to NULL
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/)

// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@

- !E
+ E == NULL
// </smpl>
2010-11-29 11:37:09 -06:00
Marcel Holtmann 462d79b5fe huaweimodem: Add missing empty line 2010-09-29 23:42:55 +09:00
Denis Kenzior e14c9214eb huawei: Add release_specific to voicecall 2010-09-29 01:16:53 -05:00
Marcel Holtmann 5269a2f9be huaweimodem: Implement hangup_active callback and not hangup_all 2010-09-29 08:05:41 +09:00
Marcel Holtmann 0e398f0d56 huaweimodem: Handle option parameter on call end notification 2010-09-27 17:25:43 +09:00
Denis Kenzior 25e17334b7 huawei: Only notify for voice calls 2010-09-26 22:44:01 -05:00
Denis Kenzior 10c6bebd80 huawei: Track alerting state 2010-09-26 22:36:00 -05:00
Denis Kenzior 7d10119946 huawei: Track outgoing calls 2010-09-26 22:34:24 -05:00
Denis Kenzior 9d1aac47e7 huawei: Notify the core on connect and end call 2010-09-26 22:16:29 -05:00
Marcel Holtmann 6235b26e93 huaweimodem: Add voice call creation support 2010-09-27 08:46:15 +09:00
Marcel Holtmann 97b98fc9bf huaweimodem: Register for voice call specific notifications 2010-09-27 00:07:09 +09:00
Marcel Holtmann 521396d55b huaweimodem: Add skeleton for simple voice call driver 2010-09-26 23:51:27 +09:00