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
4d53952a
Commit
4d53952a
authored
Jul 13, 2010
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-2.6.35' into for-2.6.36
parents
66b47fdb
63772783
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
16 deletions
+11
-16
sound/soc/sh/fsi.c
sound/soc/sh/fsi.c
+11
-16
No files found.
sound/soc/sh/fsi.c
View file @
4d53952a
...
...
@@ -674,20 +674,15 @@ static int fsi_dai_startup(struct snd_pcm_substream *substream,
/* clock inversion (CKG2) */
data
=
0
;
switch
(
SH_FSI_INVERSION_MASK
&
flags
)
{
case
SH_FSI_LRM_INV
:
data
=
1
<<
12
;
break
;
case
SH_FSI_BRM_INV
:
data
=
1
<<
8
;
break
;
case
SH_FSI_LRS_INV
:
data
=
1
<<
4
;
break
;
case
SH_FSI_BRS_INV
:
data
=
1
<<
0
;
break
;
}
if
(
SH_FSI_LRM_INV
&
flags
)
data
|=
1
<<
12
;
if
(
SH_FSI_BRM_INV
&
flags
)
data
|=
1
<<
8
;
if
(
SH_FSI_LRS_INV
&
flags
)
data
|=
1
<<
4
;
if
(
SH_FSI_BRS_INV
&
flags
)
data
|=
1
<<
0
;
fsi_reg_write
(
fsi
,
CKG2
,
data
);
/* do fmt, di fmt */
...
...
@@ -717,15 +712,15 @@ static int fsi_dai_startup(struct snd_pcm_substream *substream,
break
;
case
SH_FSI_FMT_TDM
:
msg
=
"TDM"
;
data
=
CR_FMT
(
CR_TDM
)
|
(
fsi
->
chan
-
1
);
fsi
->
chan
=
is_play
?
SH_FSI_GET_CH_O
(
flags
)
:
SH_FSI_GET_CH_I
(
flags
);
data
=
CR_FMT
(
CR_TDM
)
|
(
fsi
->
chan
-
1
);
break
;
case
SH_FSI_FMT_TDM_DELAY
:
msg
=
"TDM Delay"
;
data
=
CR_FMT
(
CR_TDM_D
)
|
(
fsi
->
chan
-
1
);
fsi
->
chan
=
is_play
?
SH_FSI_GET_CH_O
(
flags
)
:
SH_FSI_GET_CH_I
(
flags
);
data
=
CR_FMT
(
CR_TDM_D
)
|
(
fsi
->
chan
-
1
);
break
;
default:
dev_err
(
dai
->
dev
,
"unknown format.
\n
"
);
...
...
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