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
7c081528
Commit
7c081528
authored
Aug 04, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/tlv320aic31xx' into asoc-linus
parents
3674b710
a72d2abb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
sound/soc/codecs/tlv320aic31xx.c
sound/soc/codecs/tlv320aic31xx.c
+6
-3
No files found.
sound/soc/codecs/tlv320aic31xx.c
View file @
7c081528
...
...
@@ -1178,7 +1178,7 @@ static void aic31xx_pdata_from_of(struct aic31xx_priv *aic31xx)
}
#endif
/* CONFIG_OF */
static
void
aic31xx_device_init
(
struct
aic31xx_priv
*
aic31xx
)
static
int
aic31xx_device_init
(
struct
aic31xx_priv
*
aic31xx
)
{
int
ret
,
i
;
...
...
@@ -1197,7 +1197,7 @@ static void aic31xx_device_init(struct aic31xx_priv *aic31xx)
"aic31xx-reset-pin"
);
if
(
ret
<
0
)
{
dev_err
(
aic31xx
->
dev
,
"not able to acquire gpio
\n
"
);
return
;
return
ret
;
}
}
...
...
@@ -1210,6 +1210,7 @@ static void aic31xx_device_init(struct aic31xx_priv *aic31xx)
if
(
ret
!=
0
)
dev_err
(
aic31xx
->
dev
,
"Failed to request supplies: %d
\n
"
,
ret
);
return
ret
;
}
static
int
aic31xx_i2c_probe
(
struct
i2c_client
*
i2c
,
...
...
@@ -1239,7 +1240,9 @@ static int aic31xx_i2c_probe(struct i2c_client *i2c,
aic31xx
->
pdata
.
codec_type
=
id
->
driver_data
;
aic31xx_device_init
(
aic31xx
);
ret
=
aic31xx_device_init
(
aic31xx
);
if
(
ret
)
return
ret
;
return
snd_soc_register_codec
(
&
i2c
->
dev
,
&
soc_codec_driver_aic31xx
,
aic31xx_dai_driver
,
...
...
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