@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
Touch seeded packages, which is subscribed to pulseaudio in Ubuntu.
https://bugs.launchpad.net/bugs/1560068

Title:
  Settings report incorrect Microphone device names

Status in Oxide:
  New
Status in pulseaudio package in Ubuntu:
  New

Bug description:
  When opening the "Camera & microphone" settings in the webbrowser-app
  I get the following list of  Microphone devices I can select one from:

  - Default
  - Droid source primary
  - Null input

  The last two ones are incorrect and should never reach the user. The
  user doesn't know what to do with those names.

  Either we're missing a proper alias in pulseaudio or webbrowser-app
  needs to add them.

To manage notifications about this bug go to:
https://bugs.launchpad.net/oxide/+bug/1560068/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to