weblog d’un abbe


An ALSA hack

Filed under: Fun, Hacking — abbe @ 0205

For those (including /me) who’re still struggling with ALSA, despite the invention of PulseAudio, to combine playback of one sound card and capture of another sound card and expose the combination as default sound card, here is the hack. Add following lines (or similar to following depending on your ALSA configuration) into your ~/.asoundrc:

pcm.!default {
        type asym
        playback { pcm "plughw:0,0" }
        capture  { pcm "plughw:1,0" }

NOTE: If any ALSA application (.e.g. Ekiga ), trying to change parameters of Default sound card, then it will receive an error.


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: