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.
This commit is contained in:
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
@@ -177,6 +177,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:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user