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
7ae34336
Commit
7ae34336
authored
May 28, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/cs42l52' into asoc-linus
parents
d63aaee1
04d245b7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
sound/soc/codecs/cs42l52.c
sound/soc/codecs/cs42l52.c
+4
-4
sound/soc/codecs/cs42l52.h
sound/soc/codecs/cs42l52.h
+1
-1
No files found.
sound/soc/codecs/cs42l52.c
View file @
7ae34336
...
...
@@ -86,7 +86,7 @@ static const struct reg_default cs42l52_reg_defaults[] = {
{
CS42L52_BEEP_VOL
,
0x00
},
/* r1D Beep Volume off Time */
{
CS42L52_BEEP_TONE_CTL
,
0x00
},
/* r1E Beep Tone Cfg. */
{
CS42L52_TONE_CTL
,
0x00
},
/* r1F Tone Ctl */
{
CS42L52_MASTERA_VOL
,
0x
88
},
/* r20 Master A Volume */
{
CS42L52_MASTERA_VOL
,
0x
00
},
/* r20 Master A Volume */
{
CS42L52_MASTERB_VOL
,
0x00
},
/* r21 Master B Volume */
{
CS42L52_HPA_VOL
,
0x00
},
/* r22 Headphone A Volume */
{
CS42L52_HPB_VOL
,
0x00
},
/* r23 Headphone B Volume */
...
...
@@ -225,7 +225,7 @@ static const char * const mic_bias_level_text[] = {
};
static
const
struct
soc_enum
mic_bias_level_enum
=
SOC_ENUM_SINGLE
(
CS42L52_IFACE_CTL
1
,
0
,
SOC_ENUM_SINGLE
(
CS42L52_IFACE_CTL
2
,
0
,
ARRAY_SIZE
(
mic_bias_level_text
),
mic_bias_level_text
);
static
const
char
*
const
cs42l52_mic_text
[]
=
{
"Single"
,
"Differential"
};
...
...
@@ -413,7 +413,7 @@ static const struct snd_kcontrol_new cs42l52_snd_controls[] = {
SOC_ENUM
(
"Headphone Analog Gain"
,
hp_gain_enum
),
SOC_DOUBLE_R_SX_TLV
(
"Speaker Volume"
,
CS42L52_SPKA_VOL
,
CS42L52_SPKB_VOL
,
7
,
0x1
,
0xff
,
hl_tlv
),
CS42L52_SPKB_VOL
,
0
,
0x1
,
0xff
,
hl_tlv
),
SOC_DOUBLE_R_SX_TLV
(
"Bypass Volume"
,
CS42L52_PASSTHRUA_VOL
,
CS42L52_PASSTHRUB_VOL
,
6
,
0x18
,
0x90
,
pga_tlv
),
...
...
@@ -441,7 +441,7 @@ static const struct snd_kcontrol_new cs42l52_snd_controls[] = {
SOC_DOUBLE_R_SX_TLV
(
"PCM Mixer Volume"
,
CS42L52_PCMA_MIXER_VOL
,
CS42L52_PCMB_MIXER_VOL
,
6
,
0x7f
,
0x19
,
hl_tlv
),
0
,
0x7f
,
0x19
,
hl_tlv
),
SOC_DOUBLE_R
(
"PCM Mixer Switch"
,
CS42L52_PCMA_MIXER_VOL
,
CS42L52_PCMB_MIXER_VOL
,
7
,
1
,
1
),
...
...
sound/soc/codecs/cs42l52.h
View file @
7ae34336
...
...
@@ -157,7 +157,7 @@
#define CS42L52_PB_CTL1_INV_PCMA (1 << 2)
#define CS42L52_PB_CTL1_MSTB_MUTE (1 << 1)
#define CS42L52_PB_CTL1_MSTA_MUTE (1 << 0)
#define CS42L52_PB_CTL1_MUTE_MASK 0x
FFFD
#define CS42L52_PB_CTL1_MUTE_MASK 0x
03
#define CS42L52_PB_CTL1_MUTE 3
#define CS42L52_PB_CTL1_UNMUTE 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