From: Takashi Iwai <tiwai@suse.de>
To: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Graeme Gregory <gg@opensource.wolfsonmicro.com>
Subject: Re: [PATCH1/5] ASoC S3C24xx machine drivers - s3c2443-AC97
Date: Thu, 10 May 2007 17:25:28 +0200 [thread overview]
Message-ID: <s5h3b24k8ev.wl%tiwai@suse.de> (raw)
In-Reply-To: <1178802013.10518.69.camel@a10072.wolfsonmicro.main>
At Thu, 10 May 2007 14:00:13 +0100,
Liam Girdwood wrote:
>
> Sorry for the lateness in the current merge window of this patch
> series.
Well, I guess the patches will be unlikely merge to 2.6.22 at this
moment... Anyway, I'll try to merge into ALSA tree.
> From: Graeme Gregory <gg@opensource.wolfsonmicro.com>
>
> This patch adds AC97 support to the Samsung S3C2443 CPU.
>
> Signed-off-by: Graeme Gregory <gg@opensource.wolfsonmicro.com>
> Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
> [2 s3c2443-ac97.patch <text/x-patch; UTF-8 (7bit)>]
> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
> +++ b/soc/s3c24xx/s3c2443-ac97.c Wed May 09 13:54:02 2007 +0100
> @@ -0,0 +1,405 @@
(snip)
> +static struct completion ac97_completion;
Use DECLARE_COMPLETION() rather than calling init_completion() at each
time. Since this is accessed in the irq handler, it must be
initialized properly before anything happens.
> + if (addr != reg)
> + printk(KERN_ERR "s3c24xx-ac97: req addr = %02x, rep addr = %02x\n", reg, addr);
Try to keep within 80 chars.
> +static void s3c2443_ac97_warm_reset(struct snd_ac97 *ac97)
> +{
> + u32 ac_glbctrl;
> +
> + ac_glbctrl = readl(s3c24xx_ac97.regs + S3C_AC97_GLBCTRL);
> + ac_glbctrl = S3C_AC97_GLBCTRL_WARMRESET;
> + writel(ac_glbctrl, s3c24xx_ac97.regs + S3C_AC97_GLBCTRL);
> + udelay(1000);
msleep() can be better here.
> + ac_glbctrl = 0;
> + writel(ac_glbctrl, s3c24xx_ac97.regs + S3C_AC97_GLBCTRL);
> + udelay(1000);
Ditto (also in s3c2443_ac97_cold_reset and s3c2443_ac97_probe()).
> +static irqreturn_t s3c2443_ac97_irq(int irq, void *dev_id)
> +{
> + int status;
> + u32 ac_glbctrl;
> +
> + status = readl(s3c24xx_ac97.regs + S3C_AC97_GLBSTAT) & codec_ready;
> +
> + if (status) {
> + ac_glbctrl = readl(s3c24xx_ac97.regs + S3C_AC97_GLBCTRL);
Keep the indentation correctly.
thanks,
Takashi
next prev parent reply other threads:[~2007-05-10 15:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-10 13:00 [PATCH1/5] ASoC S3C24xx machine drivers - s3c2443-AC97 Liam Girdwood
2007-05-10 15:25 ` Takashi Iwai [this message]
2007-05-11 9:39 ` Graeme Gregory
2007-05-11 15:57 ` Takashi Iwai
2007-05-14 9:27 ` Takashi Iwai
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=s5h3b24k8ev.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=gg@opensource.wolfsonmicro.com \
--cc=lg@opensource.wolfsonmicro.com \
/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.