Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Clemens Ladisch" <cladisch@fastmail.net>
To: Krzysztof Helt <krzysztof.h1@gmail.com>
Cc: ALSA devel <alsa-devel@alsa-project.org>
Subject: Re: [PATCH] opti931: additional check for OPL3 device
Date: Mon, 17 Sep 2007 10:14:53 +0200	[thread overview]
Message-ID: <1190016893.19336.1210994773@webmail.messagingengine.com> (raw)
In-Reply-To: <20070914184705.9ba48d80.krzysztof.h1@gmail.com>

Krzysztof Helt wrote:
> "Clemens Ladisch" <cladisch@fastmail.net> wrote:
> > Krzysztof Helt wrote:
> > > This patch adds additional check for OPL3 device. I found that PNP
> > > region returned by the card is 0x380 - 0x38f but the OPL3 device is
> > > located at 0x388 (standard FM device address).
> > 
> > On cards with an OPL4, it would use the entire range, where that last
> > eight bytes are the OPL3-compatible registers.
> 
> Ok. I haven't touched the size of the range or the range itself. I just added
> a fallback to check range +8 (which is 0x388) after failure to find the OPL3
> at the 0x380.
> 
> > My card doesn't have PnP, but I guess the OPL4 detection wouldn't work
> > on 92x either for the same reason.
> 
> Should the OPL4 detection has the same fallback or just all Opti cards
> should search the FM chip at the range + 8 address?

It appears a fallback shoudn't be needed because the chip always returns
a range suitable for an OPL4.

Since an OPL3 range is never larger than 8 bytes, and OPL4 needs 16
bytes, we could add 8 to get the FM address _if_ the range is at least
16 bytes; thus we are safe even if a chip publishes an OPL3-only range.


Regards,
Clemens

  reply	other threads:[~2007-09-17  8:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-14 14:35 [PATCH] opti931: additional check for OPL3 device Krzysztof Helt
2007-09-14 14:52 ` Clemens Ladisch
2007-09-14 16:47   ` Krzysztof Helt
2007-09-17  8:14     ` Clemens Ladisch [this message]
2007-09-17 10:10       ` Rene Herman
2007-09-17 10:39         ` Clemens Ladisch
2007-09-17 12:26           ` Rene Herman
2007-09-17 12:26           ` Krzysztof Helt
2007-09-17 12:40             ` Rene Herman
2007-09-17 13:57               ` Rene Herman
2007-09-17 14:45               ` Krzysztof Helt
2007-09-17 15:09                 ` Takashi Iwai
2007-09-17 23:04                 ` Rene Herman
2007-09-14 16:33 ` Rene Herman

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=1190016893.19336.1210994773@webmail.messagingengine.com \
    --to=cladisch@fastmail.net \
    --cc=alsa-devel@alsa-project.org \
    --cc=krzysztof.h1@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox