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

Re: sound in new powerbooks



On Tue, 2005-03-15 at 18:38 +0000, Ben Hill wrote:
> On Tue, 2005-03-15 at 14:32 +0000, Wee-Jin Goh wrote:
> > 
> > Have you tried taking a look at alsamixer? With my Powerbook 12", I
> > had
> > to use alsamixer to unmute some things (can't remember off the top of
> > my
> > head) and then used alsactl to store those settings so that they were
> > remembered on next boot.\
> 
> Just replying on-list as your email account is bouncing.
> 
> Could you run through your setup for me?
> 
> Cheers,
> 
> Ben
> 
> -- 
> ben@serosoft.com - www.seigan.org
> PGP Key fingerprint = 4309 1C58 5143 AFAC F69E  11CD 76FD 56D4 1223 E387
> 
> 

I have the following in a file called /etc/modutils/sound :
alias char-major-14	soundcore
alias sound-slot-0	dmasound_pmac
alias char-major-14-3	dmasound_pmac
alias /dev/dsp		dmasound_pmac
alias sound-service-0-0	i2c-keywest
alias char-major-14-0	i2c-keywest
alias /dev/mixer	i2c-keywest

This may not be necessary, if there is a file called alsa-base in /etc/modutils but you can just put it in to be safe :)

Add the following line to /etc/modules if it isn't already there.
snd-powermac

Below, I have the file /var/lib/alsa/asound.state that controls the volumes, and it's what alsactl loads by default when starting the computer.
It's a bit long, but if you copy and paste that in /var/lib/alsa/asound.state, it should work.

state.Snapper {
	control.1 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 176'
		iface MIXER
		name 'Master Playback Volume'
		value.0 92
		value.1 92
	}
	control.2 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Master Playback Switch'
		value.0 true
		value.1 true
	}
	control.3 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 176'
		iface MIXER
		name 'PCM Playback Volume'
		value.0 134
		value.1 134
	}
	control.4 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 176'
		iface MIXER
		name 'PCM Playback Volume'
		index 1
		value.0 146
		value.1 146
	}
	control.5 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 176'
		iface MIXER
		name 'Monitor Mix Volume'
		value.0 122
		value.1 122
	}
	control.6 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 72'
		iface MIXER
		name 'Tone Control - Bass'
		value 52
	}
	control.7 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 72'
		iface MIXER
		name 'Tone Control - Treble'
		value 50
	}
	control.8 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'DRC Switch'
		value true
	}
	control.9 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 239'
		iface MIXER
		name 'DRC Range'
		value 150
	}
	control.10 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Line
		comment.item.1 Mic
		iface MIXER
		name 'Input Source'
		value Line
	}
	control.11 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Headphone Playback Switch'
		value false
	}
	control.12 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'PC Speaker Playback Switch'
		value true
	}
	control.13 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Auto Mute Switch'
		value true
	}
	control.14 {
		comment.access read
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Headphone Detection'
		value false
	}
	control.15 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 100'
		iface MIXER
		name 'Beep Playback Volume'
		value 23
	}
}


That is my sound configuration.

Hope that helps,
Wee-Jin



p.s. I can't seem to send emails to you either. Strange...

-- 
____________________________________________
Wee-Jin Goh (Philip)
Department of Computing
School of Technology
Oxford Brookes University
Wheatley Campus
Oxford, OX33 1HX
United Kingdom
____________________________________________
A life dedicated to things is a dead life, a stump; a God
shaped life is a flourishing tree -- Proverbs 11:28 (MSG)





Reply to: