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
3190dad9
Commit
3190dad9
authored
Jun 06, 2011
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/asoc' into for-linus
parents
157186bc
ea02c63d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
sound/soc/codecs/wm_hubs.c
sound/soc/codecs/wm_hubs.c
+4
-4
sound/soc/soc-dapm.c
sound/soc/soc-dapm.c
+4
-1
No files found.
sound/soc/codecs/wm_hubs.c
View file @
3190dad9
...
...
@@ -215,23 +215,23 @@ static const struct snd_kcontrol_new analogue_snd_controls[] = {
SOC_SINGLE_TLV
(
"IN1L Volume"
,
WM8993_LEFT_LINE_INPUT_1_2_VOLUME
,
0
,
31
,
0
,
inpga_tlv
),
SOC_SINGLE
(
"IN1L Switch"
,
WM8993_LEFT_LINE_INPUT_1_2_VOLUME
,
7
,
1
,
1
),
SOC_SINGLE
(
"IN1L ZC Switch"
,
WM8993_LEFT_LINE_INPUT_1_2_VOLUME
,
7
,
1
,
0
),
SOC_SINGLE
(
"IN1L ZC Switch"
,
WM8993_LEFT_LINE_INPUT_1_2_VOLUME
,
6
,
1
,
0
),
SOC_SINGLE_TLV
(
"IN1R Volume"
,
WM8993_RIGHT_LINE_INPUT_1_2_VOLUME
,
0
,
31
,
0
,
inpga_tlv
),
SOC_SINGLE
(
"IN1R Switch"
,
WM8993_RIGHT_LINE_INPUT_1_2_VOLUME
,
7
,
1
,
1
),
SOC_SINGLE
(
"IN1R ZC Switch"
,
WM8993_RIGHT_LINE_INPUT_1_2_VOLUME
,
7
,
1
,
0
),
SOC_SINGLE
(
"IN1R ZC Switch"
,
WM8993_RIGHT_LINE_INPUT_1_2_VOLUME
,
6
,
1
,
0
),
SOC_SINGLE_TLV
(
"IN2L Volume"
,
WM8993_LEFT_LINE_INPUT_3_4_VOLUME
,
0
,
31
,
0
,
inpga_tlv
),
SOC_SINGLE
(
"IN2L Switch"
,
WM8993_LEFT_LINE_INPUT_3_4_VOLUME
,
7
,
1
,
1
),
SOC_SINGLE
(
"IN2L ZC Switch"
,
WM8993_LEFT_LINE_INPUT_3_4_VOLUME
,
7
,
1
,
0
),
SOC_SINGLE
(
"IN2L ZC Switch"
,
WM8993_LEFT_LINE_INPUT_3_4_VOLUME
,
6
,
1
,
0
),
SOC_SINGLE_TLV
(
"IN2R Volume"
,
WM8993_RIGHT_LINE_INPUT_3_4_VOLUME
,
0
,
31
,
0
,
inpga_tlv
),
SOC_SINGLE
(
"IN2R Switch"
,
WM8993_RIGHT_LINE_INPUT_3_4_VOLUME
,
7
,
1
,
1
),
SOC_SINGLE
(
"IN2R ZC Switch"
,
WM8993_RIGHT_LINE_INPUT_3_4_VOLUME
,
7
,
1
,
0
),
SOC_SINGLE
(
"IN2R ZC Switch"
,
WM8993_RIGHT_LINE_INPUT_3_4_VOLUME
,
6
,
1
,
0
),
SOC_SINGLE_TLV
(
"MIXINL IN2L Volume"
,
WM8993_INPUT_MIXER3
,
7
,
1
,
0
,
inmix_sw_tlv
),
...
...
sound/soc/soc-dapm.c
View file @
3190dad9
...
...
@@ -325,6 +325,7 @@ static int dapm_connect_mixer(struct snd_soc_dapm_context *dapm,
}
static
int
dapm_is_shared_kcontrol
(
struct
snd_soc_dapm_context
*
dapm
,
struct
snd_soc_dapm_widget
*
kcontrolw
,
const
struct
snd_kcontrol_new
*
kcontrol_new
,
struct
snd_kcontrol
**
kcontrol
)
{
...
...
@@ -334,6 +335,8 @@ static int dapm_is_shared_kcontrol(struct snd_soc_dapm_context *dapm,
*
kcontrol
=
NULL
;
list_for_each_entry
(
w
,
&
dapm
->
card
->
widgets
,
list
)
{
if
(
w
==
kcontrolw
||
w
->
dapm
!=
kcontrolw
->
dapm
)
continue
;
for
(
i
=
0
;
i
<
w
->
num_kcontrols
;
i
++
)
{
if
(
&
w
->
kcontrol_news
[
i
]
==
kcontrol_new
)
{
if
(
w
->
kcontrols
)
...
...
@@ -468,7 +471,7 @@ static int dapm_new_mux(struct snd_soc_dapm_context *dapm,
return
-
EINVAL
;
}
shared
=
dapm_is_shared_kcontrol
(
dapm
,
&
w
->
kcontrol_news
[
0
],
shared
=
dapm_is_shared_kcontrol
(
dapm
,
w
,
&
w
->
kcontrol_news
[
0
],
&
kcontrol
);
if
(
kcontrol
)
{
wlist
=
kcontrol
->
private_data
;
...
...
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