Проект

Общее

Профиль

Audio » История » Версия 2

Рамиль Абдулбяров, 2015-04-01 16:16

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