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
abf82ae6
Commit
abf82ae6
authored
Jan 08, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: da732x: Use params_width() rather than memory format
Signed-off-by:
Mark Brown
<
broonie@linaro.org
>
parent
e7610743
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sound/soc/codecs/da732x.c
sound/soc/codecs/da732x.c
+5
-5
No files found.
sound/soc/codecs/da732x.c
View file @
abf82ae6
...
...
@@ -973,17 +973,17 @@ static int da732x_hw_params(struct snd_pcm_substream *substream,
reg_aif
=
dai
->
driver
->
base
;
switch
(
params_
format
(
params
))
{
case
SNDRV_PCM_FORMAT_S16_LE
:
switch
(
params_
width
(
params
))
{
case
16
:
aif
|=
DA732X_AIF_WORD_16
;
break
;
case
SNDRV_PCM_FORMAT_S20_3LE
:
case
20
:
aif
|=
DA732X_AIF_WORD_20
;
break
;
case
SNDRV_PCM_FORMAT_S24_LE
:
case
24
:
aif
|=
DA732X_AIF_WORD_24
;
break
;
case
SNDRV_PCM_FORMAT_S32_LE
:
case
32
:
aif
|=
DA732X_AIF_WORD_32
;
break
;
default:
...
...
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