@David: Not sure, but you can take a look at
$ pactl list sources
That lists all properties pulse reports for the source devices. However
from the Android side (that is where we're reading the list of available
devices from) we only get 'primary' as the name of the source and not
further information.
With that we could fix the description of the pulse source to remove
'Droid' from the name and just have something like 'primary source'.
What you also have to respect is that the primary source has different
ports
Source #1
State: SUSPENDED
Name: source.primary
Description: Droid source primary
Driver: module-droid-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 5
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100%
/ 0.00 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor of Sink: n/a
Latency: 0 usec, configured 0 usec
Flags: HARDWARE HW_MUTE_CTRL DECIBEL_VOLUME
Properties:
device.description = "Droid source primary"
droid.hw_module = "primary"
device.icon_name = "audio-card"
droid.audio_source = "default"
Ports:
input-builtin_mic: Input from builtin mic (priority: 300)
input-bluetooth_sco_headset: Input from bluetooth sco headset
(priority: 200)
input-wired_headset: Input from wired headset (priority: 500,
not available)
input-voice_call: Input from voice call (priority: 200)
input-back_mic: Input from back mic (priority: 200)
input-default: Input from default (priority: 200)
input-parking: Parking port (priority: 50)
Active Port: input-builtin_mic
Formats:
pcm
So the primary source can be the builtin-mic, a connect HFP headset,
audio coming from a call, ... Which port is active depends on different
factors in the system. We should also look into gnome-control-center and
see how the audio configuration is handled there.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1560068
Title:
Settings report incorrect Microphone device names
To manage notifications about this bug go to:
https://bugs.launchpad.net/oxide/+bug/1560068/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs