public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Cc: Takashi Iwai <tiwai@suse.de>,
	alsa-devel@alsa-project.org, lethal@linux-sh.org,
	Magnus Damm <magnus.damm@gmail.com>,
	linux-sh@vger.kernel.org
Subject: Re: [PATCH 3/3] Add FSI-AK464x sound support for ms7724se
Date: Wed, 19 Aug 2009 12:00:58 +0000	[thread overview]
Message-ID: <20090819120058.GB20227@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <uiqgk59lj.wl%morimoto.kuninori@renesas.com>

On Wed, Aug 19, 2009 at 08:25:28PM +0900, Kuninori Morimoto wrote:

>  arch/sh/boards/Kconfig                   |    9 +++
>  arch/sh/boards/mach-se/7724/Makefile     |    3 +-
>  arch/sh/boards/mach-se/7724/fsi-ak464x.c |   90 ++++++++++++++++++++++++++++++

the machine driver itself should be under sound/soc/sh.

> +static int machine_init(struct snd_soc_codec *codec)
> +{
> +	snd_soc_dapm_sync(codec);
> +	return 0;
> +}

This should just be removed - the core will do this for you.

> +	/* enable FSI */
> +	gpio_request(GPIO_FN_FSIMCKB,    NULL);
> +	gpio_request(GPIO_FN_FSIMCKA,    NULL);
> +	gpio_request(GPIO_FN_FSIOASD,    NULL);
> +	gpio_request(GPIO_FN_FSIIABCK,   NULL);
> +	gpio_request(GPIO_FN_FSIIALRCK,  NULL);
> +	gpio_request(GPIO_FN_FSIOABCK,   NULL);
> +	gpio_request(GPIO_FN_FSIOALRCK,  NULL);
> +	gpio_request(GPIO_FN_CLKAUDIOAO, NULL);
> +	gpio_request(GPIO_FN_FSIIBSD,    NULL);
> +	gpio_request(GPIO_FN_FSIOBSD,    NULL);
> +	gpio_request(GPIO_FN_FSIIBBCK,   NULL);
> +	gpio_request(GPIO_FN_FSIIBLRCK,  NULL);
> +	gpio_request(GPIO_FN_FSIOBBCK,   NULL);
> +	gpio_request(GPIO_FN_FSIOBLRCK,  NULL);
> +	gpio_request(GPIO_FN_CLKAUDIOBO, NULL);
> +	gpio_request(GPIO_FN_FSIIASD,    NULL);

Is this something that the FSI driver should do for itself?  It looks
like there's no pin options here, just fixed functions for FSI A or B so
replicating per-board seems redundant.  On the other hand, if it's
idiomatic for SH better keep it this way.

  reply	other threads:[~2009-08-19 12:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-19 11:25 [PATCH 3/3] Add FSI-AK464x sound support for ms7724se Kuninori Morimoto
2009-08-19 12:00 ` Mark Brown [this message]
2009-08-19 13:46   ` Magnus Damm
2009-08-19 14:02     ` Mark Brown
2009-08-19 14:18       ` Magnus Damm
2009-08-19 14:45         ` Mark Brown
2009-08-20  7:46           ` [alsa-devel] " Kuninori Morimoto
2009-08-20  8:52             ` [alsa-devel] [PATCH 3/3] Add FSI-AK464x sound support for Mark Brown
2009-08-20 11:48               ` [alsa-devel] [PATCH 3/3] Add FSI-AK464x sound support for ms7724se Kuninori Morimoto
2009-08-20 11:55                 ` [alsa-devel] [PATCH 3/3] Add FSI-AK464x sound support for Mark Brown

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=20090819120058.GB20227@rakim.wolfsonmicro.main \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=lethal@linux-sh.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=morimoto.kuninori@renesas.com \
    --cc=tiwai@suse.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox