From alsa-devel-owner@alsa.jcu.cz  Sun Feb 14 20:17:39 1999
Received: from mailhost.math.uni-hamburg.de (GEOMAT.math.uni-hamburg.de [134.100.220.2])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id UAA10837
	for <alsa-devel@alsa.jcu.cz>; Sun, 14 Feb 1999 20:15:56 +0100
Received: from Hermesbaby.athome (root@max1-007.public.uni-hamburg.de [134.100.43.7])
	by mailhost.math.uni-hamburg.de (8.8.8/8.8.8) with ESMTP id UAA17854
	for <alsa-devel@alsa.jcu.cz>; Sun, 14 Feb 1999 20:10:45 +0100 (MET)
Received: by math.uni-hamburg.de
	via sendmail from stdin
	id <m10C6xm-000Y7VC@Hermesbaby.athome> (Debian Smail3.2.0.101)
	for alsa-devel@alsa.jcu.cz; Sun, 14 Feb 1999 20:12:18 +0100 (CET) 
From: Daniel Hempel <daniel@math.uni-hamburg.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <14023.8209.367774.99145@Hermesbaby.athome>
Date: Sun, 14 Feb 1999 20:12:17 +0100 (CET)
To: alsa-devel@alsa.jcu.cz
Subject: Problem with line-in
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list


Hello!

I have some problems with the "Line-In" device of my soundcard using the
ALSA-drivers on an Acer Extensa 367 T notebook.

My problem: Even if all devices are muted and the volume is "zero" I can
record music on the right channel of the Line-In device. Furthermore the right
channel is not adjustable (always on maximum). It's possible to change the
values with the mixer programs but the recorded level of the right channel is
still on maximum. Somehow the right channel of Line-In is circumventing the
master level and muting and the Line-In level and muting.

Thanks in advance for your help

  Daniel Hempel


Technical informations:
**********************************************************************
# uname -a
Linux Hermesbaby 2.0.35 #38 Wed Feb 10 16:11:02 CET 1999 i586 unknown

----------------------------------------------------------------------

# cat /proc/asound/version 
Advanced Linux Sound Architecture Driver Version 0.3.0-pre4.
Compiled in Feb 10 1999 for kernel 2.0.35 with versioned symbols.

----------------------------------------------------------------------

# cat /proc/asound/cards
0 [card1          ]: OPL3SA - Yamaha OPL3-SA3
                     Yamaha OPL3-SA3 at 0x370, irq 10, dma 1&0
----------------------------------------------------------------------

# lsmod
Module         Pages    Used by
serial_cs          1   0
ds                 2 [serial_cs] 3
i82365             4   2
pcmcia_core        8 [serial_cs ds i82365] 4
dummy              1   1 (autoclean)
snd-opl3sa         2   1
isapnp             6 [snd-opl3sa] 0
snd-opl3           1 [snd-opl3sa] 0
snd-cs4231         3 [snd-opl3sa] 0
snd-timer          1 [snd-opl3 snd-cs4231] 0
snd-pcm1           4 [snd-cs4231] 0
snd-pcm            3 [snd-opl3sa snd-cs4231 snd-pcm1]  0
snd-mixer          4 [snd-opl3sa snd-cs4231] 1
snd-mpu401-uart    1 [snd-opl3sa] 0
snd-midi           4 [snd-opl3sa snd-mpu401-uart] 0
snd-synth          1 [snd-opl3sa snd-opl3] 0
snd                9 [snd-opl3sa snd-opl3 snd-cs4231 snd-timer snd-pcm1 snd-pcm snd-mixer snd-mpu401-uart snd-midi snd-synth]   1

----------------------------------------------------------------------

# cat /proc/isapnp 
Device 1 'YMH0800:YAMAHA OPL3-SAx Audio System' PnP version 1.0
  Logical device 0 'YMH0021:Unknown'
    Device is active
    Active port 0x220,0x530,0x388,0x330,0x370
    Active IRQ 10 [0x2]
    Active DMA 1,0
    Resources 0
      Priority preferred
      Port 0x220-0x220, align 0xf, size 0x10, 16-bit address decoding
      Port 0x530-0x530, align 0x7, size 0x8, 16-bit address decoding
      Port 0x388-0x388, align 0x7, size 0x8, 16-bit address decoding
      Port 0x330-0x330, align 0x1, size 0x2, 16-bit address decoding
      Port 0x370-0x370, align 0x1, size 0x2, 16-bit address decoding
      IRQ 5 High-Edge
      DMA 0 8-bit byte-count type-A
      DMA 7 16-bit word-count type-A
      Alternate resources 0:1
        Priority acceptable
        Port 0x240-0x240, align 0xf, size 0x10, 16-bit address decoding
        Port 0xe80-0xe80, align 0x7, size 0x8, 16-bit address decoding
        Port 0x388-0x388, align 0x7, size 0x8, 16-bit address decoding
        Port 0x300-0x300, align 0x1, size 0x2, 16-bit address decoding
        Port 0x100-0xffe, align 0x1, size 0x2, 16-bit address decoding
        IRQ 5,7,2/9,10,11 High-Edge
        DMA 0,1 8-bit byte-count type-A
        DMA 7 16-bit word-count type-A
      Alternate resources 0:2
        Priority functional
        Port 0x220-0x280, align 0xf, size 0x10, 16-bit address decoding
        Port 0x530-0xf48, align 0x7, size 0x8, 16-bit address decoding
        Port 0x388-0x3f8, align 0x7, size 0x8, 16-bit address decoding
        Port 0x300-0x334, align 0x1, size 0x2, 16-bit address decoding
        Port 0x100-0xffe, align 0x1, size 0x2, 16-bit address decoding
        IRQ 3,5,7,2/9,10,11 High-Edge
        DMA 0,1,7 8-bit&16-bit byte-count word-count type-A
        DMA 0,1,7 8-bit&16-bit byte-count word-count type-A

----------------------------------------------------------------------

#cat /etc/asound.conf
# ALSA driver configuration
# Generated by alsactl

soundcard( "card1" ) {
  mixer( "Yamaha OPL3-SA3" ) {
    ; Capabilities: stereo hardware-mute.
    ; Accepted channel range is from 0 to 15.
    channel( "Master", stereo( 0 mute, 0 mute ) )
    ; Capabilities: stereo.
    ; Accepted channel range is from 0 to 7.
    channel( "3D Wide", stereo( 0 mute, 0 mute ) )
    ; Capabilities: stereo.
    ; Accepted channel range is from 0 to 7.
    channel( "Bass", stereo( 0 mute, 0 mute ) )
    ; Capabilities: stereo.
    ; Accepted channel range is from 0 to 7.
    channel( "Treble", stereo( 0 mute, 0 mute ) )
    ; Capabilities: record join-record stereo hardware-mute.
    ; Accepted channel range is from 0 to 31.
    channel( "FM", stereo( 0 mute, 0 mute ) )
    ; Capabilities: stereo hardware-mute.
    ; Accepted channel range is from 0 to 63.
    channel( "PCM", stereo( 0 mute, 0 mute ) )
    ; Capabilities: record join-record stereo hardware-mute external-input.
    ; Accepted channel range is from 0 to 31.
    channel( "Line-In", stereo( 0 mute, 0 mute ) )
    ; Capabilities: record hardware-mute join-mute external-input.
    ; Accepted channel range is from 0 to 31.
    channel( "MIC", mono( 0 mute ) )
    ; Capabilities: record join-record stereo hardware-mute external-input.
    ; Accepted channel range is from 0 to 31.
    channel( "CD", stereo( 0 mute, 0 mute ) )
    ; Capabilities: stereo.
    ; Accepted channel range is from 0 to 15.
    channel( "Record-Gain", stereo( 0 mute, 0 mute ) )
    ; Capabilities: stereo hardware-mute digital.
    ; Accepted channel range is from 0 to 63.
    channel( "Loopback", stereo( 0 mute, 0 mute ) )
    ; Type is 'bool'.
    switch( "MIC Gain", true )
    ; Type is 'bool'.
    switch( "Mono Output", true )
  }
}


