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
1b6b0dfa
Commit
1b6b0dfa
authored
Jan 08, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: cs42l51: Use params_width() rather than memory format
Signed-off-by:
Mark Brown
<
broonie@linaro.org
>
parent
2dad2283
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
sound/soc/codecs/cs42l51.c
sound/soc/codecs/cs42l51.c
+5
-9
No files found.
sound/soc/codecs/cs42l51.c
View file @
1b6b0dfa
...
...
@@ -423,21 +423,17 @@ static int cs42l51_hw_params(struct snd_pcm_substream *substream,
intf_ctl
|=
CS42L51_INTF_CTL_DAC_FORMAT
(
CS42L51_DAC_DIF_LJ24
);
break
;
case
SND_SOC_DAIFMT_RIGHT_J
:
switch
(
params_format
(
params
))
{
case
SNDRV_PCM_FORMAT_S16_LE
:
case
SNDRV_PCM_FORMAT_S16_BE
:
switch
(
params_width
(
params
))
{
case
16
:
fmt
=
CS42L51_DAC_DIF_RJ16
;
break
;
case
SNDRV_PCM_FORMAT_S18_3LE
:
case
SNDRV_PCM_FORMAT_S18_3BE
:
case
18
:
fmt
=
CS42L51_DAC_DIF_RJ18
;
break
;
case
SNDRV_PCM_FORMAT_S20_3LE
:
case
SNDRV_PCM_FORMAT_S20_3BE
:
case
20
:
fmt
=
CS42L51_DAC_DIF_RJ20
;
break
;
case
SNDRV_PCM_FORMAT_S24_LE
:
case
SNDRV_PCM_FORMAT_S24_BE
:
case
24
:
fmt
=
CS42L51_DAC_DIF_RJ24
;
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