From alsa-devel-owner@alsa.jcu.cz  Mon Jul 13 09:45:25 1998
Received: from btmplq.god.bel.alcatel.be (gatekeeper.alcatel.be [138.203.244.2])
	by marvin.jcu.cz (8.8.8/8.8.8) with ESMTP id JAA17097
	for <alsa-devel@alsa.jcu.cz>; Mon, 13 Jul 1998 09:43:28 +0200
Received: from btmpjg.god.bel.alcatel.be (root@btmpjg.god.bel.alcatel.be [138.203.144.75])
	by btmplq.god.bel.alcatel.be (8.9.0/8.9.0) with SMTP id JAA13174
	for <alsa-devel@alsa.jcu.cz>; Mon, 13 Jul 1998 09:41:30 +0200 (MET DST)
Received: from nlsun1.ats.nld.alcatel.nl (root@nlsun1.ats.nld.alcatel.nl [138.203.176.10]) by btmpjg.god.bel.alcatel.be (8.6.12/8.6.12) with ESMTP id JAA17108 for <alsa-devel@alsa.jcu.cz>; Mon, 13 Jul 1998 09:50:42 +0200
Received: from ats.nld.alcatel.nl (nlsw17 [138.203.176.17]) by nlsun1.ats.nld.alcatel.nl (8.6.5/8.6.5) with ESMTP id JAA03270; Mon, 13 Jul 1998 09:43:09 +0200
Message-ID: <35A9BA8B.D96BC9CA@ats.nld.alcatel.nl>
Date: Mon, 13 Jul 1998 09:43:07 +0200
From: joris jansen <jansen@ats.nld.alcatel.nl>
MIME-Version: 1.0
To: alsa-devel@alsa.jcu.cz
Subject: Bug in cs4231.c ??
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

Jaroslav,

I'm trying to 'port' the Mozart code to OPTi92x code,
therefore I started with code-reading. Because my OPTi 924
card has an AD1845 codec, I'm checking the AD1848 and the CS4231
code as well. These two chips are quite compatible, though the AD1848
has some features the CS4231 lacks. (Like supporting every sample rate
form 4 kHz up to 50kHz) of course the CS4231 has some features the
AD1848 lacks (like dithering on 8bit samples).
While reading your code I noticed in the function snd_cs4231_timer_start
you write to CS4231_TIMER_LOW before you write to CS4231_TIMER_HIGH.
According to the CS4231A documentation this should be the other way
around, because a write to CS4231_TIMER_LOW will transfer both
CS4231_TIMER_LOW and CS4231_TIMER_HIGH to the internal counter.
I don't know if it's that important, I guess this only 'damages'
the first loop.

Besides this, I also have 2 questions right now:
- what the f**k is a jiffie ? (I see jiffies appear in the code.)
- what do the functions mb() and schedule() do ?


	Joris

-- 
+----------------------------------+-----------------------------------+
| Joris Jansen                     | Alcatel Telecom Nederland         |
| jansen@ats.nld.alcatel.nl        | Postbus 3292                      |
| phone +31 (70) 307 9136          | 2280 GG  Rijswijk (ZH)            |
| fax   +31 (70) 307 9191          | The Netherlands                   |
+----------------------------------+-----------------------------------+
| No question is too silly to ask, though some are too silly to answer |
+----------------------------------------------------------------------+

