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
f9f4b1c7
Commit
f9f4b1c7
authored
Apr 26, 2011
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-2.6.39' into for-2.6.40
parents
1f5e2a31
db92f437
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-mcasp.c
sound/soc/davinci/davinci-mcasp.c
+12
-7
No files found.
sound/soc/davinci/davinci-mcasp.c
View file @
f9f4b1c7
...
@@ -434,17 +434,21 @@ static int davinci_mcasp_set_dai_fmt(struct snd_soc_dai *cpu_dai,
...
@@ -434,17 +434,21 @@ static int davinci_mcasp_set_dai_fmt(struct snd_soc_dai *cpu_dai,
mcasp_set_bits
(
base
+
DAVINCI_MCASP_ACLKRCTL_REG
,
ACLKRE
);
mcasp_set_bits
(
base
+
DAVINCI_MCASP_ACLKRCTL_REG
,
ACLKRE
);
mcasp_set_bits
(
base
+
DAVINCI_MCASP_RXFMCTL_REG
,
AFSRE
);
mcasp_set_bits
(
base
+
DAVINCI_MCASP_RXFMCTL_REG
,
AFSRE
);
mcasp_set_bits
(
base
+
DAVINCI_MCASP_PDIR_REG
,
(
0x7
<<
26
));
mcasp_set_bits
(
base
+
DAVINCI_MCASP_PDIR_REG
,
ACLKX
|
AHCLKX
|
AFSX
);
break
;
break
;
case
SND_SOC_DAIFMT_CBM_CFS
:
case
SND_SOC_DAIFMT_CBM_CFS
:
/* codec is clock master and frame slave */
/* codec is clock master and frame slave */
mcasp_
set
_bits
(
base
+
DAVINCI_MCASP_ACLKXCTL_REG
,
ACLKXE
);
mcasp_
clr
_bits
(
base
+
DAVINCI_MCASP_ACLKXCTL_REG
,
ACLKXE
);
mcasp_set_bits
(
base
+
DAVINCI_MCASP_TXFMCTL_REG
,
AFSXE
);
mcasp_set_bits
(
base
+
DAVINCI_MCASP_TXFMCTL_REG
,
AFSXE
);
mcasp_
set
_bits
(
base
+
DAVINCI_MCASP_ACLKRCTL_REG
,
ACLKRE
);
mcasp_
clr
_bits
(
base
+
DAVINCI_MCASP_ACLKRCTL_REG
,
ACLKRE
);
mcasp_set_bits
(
base
+
DAVINCI_MCASP_RXFMCTL_REG
,
AFSRE
);
mcasp_set_bits
(
base
+
DAVINCI_MCASP_RXFMCTL_REG
,
AFSRE
);
mcasp_set_bits
(
base
+
DAVINCI_MCASP_PDIR_REG
,
(
0x2d
<<
26
));
mcasp_clr_bits
(
base
+
DAVINCI_MCASP_PDIR_REG
,
ACLKX
|
ACLKR
);
mcasp_set_bits
(
base
+
DAVINCI_MCASP_PDIR_REG
,
AFSX
|
AFSR
);
break
;
break
;
case
SND_SOC_DAIFMT_CBM_CFM
:
case
SND_SOC_DAIFMT_CBM_CFM
:
/* codec is clock and frame master */
/* codec is clock and frame master */
...
@@ -454,7 +458,8 @@ static int davinci_mcasp_set_dai_fmt(struct snd_soc_dai *cpu_dai,
...
@@ -454,7 +458,8 @@ static int davinci_mcasp_set_dai_fmt(struct snd_soc_dai *cpu_dai,
mcasp_clr_bits
(
base
+
DAVINCI_MCASP_ACLKRCTL_REG
,
ACLKRE
);
mcasp_clr_bits
(
base
+
DAVINCI_MCASP_ACLKRCTL_REG
,
ACLKRE
);
mcasp_clr_bits
(
base
+
DAVINCI_MCASP_RXFMCTL_REG
,
AFSRE
);
mcasp_clr_bits
(
base
+
DAVINCI_MCASP_RXFMCTL_REG
,
AFSRE
);
mcasp_clr_bits
(
base
+
DAVINCI_MCASP_PDIR_REG
,
(
0x3f
<<
26
));
mcasp_clr_bits
(
base
+
DAVINCI_MCASP_PDIR_REG
,
ACLKX
|
AHCLKX
|
AFSX
|
ACLKR
|
AHCLKR
|
AFSR
);
break
;
break
;
default:
default:
...
@@ -644,7 +649,7 @@ static void davinci_hw_param(struct davinci_audio_dev *dev, int stream)
...
@@ -644,7 +649,7 @@ static void davinci_hw_param(struct davinci_audio_dev *dev, int stream)
mcasp_set_reg
(
dev
->
base
+
DAVINCI_MCASP_TXTDM_REG
,
mask
);
mcasp_set_reg
(
dev
->
base
+
DAVINCI_MCASP_TXTDM_REG
,
mask
);
mcasp_set_bits
(
dev
->
base
+
DAVINCI_MCASP_TXFMT_REG
,
TXORD
);
mcasp_set_bits
(
dev
->
base
+
DAVINCI_MCASP_TXFMT_REG
,
TXORD
);
if
((
dev
->
tdm_slots
>=
2
)
||
(
dev
->
tdm_slots
<=
32
))
if
((
dev
->
tdm_slots
>=
2
)
&&
(
dev
->
tdm_slots
<=
32
))
mcasp_mod_bits
(
dev
->
base
+
DAVINCI_MCASP_TXFMCTL_REG
,
mcasp_mod_bits
(
dev
->
base
+
DAVINCI_MCASP_TXFMCTL_REG
,
FSXMOD
(
dev
->
tdm_slots
),
FSXMOD
(
0x1FF
));
FSXMOD
(
dev
->
tdm_slots
),
FSXMOD
(
0x1FF
));
else
else
...
@@ -660,7 +665,7 @@ static void davinci_hw_param(struct davinci_audio_dev *dev, int stream)
...
@@ -660,7 +665,7 @@ static void davinci_hw_param(struct davinci_audio_dev *dev, int stream)
AHCLKRE
);
AHCLKRE
);
mcasp_set_reg
(
dev
->
base
+
DAVINCI_MCASP_RXTDM_REG
,
mask
);
mcasp_set_reg
(
dev
->
base
+
DAVINCI_MCASP_RXTDM_REG
,
mask
);
if
((
dev
->
tdm_slots
>=
2
)
||
(
dev
->
tdm_slots
<=
32
))
if
((
dev
->
tdm_slots
>=
2
)
&&
(
dev
->
tdm_slots
<=
32
))
mcasp_mod_bits
(
dev
->
base
+
DAVINCI_MCASP_RXFMCTL_REG
,
mcasp_mod_bits
(
dev
->
base
+
DAVINCI_MCASP_RXFMCTL_REG
,
FSRMOD
(
dev
->
tdm_slots
),
FSRMOD
(
0x1FF
));
FSRMOD
(
dev
->
tdm_slots
),
FSRMOD
(
0x1FF
));
else
else
...
...
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