On Tue, Oct 16, 2001 at 04:29:48PM +0200 or thereabouts, Matthias Queisler wrote:
> Hi James,
> 
> I heard from the alsa mailinglist, that you are successfully running a
> VIA686a Soundchip under linux. Can you please explain me, what I have to add
> into the modules.conf and what else I have to do to get this thing working?
> I tried many things but nothing worked :(
> 
> cu and big thx
> 
> Matthias Queisler
> 
Hi Matthias (and the list),

This following is my local setup for alsa sound running on a Sony Vaio
PCG-FX210.  A quick glance at lspci shows:

00:07.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686
[Apollo Super AC97/Audio] (rev 20)

I am running Slackware Linux 8.0, with the 2.2.19 kernel

I downloaded the following:

alsa-driver-0.5.11.tar.bz2
alsa-lib-0.5.10b.tar.bz2
alsa-utils-0.5.10.tar.bz2

and compiled the lot, in order, with 

CC=egcs ./configure --with-cards=via686a --host=i386-linux
make 
make install  (this done as root, of course)
be sure to READ the INSTALL document in alsa-driver-0.5.11, and follow
all of the instructions.  after make install, you have to run that 
script to make the devices, then create modules.conf, and so on, as 
documented below.  

then the following setup files:

#########################################################
# file: /etc/modules.conf
#########################################################
# ISA PnP support
# this is probably irrelevant to getting alsasound to work on the 
# sony vaio, and I do not recall why i put it here, but why 
# mess with it
options isapnp isapnp_reserve_irq=5

#ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-card-via686a
# options snd-card-via686a    
#   snd_mpu_port 0x300 
#   snd_mpu_port  - 0x300,0x310,0x320,0x330, otherwise obtain BIOS setup
#    snd_joystick       - 1 = enable, otherwise obtain BIOS setup
#    snd_pbk_frame_size  - max playback frame size in kB (4-128kB)
#    snd_cap_frame_size  - max capture frame size in kB (4-128kB)

alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

#OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-12 snd-pcm-oss

#########################################################
## file /etc/asound.conf
#########################################################
# this file was automatically generated the first time I ran
# alsactl store (actually by running alsasound start, then alsasound stop
# as root).  It also provides a good starting point if you aren't going
# to use the startup script.
#
# the 0.9 generation alsactl looks for asound.state, i think.  I never
# tried using this file in place of that file.

# ALSA driver configuration
# This configuration is generated with the alsactl program.

soundcard("card1") {
  mixer("Analog Devices AD1881A") {
    ; The type is 'bool'.
    switch("AC97 PCM Output Path", false)
    ; The type is 'bool'.
    switch("AC97 Mono Output Select", false)
    ; The type is 'bool'.
    switch("AC97 Second MIC", false)
    ; The type is 'bool'.
    switch("ADC/DAC Loopback", false)
    element("Input Gain Switch",0,101,Switch2(on))
    ; Voice 0 : Min 0 Max 15
    ; Voice 1 : Min 0 Max 15
    element("Input Gain Volume",0,200,Volume1(13,13))
    element("Master Mono Switch",0,101,Switch2(on))
    ; Voice 0 : Min 0 Max 31
    element("Master Mono Volume",0,200,Volume1(25))
    element("Headphone Switch",0,101,Switch2(on))
    ; Voice 0 : Min 0 Max 31
    ; Voice 1 : Min 0 Max 31
    element("Headphone Volume",0,200,Volume1(13,13))
    element("Master Switch",0,101,Switch2(on))
    ; Voice 0 : Min 0 Max 63
    ; Voice 1 : Min 0 Max 63
    element("Master Volume",0,200,Volume1(58,58))
    ; The 3D effect has an on/off switch.
    ; Center : Min 0 Max 15
    ; Depth : Min 0 Max 15
    element("Effect",0,600,_3D_Effect1(sw=off,center=0,depth=0))
    element("Aux Switch",0,101,Switch2(off))
    ; Voice 0 : Min 0 Max 31
    ; Voice 1 : Min 0 Max 31
    element("Aux Volume",0,200,Volume1(16,16))
    element("Video Switch",0,101,Switch2(off))
    ; Voice 0 : Min 0 Max 31
    ; Voice 1 : Min 0 Max 31
    element("Video Volume",0,200,Volume1(0,0))
    element("CD Switch",0,101,Switch2(on))
    ; Voice 0 : Min 0 Max 31
    ; Voice 1 : Min 0 Max 31
    element("CD Volume",0,200,Volume1(26,26))
    element("Line Switch",0,101,Switch2(on))
    ; Voice 0 : Min 0 Max 31
    ; Voice 1 : Min 0 Max 31
    element("Line Volume",0,200,Volume1(22,22))
    element("MIC Switch",0,101,Switch2(off))
    ; Voice 0 : Min 0 Max 31
    element("MIC Volume",0,200,Volume1(22))
    ; Voice 0 : Min 0 Max 1
    element("MIC Boost",0,200,Volume1(0))
    element("Phone Switch",0,101,Switch2(on))
    ; Voice 0 : Min 0 Max 31
    element("Phone Volume",0,200,Volume1(26))
    element("PC Speaker Switch",0,101,Switch2(on))
    ; Voice 0 : Min 0 Max 15
    element("PC Speaker Volume",0,200,Volume1(9))
    element("PCM Switch",0,101,Switch2(on))
    ; Voice 0 : Min 0 Max 31
    ; Voice 1 : Min 0 Max 31
    element("PCM Volume",0,200,Volume1(16,16))
    element("Mono Output MUX",0,401,Mux2(element("Mono-Out Accumulator",0,301)))
    element("Input MUX",0,400,Mux1(element("MIC Boost",0,200),element("MIC 
Boost",0,200)))
  }
}

#########################################################
## then in my /etc/rc.d/rc.local (slackware style inits) I put
#########################################################
#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local setup commands in here:
# cleanest way I know of to stick these goofy runlevel-based scripts
# into slackware.  also, has the advantage of not running alsasound stop
# when you shut down, which means that you always get to keep your 
# mixer settings no matter what you do to them when you are using your 
# computer.n  I just call up alsamixer when i need to mute or turn down
# volume, but the next time i turn on my laptop, it is set just
# how I want it for headphone sound

/etc/rc.d/init.d/alsasound start
#/etc/touchpad


#########################################################
# Finally, I placed the standard 0.5.11 alsasound script at 
#########################################################
# /etc/rc.d/init.d/alsasound

obviously if you are running some other distribution you'd put it where 
it belongs.  I think the intall actually handles that automatically, but
not for Slackware!

Have fun,
James

ps, if anyone has any luck getting firewire or acpi working on the
fx210, post notes to the linux-laptops page.  I will eventually post a
link to this sound stuff there.

_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to