You are not logged in.

#1 2014-02-16 15:05:36

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,253

Noisy USB Webcam mic

OK, for several reasons I've dumped Pulseaudio again (primarilly, frequent audio crashed in VLC and my favourite (and only) wine game), and complete flash crashes. Purging my system of pulse has cleared them all, and after some torment changing necessary configs, I have alsa working in everything again, including 5.1 surround. However, I don't have a mic on my primary soundcard (Creative X-Fi audio - which in honesty is just a glorified soundblaster using the CA0106 drivers).

I do, however, have a Mic on my Microsoft VX-5000 (or possibly 3000 - I forget) webcam, which worked fine whilst I had pulse installed. However, since reverting to pure alsa I get a horriible low frequency hum from the mic, and I'd like to cure it.

If anyone can help.

.asoundrc:

pcm.usb
{
    type hw
    card 1
}

pcm.!default
{
    type asym
    playback.pcm
    {
        type plug
        slave.pcm "both"
    }
    capture.pcm
    {
        type plug
        slave.pcm "usb"
    }
}


#pcm.!default plug:both

ctl.!default {
	type hw
	card 0
}

pcm.both {
	type route
	slave.pcm {
		type multi
slaves {
	a.pcm "dfront"
	a.channels 2
	b.pcm "drear"
	b.channels 2
	c.pcm "dcenter"
	c.channels 2
}

bindings {
	0.slave a;
	0.channel 0;
	1.slave a;
	1.channel 1;

	2.slave b;
	2.channel 0;
	3.slave b;
	3.channel 1;

	4.slave c;
	4.channel 0;
	5.slave c;
	5.channel 1;

}
}

ttable {
	0.0 1;
	1.1 1;

	3.3 1;
	4.4 1;

	2.2 1;
	5.5 1;

}
}

ctl.both {
	type hw
	card 0
}

pcm.dfront {
	type dmix
	ipc_key 1024
	slave {
	pcm "front"
	period_time 0
	period_size 1024
	buffer_size 8192
	rate 48000
}
}

ctl.dfront {
	type hw
	card 0
	device 0
}

pcm.drear {
	type dmix
	ipc_key 2048
	slave {
	pcm "rear"
	period_time 0
	period_size 1024
	buffer_size 8192
	rate 48000
}
}

ctl.drear {
	type hw
	card 0
	device 1
}

pcm.dcenter {
	type dmix
	ipc_key 4096
	slave {
	pcm "center_lfe"
	period_time 0
	period_size 1024
	buffer_size 8192
	rate 48000
}
}

ctl.dcenter {
	type hw
	card 0
	device 2
}

pcm.sblive {
	type plug
	slave {
	pcm "hw:0,0"
 	rate 48000
}
}
pcm.upmix51 {
    type upmix
    slave.pcm "surround51"
    delay 15
    channels 6
}

/etc/modprobe.d/modprobe.conf

blacklist radeon
options snd-hda-intel model=-auto position_fix=3

/etc/modprobe.d/alsa-base.conf

options snd slots=snd_ca0106
options snd_ca0106 index=0

The last is to ensure that my primary soundcard always gets the same assignment.

I've tried various (read I can't remember which nor how many) solutions I found googling, but nothing has helped yet. I'm still a complete novice with alsa (despite years with Linux), and my .asoundrc is butchered together with options recommended or found, so I can't claim to understand why it works or how it works.

Let me know if you need more info.

BTW, all other capture sources in alsamixer are muted.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

Board footer

Powered by FluxBB