From: broonie@opensource.wolfsonmicro.com (Mark Brown)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/4] ASoC: add ep93xx AC97 audio driver
Date: Mon, 11 Oct 2010 10:47:18 +0100 [thread overview]
Message-ID: <20101011094717.GA9231@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <b0202066df3bb9732fbecca627d0149165905a95.1286707213.git.mika.westerberg@iki.fi>
On Sun, Oct 10, 2010 at 01:54:10PM +0300, Mika Westerberg wrote:
> + mutex_lock(&info->lock);
> +
> + INIT_COMPLETION(info->done);
Do you really need to do this on every single register I/O?
> + ep93xx_ac97_write_reg(info, AC97S1DATA, reg);
> + ep93xx_ac97_write_reg(info, AC97IM, AC97_SLOT2RXVALID);
> + if (!wait_for_completion_timeout(&info->done, AC97_TIMEOUT)) {
> + dev_warn(info->dev, "timeout reading register %x\n", reg);
> + mutex_unlock(&info->lock);
> + return -1;
Return a real error code.
> +module_init(ep93xx_ac97_init);
> +module_exit(ep93xx_ac97_exit);
Put these next to the functions they're referencing.
> +#ifndef _EP93XX_SND_SOC_AC97_H
> +#define _EP93XX_SND_SOC_AC97_H
> +
> +extern struct snd_soc_dai ep93xx_ac97_dai;
> +
> +#endif /* _EP93XX_SND_SOC_AC97_H */
This is not needed with current ASoC. Are you sure you've tested with
current code? You should always submit against the development version
of the subsystem you're working with for any new drivers - for ASoC
Jassi already pointed you at the tree, and you can in the general case
also look at -next.
next prev parent reply other threads:[~2010-10-11 9:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-10 10:54 [PATCH 0/4] ASoC AC97 audio support for ep93xx Mika Westerberg
2010-10-10 10:54 ` [PATCH 1/4] ARM: ep93xx: DMA: fix channel_disable Mika Westerberg
2010-10-10 19:34 ` Ryan Mallon
2010-10-10 10:54 ` [PATCH 2/4] ASoC: add ep93xx AC97 audio driver Mika Westerberg
2010-10-11 9:47 ` Mark Brown [this message]
2010-10-11 10:07 ` Mika Westerberg
2010-10-11 10:43 ` Mark Brown
2010-10-11 12:17 ` Mika Westerberg
2010-10-10 10:54 ` [PATCH 3/4] ARM: ep93xx: add AC97 platform support Mika Westerberg
2010-10-10 19:39 ` Ryan Mallon
2010-10-11 7:47 ` Mika Westerberg
2010-10-10 10:54 ` [PATCH 4/4] ASoC: ep93xx: add Simplemachines Sim.One AC97 audio support Mika Westerberg
2010-10-11 0:22 ` [alsa-devel] " Jassi Brar
2010-10-11 7:38 ` Mika Westerberg
2010-10-11 7:46 ` Jassi Brar
2010-10-10 17:02 ` [PATCH 0/4] ASoC AC97 audio support for ep93xx Mika Westerberg
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=20101011094717.GA9231@rakim.wolfsonmicro.main \
--to=broonie@opensource.wolfsonmicro.com \
--cc=linux-arm-kernel@lists.infradead.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 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).