From: Rene Herman <rene.herman@keyaccess.nl>
To: Krzysztof Helt <krzysztof.h1@poczta.fm>
Cc: Alsa-devel <alsa-devel@alsa-project.org>
Subject: Re: [PATCH] opl3sa2: drop snd_card pointer from the snd_opl3sa2 structure
Date: Sun, 17 Aug 2008 20:26:10 +0200 [thread overview]
Message-ID: <48A86D42.2090901@keyaccess.nl> (raw)
In-Reply-To: <20080817200114.691a99d4.krzysztof.h1@poczta.fm>
On 17-08-08 20:01, Krzysztof Helt wrote:
> From: Krzysztof Helt <krzysztof.h1@wp.pl>
>
> Remove card pointer from the snd_opl3sa2
> structure and break circular reference
> snd_card->snd_opl3sa2->snd_card.
>
> Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Acked-by: Rene Herman <rene.herman@gmail.com>
Note, you had me worried for a bit as you reminded me I still have a
patch pending to pass the card->dev to snd_pcm_preallocate_pages() in
order to stop using the magic "NULL dev means ISA" behaviour in the DMA
layer (meaning we need a chip->card) but this "chip" isn't in fact "a
chip" so fine here.
> @@ -298,12 +296,14 @@ static int __devinit snd_opl3sa2_detect(
> static irqreturn_t snd_opl3sa2_interrupt(int irq, void *dev_id)
> {
> unsigned short status;
> - struct snd_opl3sa2 *chip = dev_id;
> + struct snd_card *card = dev_id;
> + struct snd_opl3sa2 *chip;
> int handled = 0;
>
> - if (chip == NULL || chip->card == NULL)
> + if (card == NULL || card->private_data == NULL)
micro-comment: card->private_data can't actually be NULL on initialized
card (it's card + n) but yes, I guess we're pretending we don't know that...
Rene.
next prev parent reply other threads:[~2008-08-17 18:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-17 18:01 [PATCH] opl3sa2: drop snd_card pointer from the snd_opl3sa2 structure Krzysztof Helt
2008-08-17 18:26 ` Rene Herman [this message]
2008-08-17 20:39 ` Krzysztof Helt
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=48A86D42.2090901@keyaccess.nl \
--to=rene.herman@keyaccess.nl \
--cc=alsa-devel@alsa-project.org \
--cc=krzysztof.h1@poczta.fm \
/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.