From alsa-user-owner@alsa.jcu.cz  Sun Oct 11 20:18:56 1998
Received: from vogon.net (vogon.rain.com [206.163.43.59])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id UAA27235
	for <alsa-user@jcu.cz>; Sun, 11 Oct 1998 20:15:16 +0200
Received: (from philip@localhost)
	by vogon.net (8.9.1/8.9.1) id LAA11111
	for alsa-user@jcu.cz; Sun, 11 Oct 1998 11:15:12 -0700 (PDT)
From: Philip Peake <philip@vogon.net>
Message-Id: <199810111815.LAA11111@vogon.net>
Subject: Re: Help with Ensoniq PCI
To: alsa-user@jcu.cz
Date: Sun, 11 Oct 1998 11:15:05 -0700 (PDT)
In-Reply-To: <Pine.LNX.3.96.981011112719.23877B-100000@entry.jcu.cz> from "Jaroslav Kysela" at Oct 11, 98 11:29:14 am
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

> > What I can't do is record anything at all from the microphone.
> > (Which works fine under Win95).
> 
> Which chip do you have? Please, send us output from
> 'cat /proc/asound/cards'.

0 [card1          ]: AudioPCI - Ensoniq AudioPCI
                     Ensoniq AudioPCI ES1370 at 0xf4c0, irq 10

> I tested only ES1370 mic input (I'm using it for RAT without problems).
> ES1371 MIC input should have trouble.
> 
> You can also try raise MIC GAIN (look to INSTALL file howto).

I don't see anything in the INSTALL about MIC GAIN for the AudioPCI
card, it has:

/proc/asound/#card#/audiopci
----------------------------
  Interface for Ensoniq AudioPCI.

  +-- ES1370 only
  | String "Mic-impedance on" -> change microphone impedance
  | String "Mic-impedance off" -> don't change microphone impedance
  | String "AOUT on" -> convert Line In jack to AOUT jack
  | String "AOUT off" -> leave Line In jack untouched
  +--
  String "Joystick on" -> enable joystick port
  String "Joystick off" -> disable joystick port
  +-- ES1371 only
  | String "Jport 0x200" -> set joystick base port to 0x200
  | String "Jport 0x208" -> set joystick base port to 0x208
  | String "Jport 0x210" -> set joystick base port to 0x210

However, the alsamixer reports:

	Card: Ensoniq AudioPCI
	Chip: Asahi Kasei AK4531

So, looking further down the INSTALL file I find:

--------------------------
  Interface for Asahi Kasei AK4531 audio codec.

  String "Source external" -> record source is external input
  String "Source mixer" -> record source is mixer
  String "Mic-Gain" -> set MIC gain to +30dB
  String "Mic-Gain" -> set MIC gain to +0dB

I assume that "Mic-Gain toggles between 0dB and 30dB gain ???

Anyway, using the FOX Alsa mixer, I have master volume to max, mic volume
to max, no mute on anything, and tried the following:

# echo "Mic-impedance on" > /proc/asound/0/audiopci
# echo "Mic-impedance off" > /proc/asound/0/audiopci
# echo "Mic-impedance on" > /proc/asound/0/audiopci
# echo "Mic-Gain" > /proc/asound/0/ak4531
# echo "Mic-Gain" > /proc/asound/0/ak4531

None of these worked ... I could not hear any feedback from the mic to the
speaker, and recording with arecord just records silence.

I made a final test with all gain controls to max, and all record
sources turned on. This did record something - just noise, didn't seem
to be related to mic input. When I tried recording again (I was going to
vary he gains to see which one was responsible) it just recorded
silence.

CD and wav input still work fine.

Philip

