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
Kirill Smelkov
linux
Commits
6caa9892
Commit
6caa9892
authored
Nov 03, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/fsl' into asoc-next
parents
91188554
3d8f7318
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
sound/soc/fsl/eukrea-tlv320.c
sound/soc/fsl/eukrea-tlv320.c
+10
-5
sound/soc/fsl/fsl_spdif.c
sound/soc/fsl/fsl_spdif.c
+2
-2
No files found.
sound/soc/fsl/eukrea-tlv320.c
View file @
6caa9892
...
...
@@ -42,7 +42,8 @@ static int eukrea_tlv320_hw_params(struct snd_pcm_substream *substream,
SND_SOC_DAIFMT_NB_NF
|
SND_SOC_DAIFMT_CBM_CFM
);
if
(
ret
)
{
pr_err
(
"%s: failed set cpu dai format
\n
"
,
__func__
);
dev_err
(
cpu_dai
->
dev
,
"Failed to set the cpu dai format.
\n
"
);
return
ret
;
}
...
...
@@ -50,14 +51,16 @@ static int eukrea_tlv320_hw_params(struct snd_pcm_substream *substream,
SND_SOC_DAIFMT_NB_NF
|
SND_SOC_DAIFMT_CBM_CFM
);
if
(
ret
)
{
pr_err
(
"%s: failed set codec dai format
\n
"
,
__func__
);
dev_err
(
cpu_dai
->
dev
,
"Failed to set the codec format.
\n
"
);
return
ret
;
}
ret
=
snd_soc_dai_set_sysclk
(
codec_dai
,
0
,
CODEC_CLOCK
,
SND_SOC_CLOCK_OUT
);
if
(
ret
)
{
pr_err
(
"%s: failed setting codec sysclk
\n
"
,
__func__
);
dev_err
(
cpu_dai
->
dev
,
"Failed to set the codec sysclk.
\n
"
);
return
ret
;
}
snd_soc_dai_set_tdm_slot
(
cpu_dai
,
0xffffffc
,
0xffffffc
,
2
,
0
);
...
...
@@ -65,7 +68,8 @@ static int eukrea_tlv320_hw_params(struct snd_pcm_substream *substream,
ret
=
snd_soc_dai_set_sysclk
(
cpu_dai
,
IMX_SSP_SYS_CLK
,
0
,
SND_SOC_CLOCK_IN
);
if
(
ret
)
{
pr_err
(
"can't set CPU system clock IMX_SSP_SYS_CLK
\n
"
);
dev_err
(
cpu_dai
->
dev
,
"Can't set the IMX_SSP_SYS_CLK CPU system clock.
\n
"
);
return
ret
;
}
...
...
@@ -155,7 +159,8 @@ static struct platform_driver eukrea_tlv320_driver = {
.
owner
=
THIS_MODULE
,
},
.
probe
=
eukrea_tlv320_probe
,
.
remove
=
eukrea_tlv320_remove
,};
.
remove
=
eukrea_tlv320_remove
,
};
module_platform_driver
(
eukrea_tlv320_driver
);
...
...
sound/soc/fsl/fsl_spdif.c
View file @
6caa9892
...
...
@@ -1107,9 +1107,9 @@ static int fsl_spdif_probe(struct platform_device *pdev)
/* Get the addresses and IRQ */
res
=
platform_get_resource
(
pdev
,
IORESOURCE_MEM
,
0
);
if
(
IS_ERR
(
res
)
)
{
if
(
!
res
)
{
dev_err
(
&
pdev
->
dev
,
"could not determine device resources
\n
"
);
return
PTR_ERR
(
res
)
;
return
-
ENXIO
;
}
regs
=
devm_ioremap_resource
(
&
pdev
->
dev
,
res
);
...
...
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