DDE的“音频设置”内不能列出所有音频设备
Tofloor
poster avatar
jpgas
deepin
2018-02-19 06:43
Author
最近下了一个名为pulseaudio-dlna的软件,使得本机的音频可以以DLNA的方式传到家中的DLNA服务器上。其原理就是在本机的pulseaudio中新增一个输出源。该软件在KDE和Gnome中工作正常,但在DDE中,“音频设置”内并没有这个新建的输出源。
相关命令输出如下:
$  pacmd list-sinks2 sink(s) available.    index: 7        name: 0000_00_1f.3.analog-stereo>        driver:         flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY        state: IDLE        suspend cause:         priority: 9039        volume: front-left: 16384 /  25% / -36.12 dB,   front-right: 16384 /  25% / -36.12 dB                balance 0.00        base volume: 65536 / 100% / 0.00 dB        volume steps: 65537        muted: no        current latency: 40.66 ms        max request: 6 KiB        max rewind: 344 KiB        monitor source: 8        sample spec: s16le 2ch 44100Hz        channel map: front-left,front-right                     立体声        used by: 0        linked by: 1        configured latency: 40.00 ms; range is 0.50 .. 2000.00 ms        card: 0 0000_00_1f.3>        module: 6        properties:                alsa.resolution_bits = "16"                device.api = "alsa"                device.class = "sound"                alsa.class = "generic"                alsa.subclass = "generic-mix"                alsa.name = "ALC3266 Analog"                alsa.id = "ALC3266 Analog"                alsa.subdevice = "0"                alsa.subdevice_name = "subdevice #0"                alsa.device = "0"                alsa.card = "0"                alsa.card_name = "HDA Intel PCH"                alsa.long_card_name = "HDA Intel PCH at 0xedd28000 irq 139"                alsa.driver_name = "snd_hda_intel"                device.bus_path = "pci-0000:00:1f.3"                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"                device.bus = "pci"                device.vendor.id = "8086"                device.vendor.name = "Intel Corporation"                device.product.id = "a171"                device.product.name = "CM238 HD Audio Controller"                device.form_factor = "internal"                device.string = "front:0"                device.buffering.buffer_size = "352800"                device.buffering.fragment_size = "176400"                device.access_mode = "mmap+timer"                device.profile.name = "analog-stereo"                device.profile.description = "模拟立体声"                device.description = "内置音频 模拟立体声"                alsa.mixer_name = "Realtek ALC3266"                alsa.components = "HDA:10ec0298,102807bf,00100103 HDA:8086280b,80860101,00100000"                module-udev-detect.discovered = "1"                device.icon_name = "audio-card-pci"        ports:                analog-output-speaker: 扬声器 (priority 10000, latency offset 0 usec, available: unknown)                        properties:                                device.icon_name = "audio-speakers"                analog-output-headphones: 模拟耳机 (priority 9000, latency offset 0 usec, available: no)                        properties:                                device.icon_name = "audio-headphones"        active port:   * index: 9        name:         driver:         flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY        state: RUNNING        suspend cause:         priority: 1000        volume: front-left: 58982 /  90% / -2.75 dB,   front-right: 58982 /  90% / -2.75 dB                balance 0.00        base volume: 65536 / 100% / 0.00 dB        volume steps: 65537        muted: no        current latency: 27.87 ms        max request: 6 KiB        max rewind: 6 KiB        monitor source: 10        sample spec: s16le 2ch 44100Hz        channel map: front-left,front-right                     立体声        used by: 1        linked by: 4        configured latency: 40.00 ms; range is 0.50 .. 2000.00 ms        module: 28        properties:                device.description = "Serenade-DF19 (DLNA)"                device.class = "abstract"                device.icon_name = "audio-card"
可以看到,Pulseaudio确实认出了该sink,但是在DDE控制中心中,无法找到该节点。
使用pavucontrol可以切换应用程序的音频输出,但在切换至下一首歌的时候,DDE会将该设备的音量重新调到100%,无论之前是多少。
[size=0em]​

Reply Favorite View the author
All Replies
jpgas
deepin
2018-02-19 06:44
#1
  1. $  pacmd list-sinks
  2. 2 sink(s) available.
  3.     index: 7
  4.         name:
  5.         driver:
  6.         flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
  7.         state: IDLE
  8.         suspend cause:
  9.         priority: 9039
  10.         volume: front-left: 16384 /  25% / -36.12 dB,   front-right: 16384 /  25% / -36.12 dB
  11.                 balance 0.00
  12.         base volume: 65536 / 100% / 0.00 dB
  13.         volume steps: 65537
  14.         muted: no
  15.         current latency: 40.66 ms
  16.         max request: 6 KiB
  17.         max rewind: 344 KiB
  18.         monitor source: 8
  19.         sample spec: s16le 2ch 44100Hz
  20.         channel map: front-left,front-right
  21.                      立体声
  22.         used by: 0
  23.         linked by: 1
  24.         configured latency: 40.00 ms; range is 0.50 .. 2000.00 ms
  25.         card: 0
  26.         module: 6
  27.         properties:
  28.                 alsa.resolution_bits = "16"
  29.                 device.api = "alsa"
  30.                 device.class = "sound"
  31.                 alsa.class = "generic"
  32.                 alsa.subclass = "generic-mix"
  33.                 alsa.name = "ALC3266 Analog"
  34.                 alsa.id = "ALC3266 Analog"
  35.                 alsa.subdevice = "0"
  36.                 alsa.subdevice_name = "subdevice #0"
  37.                 alsa.device = "0"
  38.                 alsa.card = "0"
  39.                 alsa.card_name = "HDA Intel PCH"
  40.                 alsa.long_card_name = "HDA Intel PCH at 0xedd28000 irq 139"
  41.                 alsa.driver_name = "snd_hda_intel"
  42.                 device.bus_path = "pci-0000:00:1f.3"
  43.                 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
  44.                 device.bus = "pci"
  45.                 device.vendor.id = "8086"
  46.                 device.vendor.name = "Intel Corporation"
  47.                 device.product.id = "a171"
  48.                 device.product.name = "CM238 HD Audio Controller"
  49.                 device.form_factor = "internal"
  50.                 device.string = "front:0"
  51.                 device.buffering.buffer_size = "352800"
  52.                 device.buffering.fragment_size = "176400"
  53.                 device.access_mode = "mmap+timer"
  54.                 device.profile.name = "analog-stereo"
  55.                 device.profile.description = "模拟立体声"
  56.                 device.description = "内置音频 模拟立体声"
  57.                 alsa.mixer_name = "Realtek ALC3266"
  58.                 alsa.components = "HDA:10ec0298,102807bf,00100103 HDA:8086280b,80860101,00100000"
  59.                 module-udev-detect.discovered = "1"
  60.                 device.icon_name = "audio-card-pci"
  61.         ports:
  62.                 analog-output-speaker: 扬声器 (priority 10000, latency offset 0 usec, available: unknown)
  63.                         properties:
  64.                                 device.icon_name = "audio-speakers"
  65.                 analog-output-headphones: 模拟耳机 (priority 9000, latency offset 0 usec, available: no)
  66.                         properties:
  67.                                 device.icon_name = "audio-headphones"
  68.         active port:
  69.   * index: 9
  70.         name:
  71.         driver:
  72.         flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
  73.         state: RUNNING
  74.         suspend cause:
  75.         priority: 1000
  76.         volume: front-left: 58982 /  90% / -2.75 dB,   front-right: 58982 /  90% / -2.75 dB
  77.                 balance 0.00
  78.         base volume: 65536 / 100% / 0.00 dB
  79.         volume steps: 65537
  80.         muted: no
  81.         current latency: 27.87 ms
  82.         max request: 6 KiB
  83.         max rewind: 6 KiB
  84.         monitor source: 10
  85.         sample spec: s16le 2ch 44100Hz
  86.         channel map: front-left,front-right
  87.                      立体声
  88.         used by: 1
  89.         linked by: 4
  90.         configured latency: 40.00 ms; range is 0.50 .. 2000.00 ms
  91.         module: 28
  92.         properties:
  93.                 device.description = "Serenade-DF19 (DLNA)"
  94.                 device.class = "abstract"
  95.                 device.icon_name = "audio-card"
Copy the Code
Reply View the author
jpgas
deepin
2018-02-19 06:44
#2
  1. $ pacmd list-cards
  2. 1 card(s) available.
  3.     index: 0
  4.         name:
  5.         driver:
  6.         owner module: 6
  7.         properties:
  8.                 alsa.card = "0"
  9.                 alsa.card_name = "HDA Intel PCH"
  10.                 alsa.long_card_name = "HDA Intel PCH at 0xedd28000 irq 139"
  11.                 alsa.driver_name = "snd_hda_intel"
  12.                 device.bus_path = "pci-0000:00:1f.3"
  13.                 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
  14.                 device.bus = "pci"
  15.                 device.vendor.id = "8086"
  16.                 device.vendor.name = "Intel Corporation"
  17.                 device.product.id = "a171"
  18.                 device.product.name = "CM238 HD Audio Controller"
  19.                 device.form_factor = "internal"
  20.                 device.string = "0"
  21.                 device.description = "内置音频"
  22.                 module-udev-detect.discovered = "1"
  23.                 device.icon_name = "audio-card-pci"
  24.         profiles:
  25.                 input:analog-stereo: 模拟立体声 输入 (priority 60, available: unknown)
  26.                 output:analog-stereo: 模拟立体声 输出 (priority 6000, available: unknown)
  27.                 output:analog-stereo+input:analog-stereo: 模拟立体声双工 (priority 6060, available: unknown)
  28.                 output:hdmi-stereo: Digital Stereo (HDMI) 输出 (priority 5400, available: no)
  29.                 output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) 输出 + 模拟立体声 输入 (priority 5460, available: unknown)
  30.                 output:hdmi-surround: Digital Surround 5.1 (HDMI) 输出 (priority 300, available: no)
  31.                 output:hdmi-surround+input:analog-stereo: Digital Surround 5.1 (HDMI) 输出 + 模拟立体声 输入 (priority 360, available: unknown)
  32.                 output:hdmi-surround71: Digital Surround 7.1 (HDMI) 输出 (priority 300, available: no)
  33.                 output:hdmi-surround71+input:analog-stereo: Digital Surround 7.1 (HDMI) 输出 + 模拟立体声 输入 (priority 360, available: unknown)
  34.                 output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) 输出 (priority 5200, available: no)
  35.                 output:hdmi-stereo-extra1+input:analog-stereo: Digital Stereo (HDMI 2) 输出 + 模拟立体声 输入 (priority 5260, available: unknown)
  36.                 output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) 输出 (priority 100, available: no)
  37.                 output:hdmi-surround-extra1+input:analog-stereo: Digital Surround 5.1 (HDMI 2) 输出 + 模拟立体声 输入 (priority 160, available: unknown)
  38.                 output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) 输出 (priority 100, available: no)
  39.                 output:hdmi-surround71-extra1+input:analog-stereo: Digital Surround 7.1 (HDMI 2) 输出 + 模拟立体声 输入 (priority 160, available: unknown)
  40.                 output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) 输出 (priority 5200, available: no)
  41.                 output:hdmi-stereo-extra2+input:analog-stereo: Digital Stereo (HDMI 3) 输出 + 模拟立体声 输入 (priority 5260, available: unknown)
  42.                 output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) 输出 (priority 100, available: no)
  43.                 output:hdmi-surround-extra2+input:analog-stereo: Digital Surround 5.1 (HDMI 3) 输出 + 模拟立体声 输入 (priority 160, available: unknown)
  44.                 output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) 输出 (priority 100, available: no)
  45.                 output:hdmi-surround71-extra2+input:analog-stereo: Digital Surround 7.1 (HDMI 3) 输出 + 模拟立体声 输入 (priority 160, available: unknown)
  46.                 output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) 输出 (priority 5200, available: no)
  47.                 output:hdmi-stereo-extra3+input:analog-stereo: Digital Stereo (HDMI 4) 输出 + 模拟立体声 输入 (priority 5260, available: unknown)
  48.                 output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) 输出 (priority 100, available: no)
  49.                 output:hdmi-surround-extra3+input:analog-stereo: Digital Surround 5.1 (HDMI 4) 输出 + 模拟立体声 输入 (priority 160, available: unknown)
  50.                 output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) 输出 (priority 100, available: no)
  51.                 output:hdmi-surround71-extra3+input:analog-stereo: Digital Surround 7.1 (HDMI 4) 输出 + 模拟立体声 输入 (priority 160, available: unknown)
  52.                 output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) 输出 (priority 5200, available: no)
  53.                 output:hdmi-stereo-extra4+input:analog-stereo: Digital Stereo (HDMI 5) 输出 + 模拟立体声 输入 (priority 5260, available: unknown)
  54.                 output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) 输出 (priority 100, available: no)
  55.                 output:hdmi-surround-extra4+input:analog-stereo: Digital Surround 5.1 (HDMI 5) 输出 + 模拟立体声 输入 (priority 160, available: unknown)
  56.                 output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) 输出 (priority 100, available: no)
  57.                 output:hdmi-surround71-extra4+input:analog-stereo: Digital Surround 7.1 (HDMI 5) 输出 + 模拟立体声 输入 (priority 160, available: unknown)
  58.                 off: 关 (priority 0, available: unknown)
  59.         active profile:
  60.         sinks:
  61.                 alsa_output.pci-0000_00_1f.3.analog-stereo/#7: 内置音频 模拟立体声
  62.         sources:
  63.                 alsa_input.pci-0000_00_1f.3.analog-stereo/#1: 内置音频 模拟立体声
  64.                 alsa_output.pci-0000_00_1f.3.analog-stereo.monitor/#8: Monitor of 内置音频 模拟立体声
  65.         ports:
  66.                 analog-input-internal-mic: 内部话筒 (priority 8900, latency offset 0 usec, available: unknown)
  67.                         properties:
  68.                                 device.icon_name = "audio-input-microphone"
  69.                 analog-input-headphone-mic: 话筒 (priority 8700, latency offset 0 usec, available: no)
  70.                         properties:
  71.                                 device.icon_name = "audio-input-microphone"
  72.                 analog-input-headset-mic: 头挂麦克风 (priority 8800, latency offset 0 usec, available: no)
  73.                         properties:
  74.                                 device.icon_name = "audio-input-microphone"
  75.                 analog-output-speaker: 扬声器 (priority 10000, latency offset 0 usec, available: unknown)
  76.                         properties:
  77.                                 device.icon_name = "audio-speakers"
  78.                 analog-output-headphones: 模拟耳机 (priority 9000, latency offset 0 usec, available: no)
  79.                         properties:
  80.                                 device.icon_name = "audio-headphones"
  81.                 hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
  82.                         properties:
  83.                                 device.icon_name = "video-display"
  84.                 hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
  85.                         properties:
  86.                                 device.icon_name = "video-display"
  87.                 hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
  88.                         properties:
  89.                                 device.icon_name = "video-display"
  90.                 hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
  91.                         properties:
  92.                                 device.icon_name = "video-display"
  93.                 hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
  94.                         properties:
  95.                                 device.icon_name = "video-display"
Copy the Code
Reply View the author