Проект

Общее

Профиль

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

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

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