diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-10-15 12:35:11 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2019-10-15 13:19:10 +0200 |
commit | e3a1364ddc43e13fe86e98dfca24ef7f6f267b38 (patch) | |
tree | 9f3408bbd8b6d98f67d38ca460ee320a1dadf549 /include | |
parent | d61cb4a21cc1f3509c54f841e2eafafc3ea9a4a9 (diff) |
core: allow flagging ports as 'audio'
Instead of flagging them as 'ignored' so that they aren't probed, we
can also flag them as 'audio' now, so that the logic knows which port
to report as used for audio in the Call object.
Diffstat (limited to 'include')
-rw-r--r-- | include/ModemManager-enums.h | 4 | ||||
-rw-r--r-- | include/ModemManager-tags.h | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/include/ModemManager-enums.h b/include/ModemManager-enums.h index 1523aad7..c26e1699 100644 --- a/include/ModemManager-enums.h +++ b/include/ModemManager-enums.h @@ -514,6 +514,7 @@ typedef enum { /*< underscore_name=mm_modem_band >*/ * @MM_MODEM_PORT_TYPE_GPS: GPS port. * @MM_MODEM_PORT_TYPE_QMI: QMI port. * @MM_MODEM_PORT_TYPE_MBIM: MBIM port. + * @MM_MODEM_PORT_TYPE_AUDIO: Audio port. * * Type of modem port. */ @@ -524,7 +525,8 @@ typedef enum { /*< underscore_name=mm_modem_port_type >*/ MM_MODEM_PORT_TYPE_QCDM = 4, MM_MODEM_PORT_TYPE_GPS = 5, MM_MODEM_PORT_TYPE_QMI = 6, - MM_MODEM_PORT_TYPE_MBIM = 7 + MM_MODEM_PORT_TYPE_MBIM = 7, + MM_MODEM_PORT_TYPE_AUDIO = 8, } MMModemPortType; /** diff --git a/include/ModemManager-tags.h b/include/ModemManager-tags.h index ed65af50..8c7a76de 100644 --- a/include/ModemManager-tags.h +++ b/include/ModemManager-tags.h @@ -178,6 +178,16 @@ #define ID_MM_PORT_TYPE_GPS "ID_MM_PORT_TYPE_GPS" /** + * ID_MM_PORT_TYPE_AUDIO: + * + * This is a port-specific tag applied to TTYs that we know in advance + * are audio ports. + * + * This tag also prevents AT and QCDM probing in the port. + */ +#define ID_MM_PORT_TYPE_AUDIO "ID_MM_PORT_TYPE_AUDIO" + +/** * ID_MM_TTY_BAUDRATE: * * This is a port-specific tag applied to TTYs that require a specific |