[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

ALC861 codec and volume control



Hi!

Just an idea.

I'm working with one laptop (RoverBook Voyager V200) based on Uniwill's
motherboard. This laptop has ALC861 codec inside. 
I've downloaded the datasheet for the codec and discovered the codec hasn't
hardware volume control (only mute/unmute!). 
But the Fedora Core distribution does not install any software volume
controls (I'm not trying F-7 and above).

The solution is to add attached here file as ~/.asoundrc (or to similar system's
file). And initialization stuff to file like rc.local:
	# Mute 'Front' control temporary
	amixer set "Front" 10% mute

	# Initialize new control
	aplay -D default -t wav /usr/share/sounds/alsa/Front_Left.wav
	aplay -D default -t wav /usr/share/sounds/alsa/Front_Right.wav

Do anaconda make this job for us?

-- 
With best regards,
Andy Shevchenko.      mailto: andy smile org ua


# set the default player to a softvolume plug
pcm.!default {
        type plug
        slave.pcm "softvol"
}

pcm.dsp0 {
	type plug
	slave.pcm "softvol"
}

# soft volume device with channel named master (this channel cannot already exist)
pcm.softvol {
	type softvol
	# pipe into dmix in order to mix multiple devices
	slave {
		pcm "hw:0,0"
	}
	control {
                name "Front Playback Volume"
		card 0
	}
}

pcm.dmix-analog {
	type dmix
	ipc_key 1024
	slave {
		pcm "hw:0,0"
		period_time 0
		period_size 1024
		buffer_size 4096
		rate 44100
	}
}

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]