Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
2e25a8ec
Commit
2e25a8ec
authored
Oct 12, 2009
by
Kevin Hilman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: davinci: SFFSDR board updates
parent
04ec7e84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
sound/soc/davinci/davinci-sffsdr.c
sound/soc/davinci/davinci-sffsdr.c
+12
-7
No files found.
sound/soc/davinci/davinci-sffsdr.c
View file @
2e25a8ec
...
...
@@ -29,7 +29,7 @@
#include <asm/plat-sffsdr/sffsdr-fpga.h>
#endif
#include <mach/
mcb
sp.h>
#include <mach/
a
sp.h>
#include <mach/edma.h>
#include "../codecs/pcm3008.h"
...
...
@@ -63,8 +63,13 @@ static int sffsdr_hw_params(struct snd_pcm_substream *substream,
}
#endif
/* set cpu DAI configuration */
ret
=
snd_soc_dai_set_fmt
(
cpu_dai
,
AUDIO_FORMAT
);
/* Set cpu DAI configuration:
* 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
)
return
ret
;
...
...
@@ -115,15 +120,15 @@ static struct snd_soc_device sffsdr_snd_devdata = {
static
struct
resource
sffsdr_snd_resources
[]
=
{
{
.
start
=
DAVINCI_
MCBSP
_BASE
,
.
end
=
DAVINCI_
MCBSP
_BASE
+
SZ_8K
-
1
,
.
start
=
DAVINCI_
ASP0
_BASE
,
.
end
=
DAVINCI_
ASP0
_BASE
+
SZ_8K
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
};
static
struct
evm_snd_platform_data
sffsdr_snd_data
=
{
.
tx_dma_ch
=
DAVINCI_DMA_
MCBSP
_TX
,
.
rx_dma_ch
=
DAVINCI_DMA_
MCBSP
_RX
,
.
tx_dma_ch
=
DAVINCI_DMA_
ASP0
_TX
,
.
rx_dma_ch
=
DAVINCI_DMA_
ASP0
_RX
,
};
static
struct
platform_device
*
sffsdr_snd_device
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment