[alsa-devel] [PATCH 3/3] Add FSI-AK464x sound support for ms7724se
Mark Brown
broonie at opensource.wolfsonmicro.com
Wed Aug 19 14:00:58 CEST 2009
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.
More information about the Alsa-devel
mailing list