port-serial-qcdm: allow specifying input subsystem

We have assumed until now that all QCDM ports are based on TTY
drivers, e.g. exposed via USB.

This may no longer be true, so allow creating QCDM ports with
an explicit subsystem instead of defaulting always to TTY.
This commit is contained in:
Aleksander Morgado
2020-11-09 18:41:57 +01:00
parent 56fca14473
commit 4ec2db75b8
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ base_modem_create_tty_port (MMBaseModem *self,
const gchar *flow_control_tag;
if (ptype == MM_PORT_TYPE_QCDM)
port = MM_PORT (mm_port_serial_qcdm_new (name));
port = MM_PORT (mm_port_serial_qcdm_new (name, MM_PORT_SUBSYS_TTY));
else if (ptype == MM_PORT_TYPE_GPS)
port = MM_PORT (mm_port_serial_gps_new (name));
else if (ptype == MM_PORT_TYPE_AUDIO)