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
e61c0924
Commit
e61c0924
authored
Mar 07, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/arizona' into tmp
parents
6dbe51c2
82968b7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
10 deletions
+21
-10
sound/soc/codecs/wm5102.c
sound/soc/codecs/wm5102.c
+13
-2
sound/soc/codecs/wm5110.c
sound/soc/codecs/wm5110.c
+8
-8
No files found.
sound/soc/codecs/wm5102.c
View file @
e61c0924
...
...
@@ -573,6 +573,13 @@ static const struct reg_default wm5102_sysclk_reva_patch[] = {
{
0x025e
,
0x0112
},
};
static
const
struct
reg_default
wm5102_sysclk_revb_patch
[]
=
{
{
0x3081
,
0x08FE
},
{
0x3083
,
0x00ED
},
{
0x30C1
,
0x08FE
},
{
0x30C3
,
0x00ED
},
};
static
int
wm5102_sysclk_ev
(
struct
snd_soc_dapm_widget
*
w
,
struct
snd_kcontrol
*
kcontrol
,
int
event
)
{
...
...
@@ -587,6 +594,10 @@ static int wm5102_sysclk_ev(struct snd_soc_dapm_widget *w,
patch
=
wm5102_sysclk_reva_patch
;
patch_size
=
ARRAY_SIZE
(
wm5102_sysclk_reva_patch
);
break
;
default:
patch
=
wm5102_sysclk_revb_patch
;
patch_size
=
ARRAY_SIZE
(
wm5102_sysclk_revb_patch
);
break
;
}
switch
(
event
)
{
...
...
@@ -755,7 +766,7 @@ SOC_SINGLE("SPKDAT1 High Performance Switch", ARIZONA_OUTPUT_PATH_CONFIG_5L,
SOC_DOUBLE_R
(
"HPOUT1 Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_1L
,
ARIZONA_DAC_DIGITAL_VOLUME_1R
,
ARIZONA_OUT1L_MUTE_SHIFT
,
1
,
1
),
SOC_DOUBLE_R
(
"OUT2 Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
SOC_DOUBLE_R
(
"
HP
OUT2 Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
ARIZONA_DAC_DIGITAL_VOLUME_2R
,
ARIZONA_OUT2L_MUTE_SHIFT
,
1
,
1
),
SOC_SINGLE
(
"EPOUT Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_3L
,
ARIZONA_OUT3L_MUTE_SHIFT
,
1
,
1
),
...
...
@@ -767,7 +778,7 @@ SOC_DOUBLE_R("SPKDAT1 Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_5L,
SOC_DOUBLE_R_TLV
(
"HPOUT1 Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_1L
,
ARIZONA_DAC_DIGITAL_VOLUME_1R
,
ARIZONA_OUT1L_VOL_SHIFT
,
0xbf
,
0
,
digital_tlv
),
SOC_DOUBLE_R_TLV
(
"OUT2 Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
SOC_DOUBLE_R_TLV
(
"
HP
OUT2 Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
ARIZONA_DAC_DIGITAL_VOLUME_2R
,
ARIZONA_OUT2L_VOL_SHIFT
,
0xbf
,
0
,
digital_tlv
),
SOC_SINGLE_TLV
(
"EPOUT Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_3L
,
...
...
sound/soc/codecs/wm5110.c
View file @
e61c0924
...
...
@@ -213,9 +213,9 @@ ARIZONA_MIXER_CONTROLS("SPKDAT2R", ARIZONA_OUT6RMIX_INPUT_1_SOURCE),
SOC_SINGLE
(
"HPOUT1 High Performance Switch"
,
ARIZONA_OUTPUT_PATH_CONFIG_1L
,
ARIZONA_OUT1_OSR_SHIFT
,
1
,
0
),
SOC_SINGLE
(
"OUT2 High Performance Switch"
,
ARIZONA_OUTPUT_PATH_CONFIG_2L
,
SOC_SINGLE
(
"
HP
OUT2 High Performance Switch"
,
ARIZONA_OUTPUT_PATH_CONFIG_2L
,
ARIZONA_OUT2_OSR_SHIFT
,
1
,
0
),
SOC_SINGLE
(
"OUT3 High Performance Switch"
,
ARIZONA_OUTPUT_PATH_CONFIG_3L
,
SOC_SINGLE
(
"
HP
OUT3 High Performance Switch"
,
ARIZONA_OUTPUT_PATH_CONFIG_3L
,
ARIZONA_OUT3_OSR_SHIFT
,
1
,
0
),
SOC_SINGLE
(
"Speaker High Performance Switch"
,
ARIZONA_OUTPUT_PATH_CONFIG_4L
,
ARIZONA_OUT4_OSR_SHIFT
,
1
,
0
),
...
...
@@ -226,9 +226,9 @@ SOC_SINGLE("SPKDAT2 High Performance Switch", ARIZONA_OUTPUT_PATH_CONFIG_6L,
SOC_DOUBLE_R
(
"HPOUT1 Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_1L
,
ARIZONA_DAC_DIGITAL_VOLUME_1R
,
ARIZONA_OUT1L_MUTE_SHIFT
,
1
,
1
),
SOC_DOUBLE_R
(
"OUT2 Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
SOC_DOUBLE_R
(
"
HP
OUT2 Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
ARIZONA_DAC_DIGITAL_VOLUME_2R
,
ARIZONA_OUT2L_MUTE_SHIFT
,
1
,
1
),
SOC_DOUBLE_R
(
"OUT3 Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_3L
,
SOC_DOUBLE_R
(
"
HP
OUT3 Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_3L
,
ARIZONA_DAC_DIGITAL_VOLUME_3R
,
ARIZONA_OUT3L_MUTE_SHIFT
,
1
,
1
),
SOC_DOUBLE_R
(
"Speaker Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_4L
,
ARIZONA_DAC_DIGITAL_VOLUME_4R
,
ARIZONA_OUT4L_MUTE_SHIFT
,
1
,
1
),
...
...
@@ -240,10 +240,10 @@ SOC_DOUBLE_R("SPKDAT2 Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_6L,
SOC_DOUBLE_R_TLV
(
"HPOUT1 Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_1L
,
ARIZONA_DAC_DIGITAL_VOLUME_1R
,
ARIZONA_OUT1L_VOL_SHIFT
,
0xbf
,
0
,
digital_tlv
),
SOC_DOUBLE_R_TLV
(
"OUT2 Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
SOC_DOUBLE_R_TLV
(
"
HP
OUT2 Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
ARIZONA_DAC_DIGITAL_VOLUME_2R
,
ARIZONA_OUT2L_VOL_SHIFT
,
0xbf
,
0
,
digital_tlv
),
SOC_DOUBLE_R_TLV
(
"OUT3 Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_3L
,
SOC_DOUBLE_R_TLV
(
"
HP
OUT3 Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_3L
,
ARIZONA_DAC_DIGITAL_VOLUME_3R
,
ARIZONA_OUT3L_VOL_SHIFT
,
0xbf
,
0
,
digital_tlv
),
SOC_DOUBLE_R_TLV
(
"Speaker Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_4L
,
...
...
@@ -260,11 +260,11 @@ SOC_DOUBLE_R_RANGE_TLV("HPOUT1 Volume", ARIZONA_OUTPUT_PATH_CONFIG_1L,
ARIZONA_OUTPUT_PATH_CONFIG_1R
,
ARIZONA_OUT1L_PGA_VOL_SHIFT
,
0x34
,
0x40
,
0
,
ana_tlv
),
SOC_DOUBLE_R_RANGE_TLV
(
"OUT2 Volume"
,
ARIZONA_OUTPUT_PATH_CONFIG_2L
,
SOC_DOUBLE_R_RANGE_TLV
(
"
HP
OUT2 Volume"
,
ARIZONA_OUTPUT_PATH_CONFIG_2L
,
ARIZONA_OUTPUT_PATH_CONFIG_2R
,
ARIZONA_OUT2L_PGA_VOL_SHIFT
,
0x34
,
0x40
,
0
,
ana_tlv
),
SOC_DOUBLE_R_RANGE_TLV
(
"OUT3 Volume"
,
ARIZONA_OUTPUT_PATH_CONFIG_3L
,
SOC_DOUBLE_R_RANGE_TLV
(
"
HP
OUT3 Volume"
,
ARIZONA_OUTPUT_PATH_CONFIG_3L
,
ARIZONA_OUTPUT_PATH_CONFIG_3R
,
ARIZONA_OUT3L_PGA_VOL_SHIFT
,
0x34
,
0x40
,
0
,
ana_tlv
),
...
...
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