Hi,
On 10/26/06, Adrian Christiansen <adrian.christiansen gmail.com> wrote:
> But at least I got X I'll send
the modelines to the mailinglist if I
> find some that works.
Fine!
> Next up is sound
Audio works great, since the eMac uses the TAS3004 audio
chip
supported by the snapper(4) driver. You simply have to
activate the
driver and build the kernel.
The complete documentation on building a kernel is available
on the
NetBSD website:
http://www.netbsd.org/Documentation/kernel/#how
_to_build_a_kernel
In the step 6 in which you edit the config file, you simply
need to
activate the driver:
Search the string "snapper" to find the following
line:
#snapper* at obio? # Snapper audio device
Uncomment the line by removing the first hash character (#)
.
Just a few lines above the snapper line you have this:
#ki2c* at obio? # Keywest I2C
You need to uncomment that line too since ki2c is needed by
snapper(4)
to operate.
Then search again by "snapper" to find the
following line:
#audio* at snapper?
Again, uncomment it by removing the # character. This will
attach the
audio(4) interface to the snapper(4) driver.
By the way you can uncomment the OFB_ENABLE_CACHE option
too, since it
greatly improves the console speed:
# OFB_ENABLE_CACHE speeds up the console on many machines,
but should
# not be enabled on some older machines, such as the rev.
A-D iMacs.
#options OFB_ENABLE_CACHE # Speed up console
Of course this is unrelated to audio and is not required.
Then save the file and compile the kernel as documented.
Then install
it as /netbsd (keep the generic kernel as /netbsd.old just
in case,
but it should work out-of-the-box).
Then audio will work fine. You can use mixerctl(1) to set
the master
volume. In example:
mixerctl -w monitor.master=192
(use mixerctl -v -a to view all the controls)
To test it, you can play some WAV or AU file using the
audioplay(1)
program which comes with NetBSD. In example:
audioplay -d /dev/audio file.wav
Then you can use pkgsrc to install what audio program you
need, and it
should work out-of-the-box.
HTH
-Marco
|