Skip to content

Instantly share code, notes, and snippets.

@imasif
Created October 27, 2019 12:31
Show Gist options
  • Save imasif/063970024585465c5a3b22b9a45b7f97 to your computer and use it in GitHub Desktop.
Save imasif/063970024585465c5a3b22b9a45b7f97 to your computer and use it in GitHub Desktop.
for using different mic and speaker for alsa in rasberrypi
pcm.!default {
type asym
capture.pcm "mic"
playback.pcm "speaker"
}
pcm.mic {
type plug
slave {
pcm "hw:<Card no>,<device no>"
}
}
pcm.speaker {
type plug
slave {
pcm "hw:<Card no>,<device no>"
}
}
@imasif
Copy link
Author

imasif commented Jan 11, 2020

for me it was:

pcm.mic {
  type plug
  slave {
    pcm "hw:1,0"
  }
}
pcm.speaker {
  type plug
  slave {
    pcm "hw:0,0"
  }
}

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