Include device.product.name for HDMI output names
Here's my currently connected audio devices as per pactl list cards | grep -e device.product.name
:
- device.product.name = "HyperX 7.1 Audio"
- device.product.name = "AD102 High Definition Audio Controller"
- device.product.name = "LG TV
- device.product.name = "ASUS MG279
- device.product.name = "Rembrandt Radeon High Definition Audio Controller"
- device.product.name = "Sony Playstation Eye"
- device.product.name = "Family 17h/19h HD Audio Controller"
And here's how pavucontrol shows them:
As you can see, every single device uses the product name, but pavucontrol ignores the available product names for the outputs, which makes it impossible for me to tell which one is my monitor and which one is my TV in this case.
Here's a mockup of how it a solution that includes the product name could look like:
Note: There seems to be a gotcha as the product names of HDMI outputs have a newline and some spaces at the end of them, looks like a separate bug.
This would improve #39.
Here's my card output:pactl --format json list cards
json
[
{
"index": 43,
"name": "alsa_card.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00",
"driver": "alsa",
"owner_module": null,
"properties": {
"api.acp.auto-port": "false",
"api.acp.auto-profile": "false",
"api.alsa.card": "4",
"api.alsa.card.longname": "Kingston HyperX Virtual Surround Sound at usb-0000:11:00.0-2, full speed",
"api.alsa.card.name": "HyperX Virtual Surround Sound",
"api.alsa.path": "hw:4",
"api.alsa.use-acp": "true",
"api.dbus.ReserveDevice1": "Audio4",
"device.api": "alsa",
"device.bus": "usb",
"device.bus-id": "usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00",
"device.bus_path": "pci-0000:11:00.0-usb-0:2:1.0",
"device.description": "HyperX 7.1 Audio",
"device.enum.api": "udev",
"device.icon_name": "audio-card-analog-usb",
"device.name": "alsa_card.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00",
"device.nick": "HyperX Virtual Surround Sound",
"device.plugged.usec": "24122749",
"device.product.id": "0x16a4",
"device.product.name": "HyperX 7.1 Audio",
"device.serial": "Kingston_HyperX_Virtual_Surround_Sound_00000000",
"device.subsystem": "sound",
"sysfs.path": "/devices/pci0000:00/0000:00:02.1/0000:03:00.0/0000:04:08.0/0000:0a:00.0/0000:0b:0c.0/0000:11:00.0/usb2/2-2/2-2:1.0/sound/card4",
"device.vendor.id": "0x0951",
"device.vendor.name": "Kingston Technology",
"media.class": "Audio/Device",
"factory.id": "14",
"client.id": "33",
"object.id": "43",
"object.serial": "43",
"object.path": "alsa:pcm:4",
"alsa.card": "4",
"alsa.card_name": "HyperX Virtual Surround Sound",
"alsa.long_card_name": "Kingston HyperX Virtual Surround Sound at usb-0000:11:00.0-2, full speed",
"alsa.driver_name": "snd_usb_audio",
"device.string": "4"
},
"profiles": {
"off": {
"description": "Off",
"sinks": 0,
"sources": 0,
"priority": 0,
"available": true
},
"output:analog-stereo+input:analog-stereo": {
"description": "Analog Stereo Duplex",
"sinks": 1,
"sources": 1,
"priority": 6565,
"available": true
},
"output:analog-stereo+input:iec958-stereo": {
"description": "Analog Stereo Output + Digital Stereo (IEC958) Input",
"sinks": 1,
"sources": 1,
"priority": 6555,
"available": true
},
"output:analog-stereo": {
"description": "Analog Stereo Output",
"sinks": 1,
"sources": 0,
"priority": 6500,
"available": true
},
"output:iec958-stereo+input:analog-stereo": {
"description": "Digital Stereo (IEC958) Output + Analog Stereo Input",
"sinks": 1,
"sources": 1,
"priority": 5565,
"available": true
},
"output:iec958-stereo+input:iec958-stereo": {
"description": "Digital Stereo Duplex (IEC958)",
"sinks": 1,
"sources": 1,
"priority": 5555,
"available": true
},
"output:iec958-stereo": {
"description": "Digital Stereo (IEC958) Output",
"sinks": 1,
"sources": 0,
"priority": 5500,
"available": true
},
"output:iec958-ac3-surround-51+input:analog-stereo": {
"description": "Digital Surround 5.1 (IEC958/AC3) Output + Analog Stereo Input",
"sinks": 1,
"sources": 1,
"priority": 365,
"available": true
},
"output:iec958-ac3-surround-51+input:iec958-stereo": {
"description": "Digital Surround 5.1 (IEC958/AC3) Output + Digital Stereo (IEC958) Input",
"sinks": 1,
"sources": 1,
"priority": 355,
"available": true
},
"output:iec958-ac3-surround-51": {
"description": "Digital Surround 5.1 (IEC958/AC3) Output",
"sinks": 1,
"sources": 0,
"priority": 300,
"available": true
},
"input:analog-stereo": {
"description": "Analog Stereo Input",
"sinks": 0,
"sources": 1,
"priority": 65,
"available": true
},
"input:iec958-stereo": {
"description": "Digital Stereo (IEC958) Input",
"sinks": 0,
"sources": 1,
"priority": 55,
"available": true
},
"pro-audio": {
"description": "Pro Audio",
"sinks": 1,
"sources": 1,
"priority": 1,
"available": true
}
},
"active_profile": "output:analog-stereo+input:iec958-stereo",
"ports": {
"analog-input-headset-mic": {
"description": "Headset Microphone",
"type": "Headset",
"priority": 8800,
"latency_offset": "0 usec",
"availability_group": "",
"availability": "availability unknown",
"properties": {
"port.type": "headset",
"device.icon_name": "audio-input-microphone",
"card.profile.port": "0"
},
"profiles": [
"input:analog-stereo",
"output:analog-stereo+input:analog-stereo",
"output:iec958-stereo+input:analog-stereo",
"output:iec958-ac3-surround-51+input:analog-stereo"
]
},
"iec958-stereo-input": {
"description": "Digital Input (S/PDIF)",
"type": "SPDIF",
"priority": 0,
"latency_offset": "0 usec",
"availability_group": "",
"availability": "availability unknown",
"properties": {
"port.type": "spdif",
"card.profile.port": "1"
},
"profiles": [
"input:iec958-stereo",
"output:analog-stereo+input:iec958-stereo",
"output:iec958-stereo+input:iec958-stereo",
"output:iec958-ac3-surround-51+input:iec958-stereo"
]
},
"analog-output": {
"description": "Analog Output",
"type": "Analog",
"priority": 9900,
"latency_offset": "0 usec",
"availability_group": "",
"availability": "availability unknown",
"properties": {
"port.type": "analog",
"card.profile.port": "2"
},
"profiles": [
"output:analog-stereo",
"output:analog-stereo+input:analog-stereo",
"output:analog-stereo+input:iec958-stereo"
]
},
"iec958-stereo-output": {
"description": "Digital Output (S/PDIF)",
"type": "SPDIF",
"priority": 0,
"latency_offset": "0 usec",
"availability_group": "",
"availability": "availability unknown",
"properties": {
"port.type": "spdif",
"card.profile.port": "3"
},
"profiles": [
"output:iec958-stereo",
"output:iec958-stereo+input:analog-stereo",
"output:iec958-stereo+input:iec958-stereo"
]
}
}
},
{
"index": 15402,
"name": "alsa_card.pci-0000_01_00.1.5",
"driver": "alsa",
"owner_module": null,
"properties": {
"api.acp.auto-port": "false",
"api.acp.auto-profile": "false",
"api.alsa.card": "0",
"api.alsa.card.longname": "HDA NVidia at 0xfb080000 irq 132",
"api.alsa.card.name": "HDA NVidia",
"api.alsa.path": "hw:0",
"api.alsa.use-acp": "true",
"api.dbus.ReserveDevice1": "Audio0",
"device.api": "alsa",
"device.bus": "pci",
"device.bus_path": "pci-0000:01:00.1",
"device.description": "AD102 High Definition Audio Controller",
"device.enum.api": "udev",
"device.icon_name": "audio-card-analog-pci",
"device.name": "alsa_card.pci-0000_01_00.1.5",
"device.nick": "HDA NVidia",
"device.plugged.usec": "21890863",
"device.product.id": "0x22ba",
"device.product.name": "AD102 High Definition Audio Controller",
"device.subsystem": "sound",
"sysfs.path": "/devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0",
"device.vendor.id": "0x10de",
"device.vendor.name": "NVIDIA Corporation",
"media.class": "Audio/Device",
"factory.id": "14",
"client.id": "33",
"object.id": "45",
"object.serial": "15402",
"object.path": "alsa:pcm:0",
"alsa.card": "0",
"alsa.card_name": "HDA NVidia",
"alsa.long_card_name": "HDA NVidia at 0xfb080000 irq 132",
"alsa.driver_name": "snd_hda_intel",
"device.string": "0"
},
"profiles": {
"off": {
"description": "Off",
"sinks": 0,
"sources": 0,
"priority": 0,
"available": true
},
"output:hdmi-stereo": {
"description": "Digital Stereo (HDMI) Output",
"sinks": 1,
"sources": 0,
"priority": 5900,
"available": true
},
"output:hdmi-stereo-extra1": {
"description": "Digital Stereo (HDMI 2) Output",
"sinks": 1,
"sources": 0,
"priority": 5700,
"available": true
},
"output:hdmi-stereo-extra2": {
"description": "Digital Stereo (HDMI 3) Output",
"sinks": 1,
"sources": 0,
"priority": 5700,
"available": false
},
"output:hdmi-stereo-extra3": {
"description": "Digital Stereo (HDMI 4) Output",
"sinks": 1,
"sources": 0,
"priority": 5700,
"available": false
},
"output:hdmi-surround-extra1": {
"description": "Digital Surround 5.1 (HDMI 2) Output",
"sinks": 1,
"sources": 0,
"priority": 600,
"available": true
},
"output:hdmi-surround71-extra1": {
"description": "Digital Surround 7.1 (HDMI 2) Output",
"sinks": 1,
"sources": 0,
"priority": 600,
"available": true
},
"output:hdmi-surround-extra2": {
"description": "Digital Surround 5.1 (HDMI 3) Output",
"sinks": 1,
"sources": 0,
"priority": 600,
"available": false
},
"output:hdmi-surround71-extra2": {
"description": "Digital Surround 7.1 (HDMI 3) Output",
"sinks": 1,
"sources": 0,
"priority": 600,
"available": false
},
"output:hdmi-surround-extra3": {
"description": "Digital Surround 5.1 (HDMI 4) Output",
"sinks": 1,
"sources": 0,
"priority": 600,
"available": false
},
"output:hdmi-surround71-extra3": {
"description": "Digital Surround 7.1 (HDMI 4) Output",
"sinks": 1,
"sources": 0,
"priority": 600,
"available": false
},
"pro-audio": {
"description": "Pro Audio",
"sinks": 4,
"sources": 0,
"priority": 1,
"available": true
}
},
"active_profile": "output:hdmi-stereo",
"ports": {
"hdmi-output-0": {
"description": "HDMI / DisplayPort",
"type": "HDMI",
"priority": 5900,
"latency_offset": "0 usec",
"availability_group": "Legacy 1",
"availability": "available",
"properties": {
"port.type": "hdmi",
"port.availability-group": "Legacy 1",
"device.icon_name": "video-display",
"card.profile.port": "0",
"device.product.name": "LG TV\n "
},
"profiles": [
"output:hdmi-stereo"
]
},
"hdmi-output-1": {
"description": "HDMI / DisplayPort 2",
"type": "HDMI",
"priority": 5800,
"latency_offset": "0 usec",
"availability_group": "Legacy 2",
"availability": "available",
"properties": {
"port.type": "hdmi",
"port.availability-group": "Legacy 2",
"device.icon_name": "video-display",
"card.profile.port": "1",
"device.product.name": "ASUS MG279\n "
},
"profiles": [
"output:hdmi-stereo-extra1",
"output:hdmi-surround-extra1",
"output:hdmi-surround71-extra1"
]
},
"hdmi-output-2": {
"description": "HDMI / DisplayPort 3",
"type": "HDMI",
"priority": 5700,
"latency_offset": "0 usec",
"availability_group": "Legacy 3",
"availability": "not available",
"properties": {
"port.type": "hdmi",
"port.availability-group": "Legacy 3",
"device.icon_name": "video-display",
"card.profile.port": "2"
},
"profiles": [
"output:hdmi-stereo-extra2",
"output:hdmi-surround-extra2",
"output:hdmi-surround71-extra2"
]
},
"hdmi-output-3": {
"description": "HDMI / DisplayPort 4",
"type": "HDMI",
"priority": 5600,
"latency_offset": "0 usec",
"availability_group": "Legacy 4",
"availability": "not available",
"properties": {
"port.type": "hdmi",
"port.availability-group": "Legacy 4",
"device.icon_name": "video-display",
"card.profile.port": "3"
},
"profiles": [
"output:hdmi-stereo-extra3",
"output:hdmi-surround-extra3",
"output:hdmi-surround71-extra3"
]
}
}
},
{
"index": 15403,
"name": "alsa_card.pci-0000_15_00.1.5",
"driver": "alsa",
"owner_module": null,
"properties": {
"api.acp.auto-port": "false",
"api.acp.auto-profile": "false",
"api.alsa.card": "1",
"api.alsa.card.longname": "HD-Audio Generic at 0xfbf88000 irq 134",
"api.alsa.card.name": "HD-Audio Generic",
"api.alsa.path": "hw:1",
"api.alsa.use-acp": "true",
"api.dbus.ReserveDevice1": "Audio1",
"device.api": "alsa",
"device.bus": "pci",
"device.bus_path": "pci-0000:15:00.1",
"device.description": "Rembrandt Radeon High Definition Audio Controller",
"device.enum.api": "udev",
"device.icon_name": "audio-card-analog-pci",
"device.name": "alsa_card.pci-0000_15_00.1.5",
"device.nick": "HD-Audio Generic",
"device.plugged.usec": "21892138",
"device.product.id": "0x1640",
"device.product.name": "Rembrandt Radeon High Definition Audio Controller",
"device.subsystem": "sound",
"sysfs.path": "/devices/pci0000:00/0000:00:08.1/0000:15:00.1/sound/card1",
"device.vendor.id": "0x1002",
"device.vendor.name": "Advanced Micro Devices, Inc. [AMD/ATI]",
"media.class": "Audio/Device",
"factory.id": "14",
"client.id": "33",
"object.id": "41",
"object.serial": "15403",
"object.path": "alsa:pcm:1",
"alsa.card": "1",
"alsa.card_name": "HD-Audio Generic",
"alsa.long_card_name": "HD-Audio Generic at 0xfbf88000 irq 134",
"alsa.driver_name": "snd_hda_intel",
"device.string": "1"
},
"profiles": {
"off": {
"description": "Off",
"sinks": 0,
"sources": 0,
"priority": 0,
"available": true
},
"output:hdmi-stereo": {
"description": "Digital Stereo (HDMI) Output",
"sinks": 1,
"sources": 0,
"priority": 5900,
"available": false
},
"output:hdmi-stereo-extra1": {
"description": "Digital Stereo (HDMI 2) Output",
"sinks": 1,
"sources": 0,
"priority": 5700,
"available": false
},
"output:hdmi-stereo-extra2": {
"description": "Digital Stereo (HDMI 3) Output",
"sinks": 1,
"sources": 0,
"priority": 5700,
"available": false
},
"output:hdmi-stereo-extra3": {
"description": "Digital Stereo (HDMI 4) Output",
"sinks": 1,
"sources": 0,
"priority": 5700,
"available": false
},
"output:hdmi-surround": {
"description": "Digital Surround 5.1 (HDMI) Output",
"sinks": 1,
"sources": 0,
"priority": 800,
"available": false
},
"output:hdmi-surround71": {
"description": "Digital Surround 7.1 (HDMI) Output",
"sinks": 1,
"sources": 0,
"priority": 800,
"available": false
},
"output:hdmi-surround-extra1": {
"description": "Digital Surround 5.1 (HDMI 2) Output",
"sinks": 1,
"sources": 0,
"priority": 600,
"available": false
},
"output:hdmi-surround71-extra1": {
"description": "Digital Surround 7.1 (HDMI 2) Output",
"sinks": 1,
"sources": 0,
"priority": 600,
"available": false
},
"output:hdmi-surround-extra2": {
"description": "Digital Surround 5.1 (HDMI 3) Output",
"sinks": 1,
"sources": 0,
"priority": 600,
"available": false
},
"output:hdmi-surround71-extra2": {
"description": "Digital Surround 7.1 (HDMI 3) Output",
"sinks": 1,
"sources": 0,
"priority": 600,
"available": false
},
"output:hdmi-surround-extra3": {
"description": "Digital Surround 5.1 (HDMI 4) Output",
"sinks": 1,
"sources": 0,
"priority": 600,
"available": false
},
"output:hdmi-surround71-extra3": {
"description": "Digital Surround 7.1 (HDMI 4) Output",
"sinks": 1,
"sources": 0,
"priority": 600,
"available": false
},
"pro-audio": {
"description": "Pro Audio",
"sinks": 4,
"sources": 0,
"priority": 1,
"available": true
}
},
"active_profile": "off",
"ports": {
"hdmi-output-0": {
"description": "HDMI / DisplayPort",
"type": "HDMI",
"priority": 5900,
"latency_offset": "0 usec",
"availability_group": "Legacy 1",
"availability": "not available",
"properties": {
"port.type": "hdmi",
"port.availability-group": "Legacy 1",
"device.icon_name": "video-display",
"card.profile.port": "0"
},
"profiles": [
"output:hdmi-stereo",
"output:hdmi-surround",
"output:hdmi-surround71"
]
},
"hdmi-output-1": {
"description": "HDMI / DisplayPort 2",
"type": "HDMI",
"priority": 5800,
"latency_offset": "0 usec",
"availability_group": "Legacy 2",
"availability": "not available",
"properties": {
"port.type": "hdmi",
"port.availability-group": "Legacy 2",
"device.icon_name": "video-display",
"card.profile.port": "1"
},
"profiles": [
"output:hdmi-stereo-extra1",
"output:hdmi-surround-extra1",
"output:hdmi-surround71-extra1"
]
},
"hdmi-output-2": {
"description": "HDMI / DisplayPort 3",
"type": "HDMI",
"priority": 5700,
"latency_offset": "0 usec",
"availability_group": "Legacy 3",
"availability": "not available",
"properties": {
"port.type": "hdmi",
"port.availability-group": "Legacy 3",
"device.icon_name": "video-display",
"card.profile.port": "2"
},
"profiles": [
"output:hdmi-stereo-extra2",
"output:hdmi-surround-extra2",
"output:hdmi-surround71-extra2"
]
},
"hdmi-output-3": {
"description": "HDMI / DisplayPort 4",
"type": "HDMI",
"priority": 5600,
"latency_offset": "0 usec",
"availability_group": "Legacy 4",
"availability": "not available",
"properties": {
"port.type": "hdmi",
"port.availability-group": "Legacy 4",
"device.icon_name": "video-display",
"card.profile.port": "3"
},
"profiles": [
"output:hdmi-stereo-extra3",
"output:hdmi-surround-extra3",
"output:hdmi-surround71-extra3"
]
}
}
},
{
"index": 15404,
"name": "alsa_card.usb-OmniVision_Technologies__Inc._USB_Camera-B4.04.27.1-01.5",
"driver": "alsa",
"owner_module": null,
"properties": {
"api.acp.auto-port": "false",
"api.acp.auto-profile": "false",
"api.alsa.card": "3",
"api.alsa.card.longname": "OmniVision Technologies, Inc. USB Camera-B4.04.27.1 at usb-0000:16:00.0-1.2, hi",
"api.alsa.card.name": "USB Camera-B4.04.27.1",
"api.alsa.path": "hw:3",
"api.alsa.use-acp": "true",
"api.dbus.ReserveDevice1": "Audio3",
"device.api": "alsa",
"device.bus": "usb",
"device.bus-id": "usb-OmniVision_Technologies__Inc._USB_Camera-B4.04.27.1-01",
"device.bus_path": "pci-0000:16:00.0-usb-0:1.2:1.1",
"device.description": "Sony Playstation Eye",
"device.enum.api": "udev",
"device.icon_name": "audio-card-analog-usb",
"device.name": "alsa_card.usb-OmniVision_Technologies__Inc._USB_Camera-B4.04.27.1-01.5",
"device.nick": "USB Camera-B4.04.27.1",
"device.plugged.usec": "24122587",
"device.product.id": "0x2000",
"device.product.name": "Sony Playstation Eye",
"device.serial": "OmniVision_Technologies__Inc._USB_Camera-B4.04.27.1",
"device.subsystem": "sound",
"sysfs.path": "/devices/pci0000:00/0000:00:08.3/0000:16:00.0/usb3/3-1/3-1.2/3-1.2:1.1/sound/card3",
"device.vendor.id": "0x1415",
"device.vendor.name": "Nam Tai E&E Products Ltd. or OmniVision Technologies, Inc.",
"media.class": "Audio/Device",
"factory.id": "14",
"client.id": "33",
"object.id": "73",
"object.serial": "15404",
"object.path": "alsa:pcm:3",
"alsa.card": "3",
"alsa.card_name": "USB Camera-B4.04.27.1",
"alsa.long_card_name": "OmniVision Technologies, Inc. USB Camera-B4.04.27.1 at usb-0000:16:00.0-1.2, hi",
"alsa.driver_name": "snd_usb_audio",
"device.string": "3"
},
"profiles": {
"off": {
"description": "Off",
"sinks": 0,
"sources": 0,
"priority": 0,
"available": true
},
"input:analog-surround-40": {
"description": "Analog Surround 4.0 Input",
"sinks": 0,
"sources": 1,
"priority": 12,
"available": true
},
"pro-audio": {
"description": "Pro Audio",
"sinks": 0,
"sources": 1,
"priority": 1,
"available": true
}
},
"active_profile": "off",
"ports": {}
},
{
"index": 15405,
"name": "alsa_card.pci-0000_15_00.6.5",
"driver": "alsa",
"owner_module": null,
"properties": {
"api.acp.auto-port": "false",
"api.acp.auto-profile": "false",
"api.alsa.card": "2",
"api.alsa.card.longname": "HD-Audio Generic at 0xfbf80000 irq 135",
"api.alsa.card.name": "HD-Audio Generic",
"api.alsa.path": "hw:2",
"api.alsa.use-acp": "true",
"api.dbus.ReserveDevice1": "Audio2",
"device.api": "alsa",
"device.bus": "pci",
"device.bus_path": "pci-0000:15:00.6",
"device.description": "Family 17h/19h HD Audio Controller",
"device.enum.api": "udev",
"device.icon_name": "audio-card-analog-pci",
"device.name": "alsa_card.pci-0000_15_00.6.5",
"device.nick": "HD-Audio Generic",
"device.plugged.usec": "21969883",
"device.product.id": "0x15e3",
"device.product.name": "Family 17h/19h HD Audio Controller",
"device.subsystem": "sound",
"sysfs.path": "/devices/pci0000:00/0000:00:08.1/0000:15:00.6/sound/card2",
"device.vendor.id": "0x1022",
"device.vendor.name": "Advanced Micro Devices, Inc. [AMD]",
"media.class": "Audio/Device",
"factory.id": "14",
"client.id": "33",
"object.id": "44",
"object.serial": "15405",
"object.path": "alsa:pcm:2",
"alsa.card": "2",
"alsa.card_name": "HD-Audio Generic",
"alsa.long_card_name": "HD-Audio Generic at 0xfbf80000 irq 135",
"alsa.driver_name": "snd_hda_intel",
"device.string": "2"
},
"profiles": {
"off": {
"description": "Off",
"sinks": 0,
"sources": 0,
"priority": 0,
"available": true
},
"output:analog-stereo+input:analog-stereo": {
"description": "Analog Stereo Duplex",
"sinks": 1,
"sources": 1,
"priority": 6565,
"available": true
},
"output:analog-stereo": {
"description": "Analog Stereo Output",
"sinks": 1,
"sources": 0,
"priority": 6500,
"available": true
},
"input:analog-stereo": {
"description": "Analog Stereo Input",
"sinks": 0,
"sources": 1,
"priority": 65,
"available": false
},
"pro-audio": {
"description": "Pro Audio",
"sinks": 1,
"sources": 2,
"priority": 1,
"available": true
}
},
"active_profile": "off",
"ports": {
"analog-input-front-mic": {
"description": "Front Microphone",
"type": "Mic",
"priority": 8500,
"latency_offset": "0 usec",
"availability_group": "Legacy 1",
"availability": "not available",
"properties": {
"port.type": "mic",
"port.availability-group": "Legacy 1",
"device.icon_name": "audio-input-microphone",
"card.profile.port": "0"
},
"profiles": [
"input:analog-stereo",
"output:analog-stereo+input:analog-stereo"
]
},
"analog-input-rear-mic": {
"description": "Rear Microphone",
"type": "Mic",
"priority": 8200,
"latency_offset": "0 usec",
"availability_group": "Legacy 2",
"availability": "not available",
"properties": {
"port.type": "mic",
"port.availability-group": "Legacy 2",
"device.icon_name": "audio-input-microphone",
"card.profile.port": "1"
},
"profiles": [
"input:analog-stereo",
"output:analog-stereo+input:analog-stereo"
]
},
"analog-input-linein": {
"description": "Line In",
"type": "Line",
"priority": 8100,
"latency_offset": "0 usec",
"availability_group": "Legacy 3",
"availability": "not available",
"properties": {
"port.type": "line",
"port.availability-group": "Legacy 3",
"card.profile.port": "2"
},
"profiles": [
"input:analog-stereo",
"output:analog-stereo+input:analog-stereo"
]
},
"analog-output-lineout": {
"description": "Line Out",
"type": "Line",
"priority": 9000,
"latency_offset": "0 usec",
"availability_group": "Legacy 4",
"availability": "available",
"properties": {
"port.type": "line",
"port.availability-group": "Legacy 4",
"card.profile.port": "3"
},
"profiles": [
"output:analog-stereo",
"output:analog-stereo+input:analog-stereo"
]
},
"analog-output-headphones": {
"description": "Headphones",
"type": "Headphones",
"priority": 9900,
"latency_offset": "0 usec",
"availability_group": "Legacy 5",
"availability": "not available",
"properties": {
"port.type": "headphones",
"port.availability-group": "Legacy 5",
"device.icon_name": "audio-headphones",
"card.profile.port": "4"
},
"profiles": [
"output:analog-stereo",
"output:analog-stereo+input:analog-stereo"
]
}
}
}
]
EDIT: This needs card port info implemented -> https://www.freedesktop.org/software/pulseaudio/doxygen/structpa__card__port__info.html
EDIT2: Sister issue on the Qt version - https://github.com/lxqt/pavucontrol-qt/issues/288