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
7f0e2f8b
Commit
7f0e2f8b
authored
Jul 05, 2006
by
Jaroslav Kysela
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ALSA] HDA codec - little code & comment cleanup
Signed-off-by:
Jaroslav Kysela
<
perex@suse.cz
>
parent
8aa9b586
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_codec.h
+1
-1
sound/pci/hda/hda_proc.c
sound/pci/hda/hda_proc.c
+4
-8
No files found.
sound/pci/hda/hda_codec.h
View file @
7f0e2f8b
...
...
@@ -479,7 +479,7 @@ struct hda_codec_ops {
struct
hda_amp_info
{
u32
key
;
/* hash key */
u32
amp_caps
;
/* amp capabilities */
u16
vol
[
2
];
/* current volume & mute*/
u16
vol
[
2
];
/* current volume & mute
*/
u16
status
;
/* update flag */
u16
next
;
/* next link */
};
...
...
sound/pci/hda/hda_proc.c
View file @
7f0e2f8b
...
...
@@ -52,10 +52,9 @@ static void print_amp_caps(struct snd_info_buffer *buffer,
struct
hda_codec
*
codec
,
hda_nid_t
nid
,
int
dir
)
{
unsigned
int
caps
;
if
(
dir
==
HDA_OUTPUT
)
caps
=
snd_hda_param_read
(
codec
,
nid
,
AC_PAR_AMP_OUT_CAP
);
else
caps
=
snd_hda_param_read
(
codec
,
nid
,
AC_PAR_AMP_IN_CAP
);
caps
=
snd_hda_param_read
(
codec
,
nid
,
dir
==
HDA_OUTPUT
?
AC_PAR_AMP_OUT_CAP
:
AC_PAR_AMP_IN_CAP
);
if
(
caps
==
-
1
||
caps
==
0
)
{
snd_iprintf
(
buffer
,
"N/A
\n
"
);
return
;
...
...
@@ -74,10 +73,7 @@ static void print_amp_vals(struct snd_info_buffer *buffer,
unsigned
int
val
;
int
i
;
if
(
dir
==
HDA_OUTPUT
)
dir
=
AC_AMP_GET_OUTPUT
;
else
dir
=
AC_AMP_GET_INPUT
;
dir
=
dir
==
HDA_OUTPUT
?
AC_AMP_GET_OUTPUT
:
AC_AMP_GET_INPUT
;
for
(
i
=
0
;
i
<
indices
;
i
++
)
{
snd_iprintf
(
buffer
,
" ["
);
if
(
stereo
)
{
...
...
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