]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: add Creative Sound Blaster G8 support HEAD master
authorRomain Pereira <romanito1.rp@gmail.com>
Tue, 9 Jun 2026 13:51:06 +0000 (15:51 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 21 Aug 2026 08:23:23 +0000 (10:23 +0200)
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/771
Signed-off-by: Romain Pereira <romanito1.rp@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Creative/SoundBlaster-G8-HiFi.conf [new file with mode: 0644]
ucm2/USB-Audio/Creative/SoundBlaster-G8.conf [new file with mode: 0644]
ucm2/USB-Audio/USB-Audio.conf

diff --git a/ucm2/USB-Audio/Creative/SoundBlaster-G8-HiFi.conf b/ucm2/USB-Audio/Creative/SoundBlaster-G8-HiFi.conf
new file mode 100644 (file)
index 0000000..dacbbc6
--- /dev/null
@@ -0,0 +1,95 @@
+SectionDevice."Headphones" {
+       Comment "Headphones / Line Out"
+
+       Value {
+               PlaybackPriority 200
+               PlaybackPCM "hw:${CardId},0"
+               PlaybackMixerElem "Speaker"
+               PlaybackVolume "Speaker Playback Volume"
+               PlaybackSwitch "Speaker Playback Switch"
+       }
+}
+
+SectionDevice."Mic" {
+       Comment "Microphone"
+       ConflictingDevice [ "Line In" "SPDIF In" "Direct 1" ]
+
+       EnableSequence [
+               cset "name='PCM Capture Source' 'External Mic'"
+               cset "name='External Mic Capture Switch' on"
+       ]
+       DisableSequence [
+               cset "name='External Mic Capture Switch' off"
+       ]
+
+       Value {
+               CapturePriority 500
+               CapturePCM "hw:${CardId},0"
+               CaptureMixerElem "External Mic"
+               CaptureVolume "External Mic Capture Volume"
+               CaptureSwitch "External Mic Capture Switch"
+       }
+}
+
+SectionDevice."Line In" {
+       Comment "Line In (Analog)"
+       ConflictingDevice [ "Mic" "SPDIF In" "Direct 1" ]
+
+       EnableSequence [
+               cset "name='PCM Capture Source' 'Line In'"
+               cset "name='Line In Capture Switch' on"
+       ]
+       DisableSequence [
+               cset "name='Line In Capture Switch' off"
+       ]
+
+       Value {
+               CapturePriority 400
+               CapturePCM "hw:${CardId},0"
+               CaptureMixerElem "Line In"
+               CaptureVolume "Line In Capture Volume"
+               CaptureSwitch "Line In Capture Switch"
+       }
+}
+
+SectionDevice."SPDIF In" {
+       Comment "S/PDIF Input"
+       ConflictingDevice [ "Mic" "Line In" "Direct 1" ]
+
+       EnableSequence [
+               cset "name='PCM Capture Source' 'S/PDIF In'"
+               cset "name='S/PDIF In Capture Switch' on"
+       ]
+       DisableSequence [
+               cset "name='S/PDIF In Capture Switch' off"
+       ]
+
+       Value {
+               CapturePriority 300
+               CapturePCM "hw:${CardId},0"
+               CaptureMixerElem "S/PDIF In"
+               CaptureVolume "S/PDIF In Capture Volume"
+               CaptureSwitch "S/PDIF In Capture Switch"
+       }
+}
+
+SectionDevice."Direct 1" {
+       Comment "Loopback"
+       ConflictingDevice [ "Mic" "Line In" "SPDIF In" ]
+
+       EnableSequence [
+               cset "name='PCM Capture Source' 'What U Hear'"
+               cset "name='What U Hear Capture Switch' on"
+       ]
+       DisableSequence [
+               cset "name='What U Hear Capture Switch' off"
+       ]
+
+       Value {
+               CapturePriority 200
+               CapturePCM "hw:${CardId},0"
+               CaptureMixerElem "What U Hear"
+               CaptureVolume "What U Hear Capture Volume"
+               CaptureSwitch "What U Hear Capture Switch"
+       }
+}
diff --git a/ucm2/USB-Audio/Creative/SoundBlaster-G8.conf b/ucm2/USB-Audio/Creative/SoundBlaster-G8.conf
new file mode 100644 (file)
index 0000000..fd0b7a3
--- /dev/null
@@ -0,0 +1,17 @@
+Comment "Creative Sound Blaster G8"
+
+BootSequence [
+       cset "name='Speaker Playback Switch' on"
+       cset "name='Line In Playback Switch' off"
+       cset "name='S/PDIF In Playback Switch' off"
+       cset "name='PCM Capture Source' 'External Mic'"
+]
+
+SectionUseCase."HiFi" {
+       Comment "Default"
+       File "/USB-Audio/Creative/SoundBlaster-G8-HiFi.conf"
+}
+
+Include.dhw.File "/common/directm.conf"
+
+Macro.0.DirectUseCase { Id="Direct" PlaybackChannels=2 CaptureChannels=2 }
index 1bab8e7376db22963a47dbd6571d5febe4a7ddd7..ea35792a608021ddbe71bd0b13a44fa15489ca12 100644 (file)
@@ -138,6 +138,7 @@ Macro.hp-only.StringMatch           "Id='152a:8750' Profile='Common/HeadphonesOnly'"
 Macro.hp-tb-dock.StringMatch           "Id='03f0:0269' Profile='HP/Thunderbolt-Dock-Audio-Headset'"
 Macro.hyperx-solocast.StringMatch      "Id='03f0:0b8b' Profile='HyperX/SoloCast'"
 Macro.gigabyte-aorus-main.StringMatch  "Id='0414:a001' Profile='Gigabyte/Aorus-Master-Main-Audio'"
+Macro.creative-g8.StringMatch          "Id='041e:329b' Profile='Creative/SoundBlaster-G8'"
 Macro.steinberg-ur22c.StringMatch      "Id='0499:172f' Profile='Steinberg/UR22C'"
 Macro.steinberg-ur22mkii.StringMatch   "Id='0499:170f' Profile='Steinberg/UR22mkII'"
 Macro.steinberg-ur24c.StringMatch      "Id='0499:174d' Profile='Steinberg/UR24C'"