diff --git a/fix-fedora-omnigul b/fix-fedora-omnigul new file mode 100644 index 0000000..6d4a020 --- /dev/null +++ b/fix-fedora-omnigul @@ -0,0 +1,5 @@ +sudo cp conf/sof/apl-sof.conf /etc/modprobe.d/apl-sof.conf +sudo rm /etc/wireplumber/wireplumber.conf.d/51-increase-headroom.conf +sudo cp headroom.conf.fixed /etc/wireplumber/wireplumber.conf.d/51-speaker-fix.conf +sudo cp mic.conf.fixed /etc/wireplumber/wireplumber.conf.d/52-mic-fix.conf + diff --git a/headroom.conf.fixed b/headroom.conf.fixed new file mode 100644 index 0000000..1b4dd70 --- /dev/null +++ b/headroom.conf.fixed @@ -0,0 +1,33 @@ +[device.profile] +# Set default profiles for OMNIGUL audio +skip-monitor = [ true, true ] + +[device.properties] +# Improve audio quality and fix distortion +api.alsa.period-size = 512 +api.alsa.headroom = 8192 +api.alsa.disable-batch = false +api.alsa.use-chmap = true +api.alsa.multi-rate = true + +# Increase buffer size to reduce crackling +node.param.max-latency = 2048/48000 +node.param.rate = 48000 +node.param.quality = 4 + +# Power management settings +api.alsa.pm-disable = false + +# PCM settings +audio.format = "S16LE" +audio.rate = 48000 +audio.channels = 2 +audio.position = [ FL FR ] + +# Buffer and period settings for better stability +node.latency = 2048/48000 +api.alsa.buffer-size = 4096 + +# Enable hardware volume control +device.control.hardware-volume = true +device.control.hardware-mute = true diff --git a/mic.conf.fixed b/mic.conf.fixed new file mode 100644 index 0000000..2d0bcf1 --- /dev/null +++ b/mic.conf.fixed @@ -0,0 +1,37 @@ +[device] +# Enable microphone device +name = "alsa_input.*" +priority = 100 +enabled = true + +[device.profile] +# Configure microphone profile +direction = "input" +channels = "mono" +rate = 48000 +format = "S16LE" + +[device.properties] +# Basic microphone properties +device.description = "OMNIGUL Microphone" +device.nick = "Internal Mic" +device.icon-name = "audio-input-microphone" + +# ALSA settings for microphone +api.alsa.use-ucm = true +api.alsa.ignore-dB = false +api.alsa.soft-mixer = false +api.alsa.period-size = 1024 +api.alsa.buffer-size = 4096 + +# Input processing settings +audio.channels = 1 +audio.position = [ MONO ] +node.pause-on-idle = false + +# Boost microphone gain +api.alsa.gain = 20.0 +node.param.gain = 1.5 + +# Ensure device is not muted by default +device.mute = false