Subject: CVS commit: syssrc/sys/dev/ic
To: None <source-changes@netbsd.org>
From: TAMURA Kent <kent@netbsd.org>
List: source-changes
Date: 10/14/2002 11:48:16
Module Name: syssrc
Committed By: kent
Date: Mon Oct 14 08:48:16 UTC 2002
Modified Files:
syssrc/sys/dev/ic: ac97.c ac97var.h
Log Message:
Mixer changes:
- Add "outputs.surround", "outputs.center", and "outputs.lfe"
- If the codec is not capable of a feature, mixer variables
about the feature is not created. For example, no
"outputs.tone" for a codec without tone control.
- Set the following mixer values in ac97_attach():
outputs.master=127,127
outputs.master.mute=off
outputs.headphones.mute=off
outputs.surround=127,127
outputs.surround.mute=off
outputs.center=127
outputs.center.mute=off
outputs.lfe=127
outputs.lfe.mute=off
inputs.dac.mute=off
inputs.cd.mute=off
inputs.line.mute=off
inputs.aux.mute=off
inputs.video.mute=off
record.volume.mute=off
because the default setting of AC'97 codec (all mutes are on,
and maximum volume) is troublesome.
- Make "char*" parameters of ac97_get_portnum_by_name() "const char*"
Codec ID changes:
- If a codec ID is unknown but its vendor ID is known,
ac97_attach() prints the vendor name like "dev0: <vendor name>
unknown (0xXXXXXXXX) codec;"
- Add IDs of Asahi Kasei AK4542, AK4544, AK4544A, AK4545,
Realtek ALC100
- Correct a vendor name: "Advance Logic" -> "Avance Logic"
- Add capability of codec-specific initialization
ac97_attach():
- CDAC, SDAC, and LDAC are eanabled.
- DELAY() before mixer settings. ThinkPad X24 needs it.
ALC650 codec specific change:
- Add "outputs.surround.lineinjack" to switch the line-in jack
to the surround output
- Add "outputs.center.micjack" and "outputs.lfe.micjack" (alias
of "outputs.center.micjack") to switch the mic jack to the
center/lfe output.
To generate a diff of this commit:
cvs rdiff -r1.32 -r1.33 syssrc/sys/dev/ic/ac97.c
cvs rdiff -r1.6 -r1.7 syssrc/sys/dev/ic/ac97var.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.