Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34830
b: refs/heads/master
c: 7f0e2f8
h: refs/heads/master
v: v3
  • Loading branch information
Jaroslav Kysela committed Sep 23, 2006
1 parent 6012959 commit e371136
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8aa9b586e42099817163aba01d925c2660c4dbbe
refs/heads/master: 7f0e2f8bb851f5e0a2e0fef465b7b6f36c7aa7be
2 changes: 1 addition & 1 deletion trunk/sound/pci/hda/hda_codec.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
};
Expand Down
12 changes: 4 additions & 8 deletions trunk/sound/pci/hda/hda_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {
Expand Down

0 comments on commit e371136

Please sign in to comment.