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
4b871df5
Commit
4b871df5
authored
Feb 05, 2015
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/sgtl5000' into asoc-linus
parents
542af238
58cc9c9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
sound/soc/codecs/sgtl5000.c
sound/soc/codecs/sgtl5000.c
+8
-5
No files found.
sound/soc/codecs/sgtl5000.c
View file @
4b871df5
...
...
@@ -483,21 +483,21 @@ static int sgtl5000_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt)
/* setting i2s data format */
switch
(
fmt
&
SND_SOC_DAIFMT_FORMAT_MASK
)
{
case
SND_SOC_DAIFMT_DSP_A
:
i2sctl
|=
SGTL5000_I2S_MODE_PCM
;
i2sctl
|=
SGTL5000_I2S_MODE_PCM
<<
SGTL5000_I2S_MODE_SHIFT
;
break
;
case
SND_SOC_DAIFMT_DSP_B
:
i2sctl
|=
SGTL5000_I2S_MODE_PCM
;
i2sctl
|=
SGTL5000_I2S_MODE_PCM
<<
SGTL5000_I2S_MODE_SHIFT
;
i2sctl
|=
SGTL5000_I2S_LRALIGN
;
break
;
case
SND_SOC_DAIFMT_I2S
:
i2sctl
|=
SGTL5000_I2S_MODE_I2S_LJ
;
i2sctl
|=
SGTL5000_I2S_MODE_I2S_LJ
<<
SGTL5000_I2S_MODE_SHIFT
;
break
;
case
SND_SOC_DAIFMT_RIGHT_J
:
i2sctl
|=
SGTL5000_I2S_MODE_RJ
;
i2sctl
|=
SGTL5000_I2S_MODE_RJ
<<
SGTL5000_I2S_MODE_SHIFT
;
i2sctl
|=
SGTL5000_I2S_LRPOL
;
break
;
case
SND_SOC_DAIFMT_LEFT_J
:
i2sctl
|=
SGTL5000_I2S_MODE_I2S_LJ
;
i2sctl
|=
SGTL5000_I2S_MODE_I2S_LJ
<<
SGTL5000_I2S_MODE_SHIFT
;
i2sctl
|=
SGTL5000_I2S_LRALIGN
;
break
;
default:
...
...
@@ -1462,6 +1462,9 @@ static int sgtl5000_i2c_probe(struct i2c_client *client,
if
(
ret
)
return
ret
;
/* Need 8 clocks before I2C accesses */
udelay
(
1
);
/* read chip information */
ret
=
regmap_read
(
sgtl5000
->
regmap
,
SGTL5000_CHIP_ID
,
&
reg
);
if
(
ret
)
...
...
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