Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
d8d881dd
Commit
d8d881dd
authored
Dec 22, 2009
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: hda - Fix NULL dereference with enable_beep=0 option
Signed-off-by:
Takashi Iwai
<
tiwai@suse.de
>
parent
de8853bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
sound/pci/hda/patch_sigmatel.c
sound/pci/hda/patch_sigmatel.c
+10
-9
No files found.
sound/pci/hda/patch_sigmatel.c
View file @
d8d881dd
...
@@ -3779,15 +3779,16 @@ static int stac92xx_parse_auto_config(struct hda_codec *codec, hda_nid_t dig_out
...
@@ -3779,15 +3779,16 @@ static int stac92xx_parse_auto_config(struct hda_codec *codec, hda_nid_t dig_out
err
=
snd_hda_attach_beep_device
(
codec
,
nid
);
err
=
snd_hda_attach_beep_device
(
codec
,
nid
);
if
(
err
<
0
)
if
(
err
<
0
)
return
err
;
return
err
;
/* IDT/STAC codecs have linear beep tone parameter */
if
(
codec
->
beep
)
{
codec
->
beep
->
linear_tone
=
1
;
/* IDT/STAC codecs have linear beep tone parameter */
/* if no beep switch is available, make its own one */
codec
->
beep
->
linear_tone
=
1
;
caps
=
query_amp_caps
(
codec
,
nid
,
HDA_OUTPUT
);
/* if no beep switch is available, make its own one */
if
(
codec
->
beep
&&
caps
=
query_amp_caps
(
codec
,
nid
,
HDA_OUTPUT
);
!
((
caps
&
AC_AMPCAP_MUTE
)
>>
AC_AMPCAP_MUTE_SHIFT
))
{
if
(
!
(
caps
&
AC_AMPCAP_MUTE
))
{
err
=
stac92xx_beep_switch_ctl
(
codec
);
err
=
stac92xx_beep_switch_ctl
(
codec
);
if
(
err
<
0
)
if
(
err
<
0
)
return
err
;
return
err
;
}
}
}
}
}
#endif
#endif
...
...
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