Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
91fff60b
Commit
91fff60b
authored
Jul 16, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/davinci' into asoc-davinci
parents
0929878f
182bef86
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
sound/soc/davinci/Kconfig
sound/soc/davinci/Kconfig
+1
-0
sound/soc/davinci/davinci-mcasp.c
sound/soc/davinci/davinci-mcasp.c
+12
-0
No files found.
sound/soc/davinci/Kconfig
View file @
91fff60b
...
@@ -6,6 +6,7 @@ config SND_DAVINCI_SOC_I2S
...
@@ -6,6 +6,7 @@ config SND_DAVINCI_SOC_I2S
tristate
tristate
config SND_DAVINCI_SOC_MCASP
config SND_DAVINCI_SOC_MCASP
depends on SND_DAVINCI_SOC || SND_OMAP_SOC
tristate
tristate
config SND_DAVINCI_SOC_VCIF
config SND_DAVINCI_SOC_VCIF
...
...
sound/soc/davinci/davinci-mcasp.c
View file @
91fff60b
...
@@ -769,6 +769,10 @@ static int davinci_mcasp_hw_params(struct snd_pcm_substream *substream,
...
@@ -769,6 +769,10 @@ static int davinci_mcasp_hw_params(struct snd_pcm_substream *substream,
case
SNDRV_PCM_FORMAT_U24_LE
:
case
SNDRV_PCM_FORMAT_U24_LE
:
case
SNDRV_PCM_FORMAT_S24_LE
:
case
SNDRV_PCM_FORMAT_S24_LE
:
dma_params
->
data_type
=
4
;
word_length
=
24
;
break
;
case
SNDRV_PCM_FORMAT_U32_LE
:
case
SNDRV_PCM_FORMAT_U32_LE
:
case
SNDRV_PCM_FORMAT_S32_LE
:
case
SNDRV_PCM_FORMAT_S32_LE
:
dma_params
->
data_type
=
4
;
dma_params
->
data_type
=
4
;
...
@@ -1272,14 +1276,22 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
...
@@ -1272,14 +1276,22 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
goto
err
;
goto
err
;
switch
(
mcasp
->
version
)
{
switch
(
mcasp
->
version
)
{
#if IS_BUILTIN(CONFIG_SND_DAVINCI_SOC) || \
(IS_MODULE(CONFIG_SND_DAVINCI_SOC_MCASP) && \
IS_MODULE(CONFIG_SND_DAVINCI_SOC))
case
MCASP_VERSION_1
:
case
MCASP_VERSION_1
:
case
MCASP_VERSION_2
:
case
MCASP_VERSION_2
:
case
MCASP_VERSION_3
:
case
MCASP_VERSION_3
:
ret
=
davinci_soc_platform_register
(
&
pdev
->
dev
);
ret
=
davinci_soc_platform_register
(
&
pdev
->
dev
);
break
;
break
;
#endif
#if IS_BUILTIN(CONFIG_SND_OMAP_SOC) || \
(IS_MODULE(CONFIG_SND_DAVINCI_SOC_MCASP) && \
IS_MODULE(CONFIG_SND_OMAP_SOC))
case
MCASP_VERSION_4
:
case
MCASP_VERSION_4
:
ret
=
omap_pcm_platform_register
(
&
pdev
->
dev
);
ret
=
omap_pcm_platform_register
(
&
pdev
->
dev
);
break
;
break
;
#endif
default:
default:
dev_err
(
&
pdev
->
dev
,
"Invalid McASP version: %d
\n
"
,
dev_err
(
&
pdev
->
dev
,
"Invalid McASP version: %d
\n
"
,
mcasp
->
version
);
mcasp
->
version
);
...
...
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