From: Ondrej Zary <linux@rainbow-software.org>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org
Subject: PnP support for the new ISA radio framework?
Date: Sat, 18 Feb 2012 17:33:32 +0100 [thread overview]
Message-ID: <201202181733.34599.linux@rainbow-software.org> (raw)
Hello,
there are some ISA radio cards with PnP support (e.g. SF16-FMI) but the new
ISA radio framework has no PnP support.
I got AOpen FX-3D/Pro Radio card which is AD1816 with Gemtek radio - and with
PnP. But radio-gemtek fails to load because the radio I/O port is not enabled
(and the driver does not support PnP).
Tried to add PnP support to radio-isa but failed. Splitted non-isa_driver
related parts from radio_isa_probe() to a separate function and tried to
create radio_isa_pnp_probe() only to realize that I'm not able to access
struct radio_isa_driver.
radio_isa_probe() relies on the fact that "driver" (struct isa_driver) is the
first element of struct radio_isa_driver, so these two structs have the same
pointer:
HW radio driver registers the driver by calling:
isa_register_driver(&gemtek_driver.driver, GEMTEK_MAX);
radio_isa_probe() in radio-isa.c does:
struct radio_isa_driver *drv = pdev->platform_data;
So adding struct pnp_driver to struct radio_isa_driver does not seem to be
possible.
--
Ondrej Zary
next reply other threads:[~2012-02-18 16:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-18 16:33 Ondrej Zary [this message]
2012-02-22 20:33 ` PnP support for the new ISA radio framework? Ondrej Zary
2012-02-24 9:35 ` Hans Verkuil
2012-02-28 21:08 ` [RFC PATCH] PnP support for the new ISA radio framework Ondrej Zary
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=201202181733.34599.linux@rainbow-software.org \
--to=linux@rainbow-software.org \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
/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.