Subject: mixer
To: None <tech-kern@netbsd.org>
From: ITOH Yasufumi <itohy@netbsd.org>
List: tech-kern
Date: 09/30/1999 12:38:27
  Hello,

I have some questions about audio(4) mixer device.

 1. Is the "audioctl play.gain" an alias of "mixerctl inputs.dac" ?
    If not, what's the difference?

 2. I've almost finished the ym driver and currently the mixer device
    is like this:
	% mixerctl -av
	inputs.dac=220,220 volume
	inputs.dac.mute=off  [ off on ]
	inputs.midi=220,220 volume
	inputs.midi.mute=off  [ off on ]
	inputs.cd=220,220 volume
	inputs.cd.mute=off  [ off on ]
	inputs.line=220,220 volume
	inputs.line.mute=off  [ off on ]
	inputs.speaker=0 volume
	inputs.speaker.mute=on  [ off on ]
	inputs.mic=0,0 volume
	inputs.mic.mute=on  [ off on ]
	monitor.monitor=0 volume
	monitor.monitor.mute=off  [ off on ]
	record.record=220,220 volume
	record.record.source=mic  [ mic line dac cd ]
	outputs.master=220,220 volume
	outputs.master.mute=off  [ off on ]
	equalization.mode=desktop  [ desktop laptop subnote hifi ]
	equalization.treble=0,0 treble
	equalization.bass=0,0 bass
	equalization.surround=0,0 surround
	power.power=powersave  [ powerdown powersave nosave ]
	power.power.timeout=5 timeout

    Here is a question.
    The following parameters are not in other drivers, and
    I don't know the naming convention of mixer paremeters.
    What do you think about these?
    Acceptable/XXX is better/should not in mixer:)/or other ?

	"equalization.mode"
		sensitivity of 3D enhance
	"equalization.surround"
		wide stereo
		Should be "equalization.wide" or something?
	"power.power"
		powerdown: put the chip in Global Power Down Mode (~10uA)
			when unused,
		powersave: put the chip in Power Save Mode (~5mA) when unused,
		nosave: do not power down nor power save the chip (~100mA)
		Should be "power.power.mode" or something?
	"power.power.timeout"
		time in sec between device close and power down/save


The diff of the driver is at this location, for your information.
The "ym at isa" stuff is not intended to commit.

ftp://ftp.netbsd.org/pub/NetBSD/misc/itohy/ym-19990930.diff.gz
MD5 (ym-19990930.diff.gz) = 8c29891a1a47f4d66753f0793a4a699e

Regards,
--
ITOH, Yasufumi <itohy@netbsd.org>