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
3b7523fc
Commit
3b7523fc
authored
Mar 12, 2009
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: hda - Add comments for the previous fix for conexant codecs
Signed-off-by:
Takashi Iwai
<
tiwai@suse.de
>
parent
5d75bc55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
sound/pci/hda/patch_conexant.c
sound/pci/hda/patch_conexant.c
+6
-0
No files found.
sound/pci/hda/patch_conexant.c
View file @
3b7523fc
...
...
@@ -1196,6 +1196,10 @@ static int cxt5047_hp_master_sw_put(struct snd_kcontrol *kcontrol,
* the headphone jack
*/
bits
=
(
!
spec
->
hp_present
&&
spec
->
cur_eapd
)
?
0
:
HDA_AMP_MUTE
;
/* NOTE: Conexat codec needs the index for *OUTPUT* amp of
* pin widgets unlike other codecs. In this case, we need to
* set index 0x01 for the volume from the mixer amp 0x19.
*/
snd_hda_codec_amp_stereo
(
codec
,
0x1d
,
HDA_OUTPUT
,
0x01
,
HDA_AMP_MUTE
,
bits
);
bits
=
spec
->
cur_eapd
?
0
:
HDA_AMP_MUTE
;
...
...
@@ -1214,6 +1218,7 @@ static void cxt5047_hp_automute(struct hda_codec *codec)
AC_VERB_GET_PIN_SENSE
,
0
)
&
0x80000000
;
bits
=
(
spec
->
hp_present
||
!
spec
->
cur_eapd
)
?
HDA_AMP_MUTE
:
0
;
/* See the note in cxt5047_hp_master_sw_put */
snd_hda_codec_amp_stereo
(
codec
,
0x1d
,
HDA_OUTPUT
,
0x01
,
HDA_AMP_MUTE
,
bits
);
}
...
...
@@ -1276,6 +1281,7 @@ static struct snd_kcontrol_new cxt5047_base_mixers[] = {
};
static
struct
snd_kcontrol_new
cxt5047_hp_spk_mixers
[]
=
{
/* See the note in cxt5047_hp_master_sw_put */
HDA_CODEC_VOLUME
(
"Speaker Playback Volume"
,
0x1d
,
0x01
,
HDA_OUTPUT
),
HDA_CODEC_VOLUME
(
"Headphone Playback Volume"
,
0x13
,
0x00
,
HDA_OUTPUT
),
{}
...
...
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