Skip to content

Commit

Permalink
ASoC: eukrea-tlv320: add support for our i.MX25 board
Browse files Browse the repository at this point in the history
* tdm slot has to be configured to get sound working on i.MX25

Signed-off-by: Eric Bénard <eric@eukrea.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Eric Bénard authored and Mark Brown committed Jun 18, 2010
1 parent 6651791 commit 4379320
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sound/soc/imx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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_IMX_SOC
select SND_SOC_TLV320AIC23
help
Expand Down
3 changes: 2 additions & 1 deletion sound/soc/imx/eukrea-tlv320.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 4379320

Please sign in to comment.