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
8f38411a
Commit
8f38411a
authored
Dec 08, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/fsl-esai' into asoc-next
parents
dbb55ce8
86ea522b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
sound/soc/fsl/fsl_esai.c
sound/soc/fsl/fsl_esai.c
+7
-5
No files found.
sound/soc/fsl/fsl_esai.c
View file @
8f38411a
...
@@ -513,10 +513,15 @@ static int fsl_esai_hw_params(struct snd_pcm_substream *substream,
...
@@ -513,10 +513,15 @@ static int fsl_esai_hw_params(struct snd_pcm_substream *substream,
u32
width
=
snd_pcm_format_width
(
params_format
(
params
));
u32
width
=
snd_pcm_format_width
(
params_format
(
params
));
u32
channels
=
params_channels
(
params
);
u32
channels
=
params_channels
(
params
);
u32
pins
=
DIV_ROUND_UP
(
channels
,
esai_priv
->
slots
);
u32
pins
=
DIV_ROUND_UP
(
channels
,
esai_priv
->
slots
);
u32
slot_width
=
width
;
u32
bclk
,
mask
,
val
;
u32
bclk
,
mask
,
val
;
int
ret
;
int
ret
;
bclk
=
params_rate
(
params
)
*
esai_priv
->
slot_width
*
esai_priv
->
slots
;
/* Override slot_width if being specifially set */
if
(
esai_priv
->
slot_width
)
slot_width
=
esai_priv
->
slot_width
;
bclk
=
params_rate
(
params
)
*
slot_width
*
esai_priv
->
slots
;
ret
=
fsl_esai_set_bclk
(
dai
,
tx
,
bclk
);
ret
=
fsl_esai_set_bclk
(
dai
,
tx
,
bclk
);
if
(
ret
)
if
(
ret
)
...
@@ -538,7 +543,7 @@ static int fsl_esai_hw_params(struct snd_pcm_substream *substream,
...
@@ -538,7 +543,7 @@ static int fsl_esai_hw_params(struct snd_pcm_substream *substream,
regmap_update_bits
(
esai_priv
->
regmap
,
REG_ESAI_xFCR
(
tx
),
mask
,
val
);
regmap_update_bits
(
esai_priv
->
regmap
,
REG_ESAI_xFCR
(
tx
),
mask
,
val
);
mask
=
ESAI_xCR_xSWS_MASK
|
(
tx
?
ESAI_xCR_PADC
:
0
);
mask
=
ESAI_xCR_xSWS_MASK
|
(
tx
?
ESAI_xCR_PADC
:
0
);
val
=
ESAI_xCR_xSWS
(
esai_priv
->
slot_width
,
width
)
|
(
tx
?
ESAI_xCR_PADC
:
0
);
val
=
ESAI_xCR_xSWS
(
slot_width
,
width
)
|
(
tx
?
ESAI_xCR_PADC
:
0
);
regmap_update_bits
(
esai_priv
->
regmap
,
REG_ESAI_xCR
(
tx
),
mask
,
val
);
regmap_update_bits
(
esai_priv
->
regmap
,
REG_ESAI_xCR
(
tx
),
mask
,
val
);
...
@@ -780,9 +785,6 @@ static int fsl_esai_probe(struct platform_device *pdev)
...
@@ -780,9 +785,6 @@ static int fsl_esai_probe(struct platform_device *pdev)
return
ret
;
return
ret
;
}
}
/* Set a default slot size */
esai_priv
->
slot_width
=
32
;
/* Set a default slot number */
/* Set a default slot number */
esai_priv
->
slots
=
2
;
esai_priv
->
slots
=
2
;
...
...
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