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
56798e6b
Commit
56798e6b
authored
Apr 11, 2017
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: hda - Use a helper function for renaming kctl names
Signed-off-by:
Takashi Iwai
<
tiwai@suse.de
>
parent
7beb3a6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_realtek.c
+4
-7
No files found.
sound/pci/hda/patch_realtek.c
View file @
56798e6b
...
@@ -4724,7 +4724,6 @@ static void alc282_fixup_asus_tx300(struct hda_codec *codec,
...
@@ -4724,7 +4724,6 @@ static void alc282_fixup_asus_tx300(struct hda_codec *codec,
{
0x1b
,
0x21114000
},
/* dock speaker pin */
{
0x1b
,
0x21114000
},
/* dock speaker pin */
{}
{}
};
};
struct
snd_kcontrol
*
kctl
;
switch
(
action
)
{
switch
(
action
)
{
case
HDA_FIXUP_ACT_PRE_PROBE
:
case
HDA_FIXUP_ACT_PRE_PROBE
:
...
@@ -4739,12 +4738,10 @@ static void alc282_fixup_asus_tx300(struct hda_codec *codec,
...
@@ -4739,12 +4738,10 @@ static void alc282_fixup_asus_tx300(struct hda_codec *codec,
/* this is a bit tricky; give more sane names for the main
/* this is a bit tricky; give more sane names for the main
* (tablet) speaker and the dock speaker, respectively
* (tablet) speaker and the dock speaker, respectively
*/
*/
kctl
=
snd_hda_find_mixer_ctl
(
codec
,
"Speaker Playback Switch"
);
rename_ctl
(
codec
,
"Speaker Playback Switch"
,
if
(
kctl
)
"Dock Speaker Playback Switch"
);
strcpy
(
kctl
->
id
.
name
,
"Dock Speaker Playback Switch"
);
rename_ctl
(
codec
,
"Bass Speaker Playback Switch"
,
kctl
=
snd_hda_find_mixer_ctl
(
codec
,
"Bass Speaker Playback Switch"
);
"Speaker Playback Switch"
);
if
(
kctl
)
strcpy
(
kctl
->
id
.
name
,
"Speaker Playback Switch"
);
break
;
break
;
}
}
}
}
...
...
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