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
cc0b8139
Commit
cc0b8139
authored
Oct 26, 2017
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/msm8916' into asoc-linus
parents
613733f0
664611e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
sound/soc/codecs/msm8916-wcd-analog.c
sound/soc/codecs/msm8916-wcd-analog.c
+4
-3
sound/soc/codecs/msm8916-wcd-digital.c
sound/soc/codecs/msm8916-wcd-digital.c
+2
-2
No files found.
sound/soc/codecs/msm8916-wcd-analog.c
View file @
cc0b8139
...
...
@@ -104,7 +104,7 @@
#define CDC_A_MICB_1_VAL (0xf141)
#define MICB_MIN_VAL 1600
#define MICB_STEP_SIZE 50
#define MICB_VOLTAGE_REGVAL(v) ((
v - MICB_MIN_VAL)/MICB_STEP_SIZE
)
#define MICB_VOLTAGE_REGVAL(v) ((
(v - MICB_MIN_VAL)/MICB_STEP_SIZE) << 3
)
#define MICB_1_VAL_MICB_OUT_VAL_MASK GENMASK(7, 3)
#define MICB_1_VAL_MICB_OUT_VAL_V2P70V ((0x16) << 3)
#define MICB_1_VAL_MICB_OUT_VAL_V1P80V ((0x4) << 3)
...
...
@@ -349,8 +349,9 @@ static void pm8916_wcd_analog_micbias_enable(struct snd_soc_codec *codec)
|
MICB_1_CTL_EXT_PRECHARG_EN_ENABLE
);
if
(
wcd
->
micbias_mv
)
{
snd_soc_write
(
codec
,
CDC_A_MICB_1_VAL
,
MICB_VOLTAGE_REGVAL
(
wcd
->
micbias_mv
));
snd_soc_update_bits
(
codec
,
CDC_A_MICB_1_VAL
,
MICB_1_VAL_MICB_OUT_VAL_MASK
,
MICB_VOLTAGE_REGVAL
(
wcd
->
micbias_mv
));
/*
* Special headset needs MICBIAS as 2.7V so wait for
* 50 msec for the MICBIAS to reach 2.7 volts.
...
...
sound/soc/codecs/msm8916-wcd-digital.c
View file @
cc0b8139
...
...
@@ -238,7 +238,7 @@ static const struct soc_enum rx_mix2_inp1_chain_enum = SOC_ENUM_SINGLE(
static
const
struct
soc_enum
rx2_mix1_inp_enum
[]
=
{
SOC_ENUM_SINGLE
(
LPASS_CDC_CONN_RX2_B1_CTL
,
0
,
6
,
rx_mix1_text
),
SOC_ENUM_SINGLE
(
LPASS_CDC_CONN_RX2_B1_CTL
,
3
,
6
,
rx_mix1_text
),
SOC_ENUM_SINGLE
(
LPASS_CDC_CONN_RX2_B
1
_CTL
,
0
,
6
,
rx_mix1_text
),
SOC_ENUM_SINGLE
(
LPASS_CDC_CONN_RX2_B
2
_CTL
,
0
,
6
,
rx_mix1_text
),
};
/* RX2 MIX2 */
...
...
@@ -249,7 +249,7 @@ static const struct soc_enum rx2_mix2_inp1_chain_enum = SOC_ENUM_SINGLE(
static
const
struct
soc_enum
rx3_mix1_inp_enum
[]
=
{
SOC_ENUM_SINGLE
(
LPASS_CDC_CONN_RX3_B1_CTL
,
0
,
6
,
rx_mix1_text
),
SOC_ENUM_SINGLE
(
LPASS_CDC_CONN_RX3_B1_CTL
,
3
,
6
,
rx_mix1_text
),
SOC_ENUM_SINGLE
(
LPASS_CDC_CONN_RX3_B
1
_CTL
,
0
,
6
,
rx_mix1_text
),
SOC_ENUM_SINGLE
(
LPASS_CDC_CONN_RX3_B
2
_CTL
,
0
,
6
,
rx_mix1_text
),
};
/* DEC */
...
...
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