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
e4fc141d
Commit
e4fc141d
authored
Oct 07, 2015
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branches 'asoc/fix/tlv320aic3x' and 'asoc/fix/wm8962' into asoc-linus
parents
1e2fa4cf
2d1180e3
57622aef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
sound/soc/codecs/tlv320aic3x.c
sound/soc/codecs/tlv320aic3x.c
+11
-8
sound/soc/codecs/wm8962.c
sound/soc/codecs/wm8962.c
+4
-1
No files found.
sound/soc/codecs/tlv320aic3x.c
View file @
e4fc141d
...
...
@@ -1509,14 +1509,17 @@ static int aic3x_init(struct snd_soc_codec *codec)
snd_soc_write
(
codec
,
PGAL_2_LLOPM_VOL
,
DEFAULT_VOL
);
snd_soc_write
(
codec
,
PGAR_2_RLOPM_VOL
,
DEFAULT_VOL
);
/* Line2 to HP Bypass default volume, disconnect from Output Mixer */
snd_soc_write
(
codec
,
LINE2L_2_HPLOUT_VOL
,
DEFAULT_VOL
);
snd_soc_write
(
codec
,
LINE2R_2_HPROUT_VOL
,
DEFAULT_VOL
);
snd_soc_write
(
codec
,
LINE2L_2_HPLCOM_VOL
,
DEFAULT_VOL
);
snd_soc_write
(
codec
,
LINE2R_2_HPRCOM_VOL
,
DEFAULT_VOL
);
/* Line2 Line Out default volume, disconnect from Output Mixer */
snd_soc_write
(
codec
,
LINE2L_2_LLOPM_VOL
,
DEFAULT_VOL
);
snd_soc_write
(
codec
,
LINE2R_2_RLOPM_VOL
,
DEFAULT_VOL
);
/* On tlv320aic3104, these registers are reserved and must not be written */
if
(
aic3x
->
model
!=
AIC3X_MODEL_3104
)
{
/* Line2 to HP Bypass default volume, disconnect from Output Mixer */
snd_soc_write
(
codec
,
LINE2L_2_HPLOUT_VOL
,
DEFAULT_VOL
);
snd_soc_write
(
codec
,
LINE2R_2_HPROUT_VOL
,
DEFAULT_VOL
);
snd_soc_write
(
codec
,
LINE2L_2_HPLCOM_VOL
,
DEFAULT_VOL
);
snd_soc_write
(
codec
,
LINE2R_2_HPRCOM_VOL
,
DEFAULT_VOL
);
/* Line2 Line Out default volume, disconnect from Output Mixer */
snd_soc_write
(
codec
,
LINE2L_2_LLOPM_VOL
,
DEFAULT_VOL
);
snd_soc_write
(
codec
,
LINE2R_2_RLOPM_VOL
,
DEFAULT_VOL
);
}
switch
(
aic3x
->
model
)
{
case
AIC3X_MODEL_3X
:
...
...
sound/soc/codecs/wm8962.c
View file @
e4fc141d
...
...
@@ -3760,7 +3760,7 @@ static int wm8962_i2c_probe(struct i2c_client *i2c,
ret
=
snd_soc_register_codec
(
&
i2c
->
dev
,
&
soc_codec_dev_wm8962
,
&
wm8962_dai
,
1
);
if
(
ret
<
0
)
goto
err_
enabl
e
;
goto
err_
pm_runtim
e
;
regcache_cache_only
(
wm8962
->
regmap
,
true
);
...
...
@@ -3769,6 +3769,8 @@ static int wm8962_i2c_probe(struct i2c_client *i2c,
return
0
;
err_pm_runtime:
pm_runtime_disable
(
&
i2c
->
dev
);
err_enable:
regulator_bulk_disable
(
ARRAY_SIZE
(
wm8962
->
supplies
),
wm8962
->
supplies
);
err:
...
...
@@ -3778,6 +3780,7 @@ static int wm8962_i2c_probe(struct i2c_client *i2c,
static
int
wm8962_i2c_remove
(
struct
i2c_client
*
client
)
{
snd_soc_unregister_codec
(
&
client
->
dev
);
pm_runtime_disable
(
&
client
->
dev
);
return
0
;
}
...
...
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