Fatdog alsa sound configuration problems[SOLVED]

versatile 64-bit multi-user Linux distribution

Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators

Post Reply
User avatar
stemsee
Posts: 664
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 0
Has thanked: 162 times
Been thanked: 106 times
Contact:

Fatdog alsa sound configuration problems[SOLVED]

Post by stemsee »

fatdog sound configuration tool is not working fully.

Firstly I know my hardware (acer chromebook) is a bit unusual but notwithstanding I have independently got all devices working, namely, speakers, headphones, headset mic and onboard stereo mics. The mics are hw:0,1 (headset right channel only, mono) and hw:0,2 (stereo, 2 channels) .... guvcview, audacity, jack all allow selection and capture from these mics/devices. But fatdog input and aloop configurators do not. This means I cannot use the mics with browser based apps, wechat, whatsapp, etc . It seems sound configuration scripts work on assumptions, rather than selectable devices! I really don't want to have to learn alsa configuration syntax, as it is ridiculous. I'm just waiting for fatdog to reach glibc 2.34 so I can compile pipewire and avoid a lot of frustration. In the meantime, I need a capture block to drop into the configured aloop setup! Any help appreciated.

This is my .asoundrc

Code: Select all

pcm.!default fdplug
pcm.fdplug {
	type plug
	slave {
		pcm fdasym
		rate 48000
	}
}
pcm.fdasym { 
		type asym 
		playback.pcm {
			@func getenv
			vars [ ALSA_PCMOUT ]
			default fddmix
		}
		capture.pcm {
			@func getenv
			vars [ ALSA_PCMIN ]
			default fdhw
		}
}
pcm.fddmix { 
	type dmix 
	ipc_key     2342329
	ipc_gid audio
	ipc_perm 0660 
	slave {
		pcm fdhw
		period_time 0
		period_size 2048
		buffer_size 32768
		format S16_LE
		channels 2
		rate 48000
	}
}
pcm.fdhw "hw:Loopback,0,6"
pcm.aloopd {
	type plug
	slave {
		pcm "hw:Loopback,1,6"
		rate 48000
		format S16_LE
	}
}
pcm.aloopdshared {
	type plug
	slave.pcm aloopdsnoop
}
pcm.aloopdsnoop {
	type dsnoop
	ipc_key    13328617
	ipc_gid audio
	ipc_perm 0660
	slave {
		pcm "hw:Loopback,1,6"
		rate 48000
		format S16_LE
	}
}

# ===== Manual override section =======
# for manual use with plug: overrides
pcm.vdownmix 
{
	@args [ SLAVE ]
	@args.SLAVE {
		type string
	}
	type vdownmix
	slave.pcm $SLAVE
}
# for a2dp-alsa (manual edits) - deprecated, replaced by bluealsa
pcm.a2dpfifo {
	type rate
	slave {
		pcm {
			type file
			slave.pcm "null"
			file "/tmp/a2dp.fifo"		
		}
		rate 44100
	}
}

cheers
stemsee

Last edited by bigpup on Mon Jan 23, 2023 7:29 pm, edited 2 times in total.
Reason: put solved on end of subject. This helps to make the forum seach work better
User avatar
stemsee
Posts: 664
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 0
Has thanked: 162 times
Been thanked: 106 times
Contact:

Re: Fatdog alsa sound configuration problems

Post by stemsee »

I adjusted .aloopdrc specifying -C hw:0,1 instead of hw:0,0 .... it doesn't accept hw:0,2 which is a 2 channel device.
So headset mic now works with firefox.

Code: Select all

# playback job
-t 50000 -T -1 -S none -C aloopdshared -P hw:0,0

# capture job - use "aloopd" only here. Never use "aloopdshared".
-t 50000 -T -1 -S none -C hw:0,1 -P aloopd

I suggest your aloop configuration script input section needs updating.

User avatar
stemsee
Posts: 664
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 0
Has thanked: 162 times
Been thanked: 106 times
Contact:

Re: Fatdog alsa sound configuration problems

Post by stemsee »

stemsee wrote: Sun Jan 22, 2023 2:12 pm

I suggest your aloop configuration script input section needs updating.

... I see it's already updated in 813, I now see subdevices, that were previously not evident! I think it even split channels. :thumbup2:

Post Reply

Return to “FatDog64”