Audio » История » Версия 3
Рамиль Абдулбяров, 2015-04-01 16:35
| 1 | 1 | Рамиль Абдулбяров | h1. Audio |
|---|---|---|---|
| 2 | |||
| 3 | 3 | Рамиль Абдулбяров | h2. [[bug_system_choose_sound_card|Решение проблемы когда система выбирает не ту звуковую карту по умолчанию]] |
| 4 | |||
| 5 | 1 | Рамиль Абдулбяров | h2. Решение проблемы когда система выбирает не ту звуковую карту по умолчанию |
| 6 | |||
| 7 | Смотрим выбранное утройство по умолчанию |
||
| 8 | 2 | Рамиль Абдулбяров | |
| 9 | *cat .pulse/5a779871926e26ce2bf16e0600000c57-default-sink* |
||
| 10 | <pre> |
||
| 11 | 1 | Рамиль Абдулбяров | alsa_output.pci-0000_00_1b.0.analog-stereo |
| 12 | 2 | Рамиль Абдулбяров | </pre> |
| 13 | |||
| 14 | Утилитой меняем настройки |
||
| 15 | *pacmd* |
||
| 16 | |||
| 17 | Смотрим список устройств |
||
| 18 | <pre> |
||
| 19 | >>> list-sinks |
||
| 20 | 3 sink(s) available. |
||
| 21 | index: 0 |
||
| 22 | name: <alsa_output.hw_0_0> |
||
| 23 | driver: <module-alsa-sink.c> |
||
| 24 | flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY |
||
| 25 | state: SUSPENDED |
||
| 26 | suspend cause: IDLE |
||
| 27 | priority: 9950 |
||
| 28 | volume: front-left: 85197 / 130% / 6,84 dB, front-right: 85197 / 130% / 6,84 dB |
||
| 29 | balance 0,00 |
||
| 30 | base volume: 65536 / 100% / 0,00 dB |
||
| 31 | volume steps: 65537 |
||
| 32 | muted: no |
||
| 33 | current latency: 0,00 ms |
||
| 34 | max request: 0 KiB |
||
| 35 | max rewind: 0 KiB |
||
| 36 | monitor source: 0 |
||
| 37 | sample spec: s16le 2ch 44100Hz |
||
| 38 | channel map: front-left,front-right |
||
| 39 | Stereo |
||
| 40 | used by: 0 |
||
| 41 | linked by: 0 |
||
| 42 | configured latency: 0,00 ms; range is 0,50 .. 2000,00 ms |
||
| 43 | module: 5 |
||
| 44 | properties: |
||
| 45 | alsa.resolution_bits = "16" |
||
| 46 | device.api = "alsa" |
||
| 47 | device.class = "sound" |
||
| 48 | alsa.class = "generic" |
||
| 49 | alsa.subclass = "generic-mix" |
||
| 50 | alsa.name = "ALC887-VD Analog" |
||
| 51 | alsa.id = "ALC887-VD Analog" |
||
| 52 | alsa.subdevice = "0" |
||
| 53 | alsa.subdevice_name = "subdevice #0" |
||
| 54 | alsa.device = "0" |
||
| 55 | alsa.card = "0" |
||
| 56 | alsa.card_name = "HDA Intel PCH" |
||
| 57 | alsa.long_card_name = "HDA Intel PCH at 0xfbc00000 irq 55" |
||
| 58 | alsa.driver_name = "snd_hda_intel" |
||
| 59 | device.bus_path = "pci-0000:00:1b.0" |
||
| 60 | sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0" |
||
| 61 | device.bus = "pci" |
||
| 62 | device.vendor.id = "8086" |
||
| 63 | device.vendor.name = "Intel Corporation" |
||
| 64 | device.product.id = "1c20" |
||
| 65 | device.product.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller" |
||
| 66 | device.form_factor = "internal" |
||
| 67 | device.string = "hw:0,0" |
||
| 68 | device.buffering.buffer_size = "352800" |
||
| 69 | device.buffering.fragment_size = "176400" |
||
| 70 | device.access_mode = "mmap+timer" |
||
| 71 | device.description = "Built-in Audio" |
||
| 72 | device.icon_name = "audio-card-pci" |
||
| 73 | * index: 1 |
||
| 74 | name: <alsa_output.pci-0000_01_00.1.hdmi-stereo> |
||
| 75 | driver: <module-alsa-card.c> |
||
| 76 | flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY |
||
| 77 | state: SUSPENDED |
||
| 78 | suspend cause: IDLE |
||
| 79 | priority: 9050 |
||
| 80 | volume: front-left: 53740 / 82% / -5,17 dB, front-right: 53084 / 81% / -5,49 dB |
||
| 81 | balance -0,01 |
||
| 82 | base volume: 65536 / 100% / 0,00 dB |
||
| 83 | volume steps: 65537 |
||
| 84 | muted: no |
||
| 85 | current latency: 0,00 ms |
||
| 86 | max request: 0 KiB |
||
| 87 | max rewind: 0 KiB |
||
| 88 | monitor source: 2 |
||
| 89 | sample spec: s16le 2ch 44100Hz |
||
| 90 | channel map: front-left,front-right |
||
| 91 | Stereo |
||
| 92 | used by: 0 |
||
| 93 | linked by: 0 |
||
| 94 | configured latency: 0,00 ms; range is 0,50 .. 1999,82 ms |
||
| 95 | card: 0 <alsa_card.pci-0000_01_00.1> |
||
| 96 | module: 8 |
||
| 97 | properties: |
||
| 98 | alsa.resolution_bits = "16" |
||
| 99 | device.api = "alsa" |
||
| 100 | device.class = "sound" |
||
| 101 | alsa.class = "generic" |
||
| 102 | alsa.subclass = "generic-mix" |
||
| 103 | alsa.name = "HDMI 0" |
||
| 104 | alsa.id = "HDMI 0" |
||
| 105 | alsa.subdevice = "0" |
||
| 106 | alsa.subdevice_name = "subdevice #0" |
||
| 107 | alsa.device = "3" |
||
| 108 | alsa.card = "1" |
||
| 109 | alsa.card_name = "HDA NVidia" |
||
| 110 | alsa.long_card_name = "HDA NVidia at 0xfb080000 irq 17" |
||
| 111 | alsa.driver_name = "snd_hda_intel" |
||
| 112 | device.bus_path = "pci-0000:01:00.1" |
||
| 113 | sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1" |
||
| 114 | device.bus = "pci" |
||
| 115 | device.vendor.id = "10de" |
||
| 116 | device.vendor.name = "NVIDIA Corporation" |
||
| 117 | device.product.id = "0be3" |
||
| 118 | device.product.name = "High Definition Audio Controller" |
||
| 119 | device.string = "hdmi:1" |
||
| 120 | device.buffering.buffer_size = "352768" |
||
| 121 | device.buffering.fragment_size = "176384" |
||
| 122 | device.access_mode = "mmap+timer" |
||
| 123 | device.profile.name = "hdmi-stereo" |
||
| 124 | device.profile.description = "Digital Stereo (HDMI)" |
||
| 125 | device.description = "High Definition Audio Controller Digital Stereo (HDMI)" |
||
| 126 | alsa.mixer_name = "Nvidia GPU 0b HDMI/DP" |
||
| 127 | alsa.components = "HDA:10de000b,10de0101,00100200" |
||
| 128 | module-udev-detect.discovered = "1" |
||
| 129 | device.icon_name = "audio-card-pci" |
||
| 130 | ports: |
||
| 131 | hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no) |
||
| 132 | properties: |
||
| 133 | device.icon_name = "video-display" |
||
| 134 | active port: <hdmi-output-0> |
||
| 135 | index: 2 |
||
| 136 | name: <alsa_output.pci-0000_00_1b.0.analog-stereo> |
||
| 137 | driver: <module-alsa-card.c> |
||
| 138 | flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY |
||
| 139 | state: SUSPENDED |
||
| 140 | suspend cause: IDLE |
||
| 141 | priority: 9959 |
||
| 142 | volume: front-left: 54094 / 83% / -5,00 dB, front-right: 54094 / 83% / -5,00 dB |
||
| 143 | balance 0,00 |
||
| 144 | base volume: 65536 / 100% / 0,00 dB |
||
| 145 | volume steps: 65537 |
||
| 146 | muted: no |
||
| 147 | current latency: 0,00 ms |
||
| 148 | max request: 0 KiB |
||
| 149 | max rewind: 0 KiB |
||
| 150 | monitor source: 3 |
||
| 151 | sample spec: s16le 2ch 44100Hz |
||
| 152 | channel map: front-left,front-right |
||
| 153 | Stereo |
||
| 154 | used by: 0 |
||
| 155 | linked by: 0 |
||
| 156 | configured latency: 0,00 ms; range is 0,50 .. 2000,00 ms |
||
| 157 | card: 1 <alsa_card.pci-0000_00_1b.0> |
||
| 158 | module: 22 |
||
| 159 | properties: |
||
| 160 | alsa.resolution_bits = "16" |
||
| 161 | device.api = "alsa" |
||
| 162 | device.class = "sound" |
||
| 163 | alsa.class = "generic" |
||
| 164 | alsa.subclass = "generic-mix" |
||
| 165 | alsa.name = "ALC887-VD Analog" |
||
| 166 | alsa.id = "ALC887-VD Analog" |
||
| 167 | alsa.subdevice = "0" |
||
| 168 | alsa.subdevice_name = "subdevice #0" |
||
| 169 | alsa.device = "0" |
||
| 170 | alsa.card = "0" |
||
| 171 | alsa.card_name = "HDA Intel PCH" |
||
| 172 | alsa.long_card_name = "HDA Intel PCH at 0xfbc00000 irq 55" |
||
| 173 | alsa.driver_name = "snd_hda_intel" |
||
| 174 | device.bus_path = "pci-0000:00:1b.0" |
||
| 175 | sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0" |
||
| 176 | device.bus = "pci" |
||
| 177 | device.vendor.id = "8086" |
||
| 178 | device.vendor.name = "Intel Corporation" |
||
| 179 | device.product.id = "1c20" |
||
| 180 | device.product.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller" |
||
| 181 | device.form_factor = "internal" |
||
| 182 | device.string = "front:0" |
||
| 183 | device.buffering.buffer_size = "352800" |
||
| 184 | device.buffering.fragment_size = "176400" |
||
| 185 | device.access_mode = "mmap+timer" |
||
| 186 | device.profile.name = "analog-stereo" |
||
| 187 | device.profile.description = "Analog Stereo" |
||
| 188 | device.description = "Built-in Audio Analog Stereo" |
||
| 189 | alsa.mixer_name = "Realtek ALC887-VD" |
||
| 190 | alsa.components = "HDA:10ec0887,18490887,00100302" |
||
| 191 | module-udev-detect.discovered = "1" |
||
| 192 | device.icon_name = "audio-card-pci" |
||
| 193 | ports: |
||
| 194 | analog-output-lineout: Line Out (priority 9900, latency offset 0 usec, available: yes) |
||
| 195 | properties: |
||
| 196 | |||
| 197 | analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: unknown) |
||
| 198 | properties: |
||
| 199 | device.icon_name = "audio-headphones" |
||
| 200 | active port: <analog-output-lineout> |
||
| 201 | </pre> |
||
| 202 | |||
| 203 | Изменили устройство по умолчанию |
||
| 204 | <pre> |
||
| 205 | >>> set-default-sink 2 |
||
| 206 | </pre> |
||
| 207 | |||
| 208 | Проверяем |
||
| 209 | *cat .pulse/5a779871926e26ce2bf16e0600000c57-default-source* |
||
| 210 | <pre> |
||
| 211 | alsa_input.pci-0000_00_1b.0.analog-stereo |
||
| 212 | </pre> |