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
72322e63
Commit
72322e63
authored
May 28, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/davinci' into asoc-linus
parents
7ae34336
79671892
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
sound/soc/davinci/davinci-mcasp.c
sound/soc/davinci/davinci-mcasp.c
+4
-3
No files found.
sound/soc/davinci/davinci-mcasp.c
View file @
72322e63
...
...
@@ -631,7 +631,8 @@ static int davinci_config_channel_size(struct davinci_audio_dev *dev,
int
word_length
)
{
u32
fmt
;
u32
rotate
=
(
word_length
/
4
)
&
0x7
;
u32
tx_rotate
=
(
word_length
/
4
)
&
0x7
;
u32
rx_rotate
=
(
32
-
word_length
)
/
4
;
u32
mask
=
(
1ULL
<<
word_length
)
-
1
;
/*
...
...
@@ -655,9 +656,9 @@ static int davinci_config_channel_size(struct davinci_audio_dev *dev,
mcasp_mod_bits
(
dev
->
base
+
DAVINCI_MCASP_TXFMT_REG
,
TXSSZ
(
fmt
),
TXSSZ
(
0x0F
));
mcasp_mod_bits
(
dev
->
base
+
DAVINCI_MCASP_TXFMT_REG
,
TXROT
(
rotate
),
TXROT
(
7
));
TXROT
(
tx_
rotate
),
TXROT
(
7
));
mcasp_mod_bits
(
dev
->
base
+
DAVINCI_MCASP_RXFMT_REG
,
RXROT
(
rotate
),
RXROT
(
7
));
RXROT
(
r
x_r
otate
),
RXROT
(
7
));
mcasp_set_reg
(
dev
->
base
+
DAVINCI_MCASP_RXMASK_REG
,
mask
);
}
...
...
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