Skip to content

Instantly share code, notes, and snippets.

@JasonTam
Last active April 28, 2021 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JasonTam/8d6d082c786ba1bca00e5ba59b018f2a to your computer and use it in GitHub Desktop.
Save JasonTam/8d6d082c786ba1bca00e5ba59b018f2a to your computer and use it in GitHub Desktop.
Samson C01U microphone remap hack

The SAMSON CO1U microphone uses a stereo chip where the left channel should be the final output. However, on linux, we see the post-proc(left) and raw(right) signals separately. To fix this, we can map the left channel to both channels reducing to a proper mono channel. (Compare to setting a mono signal on pavucontrol which gives a screwed up noisy signal).

Add the following line to /etc/pulse/default.pa (or whichever file is being used -- see http://manpages.ubuntu.com/manpages/bionic/man5/default.pa.5.html )

# SAMSON CO1U HACK
.nofail
load-module module-remap-source source_name=samson-co1u-hack master=alsa_input.usb-Samson_Technologies_Samson_C01U-00.analog-stereo master_channel_map=left,left channel_map=left,right remix=false
.fail

There is a chance your mic name is different than mine. You can confirm with pacmd list-sources | grep 'Samson' | grep 'name' and use the correct name for the master. We add .nofail in case the usb mic is unplugged (and then go back to .fail mode)

@JasonTam
Copy link
Author

To activate it ad-hoc
pacmd load-module module-remap-source source_name=samson-co1u-hack master=alsa_input.usb-Samson_Technologies_Samson_C01U-00.analog-stereo master_channel_map=left,left channel_map=left,right remix=false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment