[alsa-devel] [PATCH] eukrea-tlv320: add support for our i.MX25 board
Liam Girdwood
lrg at slimlogic.co.uk
Thu Jun 17 16:06:06 CEST 2010
On Thu, 2010-06-17 at 15:44 +0200, Eric Bénard wrote:
> * tdm slot has to be configured to get sound working on i.MX25
>
> Signed-off-by: Eric Bénard <eric at eukrea.com>
> ---
> sound/soc/imx/Kconfig | 2 +-
> sound/soc/imx/eukrea-tlv320.c | 3 ++-
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/sound/soc/imx/Kconfig b/sound/soc/imx/Kconfig
> index fd292f1..fd616ae 100644
> --- a/sound/soc/imx/Kconfig
> +++ b/sound/soc/imx/Kconfig
> @@ -31,7 +31,7 @@ config SND_SOC_PHYCORE_AC97
>
> config SND_SOC_EUKREA_TLV320
> bool "Eukrea TLV320"
> - depends on MACH_EUKREA_MBIMX27_BASEBOARD
> + depends on MACH_EUKREA_MBIMX27_BASEBOARD || MACH_EUKREA_MBIMXSD_BASEBOARD
> select SND_MXC_SOC_SSI
> select SND_SOC_TLV320AIC23
> help
> diff --git a/sound/soc/imx/eukrea-tlv320.c b/sound/soc/imx/eukrea-tlv320.c
> index 968380a..45f5e4b 100644
> --- a/sound/soc/imx/eukrea-tlv320.c
> +++ b/sound/soc/imx/eukrea-tlv320.c
> @@ -60,6 +60,7 @@ static int eukrea_tlv320_hw_params(struct snd_pcm_substream *substream,
> pr_err("%s: failed setting codec sysclk\n", __func__);
> return ret;
> }
> + snd_soc_dai_set_tdm_slot(cpu_dai, 0xffffffc, 0xffffffc, 2, 0);
>
> ret = snd_soc_dai_set_sysclk(cpu_dai, IMX_SSP_SYS_CLK, 0,
> SND_SOC_CLOCK_IN);
> @@ -100,7 +101,7 @@ static int __init eukrea_tlv320_init(void)
> {
> int ret;
>
> - if (!machine_is_eukrea_cpuimx27())
> + if (!machine_is_eukrea_cpuimx27() && !machine_is_eukrea_cpuimx25sd())
> /* return happy. We might run on a totally different machine */
> return 0;
>
Acked-by: Liam Girdwood <lrg at slimlogic.co.uk>
--
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk
More information about the Alsa-devel
mailing list