You are not logged in.

#1 2013-10-05 22:46:32

Ghosy
Member
Registered: 2013-03-20
Posts: 4

Alsa Primary Sound Card Only Outputting Left Ear

When setting up my .asoundrc so my defaults were correct with my mic. Alsa got to thinking that my soundcard is only mono(or my sound card broke). Even with the .asoundrc asking for 2 channels it still only outputs the left ear. The sound was working perfectly fine before this and now refuses to go back even with the same .asoundrc as before.

I have tested and made sure that the cable or my mixer is not at fault. My other sound card in my computer still functions in stereo.


.asoundrc

pcm.!default {
	type plug
	slave.pcm "dmixed"
}

pcm.dsp {
	type plug
	slave.pcm "dmixed"
}

pcm.dmixed {
	type dmix
	ipc_key 1024
	slave {
		pcm {
			type hw
			card CA0106
		}
		rate 44100
		period_time 0
		period_size 1024
		buffer_size 8192
		channels 2
	}
	bindings {
		0 0
		1 1
	}
}

ctl.dmixed {
	type hw
	card CA0106
}

capture.pcm {
	pcm {
		type hw
		card CA0106
	}
}

Last edited by Ghosy (2013-10-06 16:34:01)

Offline

#2 2013-10-08 02:59:17

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Alsa Primary Sound Card Only Outputting Left Ear

What model of CA0106 are you using? According to http://alsa.opensrc.org/Ca0106 there are 3 different models. You can look up your default alsa configuration devices with:

less /usr/share/alsa/cards/CA0106.conf

There may be some differences with default bindings with different models. Check if there are any hardware switches/paths configured:

alsamixer

and hit F5.

Your .asoundrc does not seem to be ok. Try something like this:

pcm.!default {  type plug;
                slave.pcm "ca0106";     }

pcm.ca0106 {    type asym;
                playback.pcm "dmix";
                capture.pcm "cap";      }

pcm.dmix {      type dmix;
                ipc_key 1024;
                slave { pcm {   type hw;
                                card CA0106;     
                                rate 44100;
                                period_time 0;
                                period_size 1024;
                                buffer_size 8192;
                                channels 2;     }       }
                                                                                                                               
pcm.cap {       type hw;                                                                                       
                card CA0106;             
                #Change to correct device or delete next line
                device 0;       }

ctl.!default {  type hw;
                card CA0106;        }

I left bindings out, so alsa can default, but if nothing happens, try:

pcm.dmix {      type dmix;
                ipc_key 1024;
                slave { pcm {   type hw;
                                card CA0106;     
                                rate 44100;
                                period_time 0;
                                period_size 1024;
                                buffer_size 8192;
                                channels 2;     }        
                        bindings {      0 0;     
                                        0 1;    }       }

instead.
You can also set rate to 192000 if your model supports it, the type plug plugin takes care of making any stream compatible to it.
I am a bit rusty on alsa configuration, since I have done mine a very long time ago, you may want to check it for some hints http://pastebin.com/sG3kuPLu.

Edit: The formatting may not display closing brackets }, but they are there. Copy the whole code.

Last edited by emeres (2013-10-08 03:12:08)

Offline

#3 2013-10-08 03:24:54

dabholkarsa
Member
From: Chandannagar, India
Registered: 2013-10-02
Posts: 18

Re: Alsa Primary Sound Card Only Outputting Left Ear

See if changing your model works:
ALSA - Arch Wiki


Keep It Simple, Stupid

Offline

Board footer

Powered by FluxBB