Commit 2e25a8ec authored by Kevin Hilman's avatar Kevin Hilman

ASoC: davinci: SFFSDR board updates

parent 04ec7e84
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <asm/plat-sffsdr/sffsdr-fpga.h> #include <asm/plat-sffsdr/sffsdr-fpga.h>
#endif #endif
#include <mach/mcbsp.h> #include <mach/asp.h>
#include <mach/edma.h> #include <mach/edma.h>
#include "../codecs/pcm3008.h" #include "../codecs/pcm3008.h"
...@@ -63,8 +63,13 @@ static int sffsdr_hw_params(struct snd_pcm_substream *substream, ...@@ -63,8 +63,13 @@ static int sffsdr_hw_params(struct snd_pcm_substream *substream,
} }
#endif #endif
/* set cpu DAI configuration */ /* Set cpu DAI configuration:
ret = snd_soc_dai_set_fmt(cpu_dai, AUDIO_FORMAT); * CLKX and CLKR are the inputs for the Sample Rate Generator.
* FSX and FSR are outputs, driven by the sample Rate Generator. */
ret = snd_soc_dai_set_fmt(cpu_dai,
SND_SOC_DAIFMT_RIGHT_J |
SND_SOC_DAIFMT_CBM_CFS |
SND_SOC_DAIFMT_IB_NF);
if (ret < 0) if (ret < 0)
return ret; return ret;
...@@ -115,15 +120,15 @@ static struct snd_soc_device sffsdr_snd_devdata = { ...@@ -115,15 +120,15 @@ static struct snd_soc_device sffsdr_snd_devdata = {
static struct resource sffsdr_snd_resources[] = { static struct resource sffsdr_snd_resources[] = {
{ {
.start = DAVINCI_MCBSP_BASE, .start = DAVINCI_ASP0_BASE,
.end = DAVINCI_MCBSP_BASE + SZ_8K - 1, .end = DAVINCI_ASP0_BASE + SZ_8K - 1,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
}; };
static struct evm_snd_platform_data sffsdr_snd_data = { static struct evm_snd_platform_data sffsdr_snd_data = {
.tx_dma_ch = DAVINCI_DMA_MCBSP_TX, .tx_dma_ch = DAVINCI_DMA_ASP0_TX,
.rx_dma_ch = DAVINCI_DMA_MCBSP_RX, .rx_dma_ch = DAVINCI_DMA_ASP0_RX,
}; };
static struct platform_device *sffsdr_snd_device; static struct platform_device *sffsdr_snd_device;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment