From: "Clemens Ladisch" <cladisch@fastmail.net>
To: Krzysztof Helt <krzysztof.h1@wp.pl>, alsa-devel@alsa-project.org
Subject: Re: [PATCH] Gallant SC-6000 driver
Date: Mon, 03 Sep 2007 09:29:52 +0200 [thread overview]
Message-ID: <1188804592.14058.1208580205@webmail.messagingengine.com> (raw)
In-Reply-To: <20070901090318.8b066a50.krzysztof.h1@wp.pl>
Krzysztof Helt wrote:
> This is port of the Gallant SC-6000 driver from the OSS aedsp16 driver.
Several minor nitpicks below. Otherwise, it looks fine.
> + tristate "Gallant SC-6000, Audio Excel DSP 16"
> + help
> + Say Y here to include support for Gallant SC-6000 card and
> + compatible soundcards: Audio Excel DSP 16 and Zoltrix AV302.
It may be a good idea to mention the chip name here (CompuMedia ASC-9308
if Google is to be believed).
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
The indentation of the last paragraph is inconsistent. :-)
> +#define COMMAND_88 0x88 /* */
This command is used. Could you document it at least a little, "unknown
setup magic" or something like that?
> +/*
> + * sc6000_irq_to_softcfg - Decode irq number into cfg code.
> + */
> +static inline unsigned char sc6000_irq_to_softcfg(int irq)
> +{
> + unsigned char val = 0;
> +
> + switch (irq) {
> + ...
> + default:
> + break;
I didn't find any code that checks that the user-supplied irq/port/dma
values are corret. What happens when the driver tries to configure the
board with invalid values?
> + if (strcmp("SC-6000", answer))
> + snd_printk(KERN_ERR PFX "Warning: non SC-6000 audio card!\n");
KERN_ERR for a warning?
> + snd_printk(KERN_DEBUG PFX "Initializing BASE[0x%lx] IRQ[%d] "
For debug output, please use snd_printd() so that the call isn't
compiled in in non-debug builds.
> + strcpy(card->driver, "Gallant SC-6000");
If the SC-6600 could be supported by this driver and if there is the
same number of PCM devices (so that alsa-lib can use the same
dmix configuration for both), the driver name should be something
generic like "SC-6x00" or something like that.
Regards,
Clemens
prev parent reply other threads:[~2007-09-03 7:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-01 7:03 [PATCH] Gallant SC-6000 driver Krzysztof Helt
2007-09-03 7:29 ` Clemens Ladisch [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=1188804592.14058.1208580205@webmail.messagingengine.com \
--to=cladisch@fastmail.net \
--cc=alsa-devel@alsa-project.org \
--cc=krzysztof.h1@wp.pl \
/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;
as well as URLs for NNTP newsgroup(s).