From: Takashi Iwai <tiwai@suse.de>
To: Lauri Kasanen <cand@gmx.com>
Cc: linux-mips@vger.kernel.org, tsbogend@alpha.franken.de, perex@perex.cz
Subject: Re: [PATCH 5/6 v5] sound: Add n64 driver
Date: Wed, 13 Jan 2021 15:11:31 +0100 [thread overview]
Message-ID: <s5hbldtncz0.wl-tiwai@suse.de> (raw)
In-Reply-To: <20210113154741.e5f93ed383a77b795d3d26a3@gmx.com>
On Wed, 13 Jan 2021 14:47:41 +0100,
Lauri Kasanen wrote:
>
> This adds support for the Nintendo 64 console's sound.
>
> Signed-off-by: Lauri Kasanen <cand@gmx.com>
It's almost done, but...
> + strcpy(card->driver, "N64 Audio");
> + strcpy(card->shortname, "N64 Audio");
> + strcpy(card->longname, "N64 Audio");
> +
> + err = snd_card_register(card);
> + if (err < 0)
> + goto fail_ioremaps;
> +
> + res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
> + if (request_irq(res->start, n64audio_isr,
> + IRQF_SHARED, "N64 Audio", priv)) {
Requesting an IRQ should be done before the card registration.
For this particular driver, it's likely OK because it's only for
built-in, but in general snd_card_register() implies that the device
is ready for access from user-space, hence all resources should have
been ready before that point.
thanks,
Takashi
prev parent reply other threads:[~2021-01-13 14:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-13 13:47 [PATCH 5/6 v5] sound: Add n64 driver Lauri Kasanen
2021-01-13 14:11 ` Takashi Iwai [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=s5hbldtncz0.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=cand@gmx.com \
--cc=linux-mips@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tsbogend@alpha.franken.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.