All of lore.kernel.org
 help / color / mirror / Atom feed
From: "freeman.liu" <freeman.liu@sun.com>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: Alsa-devel@lists.sourceforge.net
Subject: Re: A bug in intel8x0.c
Date: Sat, 17 Jan 2004 09:47:54 +0800	[thread overview]
Message-ID: <4008944A.8050209@sun.com> (raw)
In-Reply-To: <Pine.HPX.4.33n.0401161308300.25394-100000@studcom.urz.uni-halle.de>

Clemens Ladisch wrote:

>freeman.liu wrote:
>  
>
>>At the end of the function snd_intel8x0_codec_semaphore. If we
>>couldn't get the semaphore in 1 ms, we'll reset the register and
>>return EBUSY. But to reset the register, we should do a
>>iaputword ( chip, 0, 0 ), according to the datasheet, write any
>>value the this register will reset the register.
>>But in the code, what we did is iagetword ( chip, 0 ).
>>    
>>
>
>At that point, we don't want to reset the semaphore but to access a
>dummy AC'97 register so that the semaphore flag is cleared even if we
>actually got the semaphore (from the igetbyte in the printk).  (The
>iagetword/iaputword functions access AC'97 registers, not ICH
>registers.)
>
>  
>
Semaphore is clear when a writing operation is finished, and it' done 
automatically
by the hardware. I think you have misunstandard the code, the printk is 
just print
out the sema register and global-status register for debug.

Look at the comment after the iagetword. And read the ac97 specification.
Read the ac97 reset register will return the value. write any value to 
it will reset the
ac97 registers. When code run to this point there must be some error in 
the hardware,
so we need a reset.

>HTH
>Clemens
>
>
>  
>


-- 

	Best regards
	Freeman Liu




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

      reply	other threads:[~2004-01-17  1:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-17 15:53 alsa-lib resamplers broken James Courtier-Dutton
2003-12-17 15:54 ` Jaroslav Kysela
2003-12-17 16:15   ` James Courtier-Dutton
2003-12-17 16:25     ` Frank Barknecht
2003-12-17 19:33     ` Jaroslav Kysela
2004-01-16  3:31   ` A bug in intel8x0.c freeman.liu
2004-01-16 12:13     ` Clemens Ladisch
2004-01-17  1:47       ` freeman.liu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4008944A.8050209@sun.com \
    --to=freeman.liu@sun.com \
    --cc=Alsa-devel@lists.sourceforge.net \
    --cc=clemens@ladisch.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.