Skip to content

Commit 00175aa

Browse files
romain-pereiraperexg
authored andcommitted
USB-Audio: add Creative Sound Blaster G8 support
Fixes: #771 Signed-off-by: Romain Pereira <romanito1.rp@gmail.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
1 parent eb56a67 commit 00175aa

3 files changed

Lines changed: 113 additions & 0 deletions

File tree

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
SectionDevice."Headphones" {
2+
Comment "Headphones / Line Out"
3+
4+
Value {
5+
PlaybackPriority 200
6+
PlaybackPCM "hw:${CardId},0"
7+
PlaybackMixerElem "Speaker"
8+
PlaybackVolume "Speaker Playback Volume"
9+
PlaybackSwitch "Speaker Playback Switch"
10+
}
11+
}
12+
13+
SectionDevice."Mic" {
14+
Comment "Microphone"
15+
ConflictingDevice [ "Line In" "SPDIF In" "Direct 1" ]
16+
17+
EnableSequence [
18+
cset "name='PCM Capture Source' 'External Mic'"
19+
cset "name='External Mic Capture Switch' on"
20+
]
21+
DisableSequence [
22+
cset "name='External Mic Capture Switch' off"
23+
]
24+
25+
Value {
26+
CapturePriority 500
27+
CapturePCM "hw:${CardId},0"
28+
CaptureMixerElem "External Mic"
29+
CaptureVolume "External Mic Capture Volume"
30+
CaptureSwitch "External Mic Capture Switch"
31+
}
32+
}
33+
34+
SectionDevice."Line In" {
35+
Comment "Line In (Analog)"
36+
ConflictingDevice [ "Mic" "SPDIF In" "Direct 1" ]
37+
38+
EnableSequence [
39+
cset "name='PCM Capture Source' 'Line In'"
40+
cset "name='Line In Capture Switch' on"
41+
]
42+
DisableSequence [
43+
cset "name='Line In Capture Switch' off"
44+
]
45+
46+
Value {
47+
CapturePriority 400
48+
CapturePCM "hw:${CardId},0"
49+
CaptureMixerElem "Line In"
50+
CaptureVolume "Line In Capture Volume"
51+
CaptureSwitch "Line In Capture Switch"
52+
}
53+
}
54+
55+
SectionDevice."SPDIF In" {
56+
Comment "S/PDIF Input"
57+
ConflictingDevice [ "Mic" "Line In" "Direct 1" ]
58+
59+
EnableSequence [
60+
cset "name='PCM Capture Source' 'S/PDIF In'"
61+
cset "name='S/PDIF In Capture Switch' on"
62+
]
63+
DisableSequence [
64+
cset "name='S/PDIF In Capture Switch' off"
65+
]
66+
67+
Value {
68+
CapturePriority 300
69+
CapturePCM "hw:${CardId},0"
70+
CaptureMixerElem "S/PDIF In"
71+
CaptureVolume "S/PDIF In Capture Volume"
72+
CaptureSwitch "S/PDIF In Capture Switch"
73+
}
74+
}
75+
76+
SectionDevice."Direct 1" {
77+
Comment "Loopback"
78+
ConflictingDevice [ "Mic" "Line In" "SPDIF In" ]
79+
80+
EnableSequence [
81+
cset "name='PCM Capture Source' 'What U Hear'"
82+
cset "name='What U Hear Capture Switch' on"
83+
]
84+
DisableSequence [
85+
cset "name='What U Hear Capture Switch' off"
86+
]
87+
88+
Value {
89+
CapturePriority 200
90+
CapturePCM "hw:${CardId},0"
91+
CaptureMixerElem "What U Hear"
92+
CaptureVolume "What U Hear Capture Volume"
93+
CaptureSwitch "What U Hear Capture Switch"
94+
}
95+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Comment "Creative Sound Blaster G8"
2+
3+
BootSequence [
4+
cset "name='Speaker Playback Switch' on"
5+
cset "name='Line In Playback Switch' off"
6+
cset "name='S/PDIF In Playback Switch' off"
7+
cset "name='PCM Capture Source' 'External Mic'"
8+
]
9+
10+
SectionUseCase."HiFi" {
11+
Comment "Default"
12+
File "/USB-Audio/Creative/SoundBlaster-G8-HiFi.conf"
13+
}
14+
15+
Include.dhw.File "/common/directm.conf"
16+
17+
Macro.0.DirectUseCase { Id="Direct" PlaybackChannels=2 CaptureChannels=2 }

ucm2/USB-Audio/USB-Audio.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ Macro.hp-only.StringMatch "Id='152a:8750' Profile='Common/HeadphonesOnly'"
138138
Macro.hp-tb-dock.StringMatch "Id='03f0:0269' Profile='HP/Thunderbolt-Dock-Audio-Headset'"
139139
Macro.hyperx-solocast.StringMatch "Id='03f0:0b8b' Profile='HyperX/SoloCast'"
140140
Macro.gigabyte-aorus-main.StringMatch "Id='0414:a001' Profile='Gigabyte/Aorus-Master-Main-Audio'"
141+
Macro.creative-g8.StringMatch "Id='041e:329b' Profile='Creative/SoundBlaster-G8'"
141142
Macro.steinberg-ur22c.StringMatch "Id='0499:172f' Profile='Steinberg/UR22C'"
142143
Macro.steinberg-ur22mkii.StringMatch "Id='0499:170f' Profile='Steinberg/UR22mkII'"
143144
Macro.steinberg-ur24c.StringMatch "Id='0499:174d' Profile='Steinberg/UR24C'"

0 commit comments

Comments
 (0)