Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157816
b: refs/heads/master
c: 71443b0
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jul 29, 2009
1 parent fb9619f commit f0c6e1d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 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: 15b4f296fce683497ecc815b2f9b6f121fb3fef8
refs/heads/master: 71443b0b745f7d2c775c8a228e09ef2dc98d42f3
23 changes: 16 additions & 7 deletions trunk/sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -5481,8 +5481,6 @@ static int patch_stac92hd71bxx(struct hda_codec *codec)
}
break;
case 0x111d7608: /* 5 Port with Analog Mixer */
memcpy(&spec->private_dimux, &stac92hd71bxx_dmux_amixer,
sizeof(stac92hd71bxx_dmux_amixer));
spec->private_dimux.num_items--;
switch (spec->board_config) {
case STAC_HP_M4:
Expand All @@ -5505,9 +5503,15 @@ static int patch_stac92hd71bxx(struct hda_codec *codec)

/* no output amps */
spec->num_pwrs = 0;
if (snd_hda_get_bool_hint(codec, "analog_mixer") == 1)
if (snd_hda_get_bool_hint(codec, "analog_mixer") == 1) {
spec->mixer = stac92hd71bxx_analog_mixer;

memcpy(&spec->private_dimux, &stac92hd71bxx_dmux_amixer,
sizeof(stac92hd71bxx_dmux_amixer));
} else {
memcpy(&spec->private_dimux,
&stac92hd71bxx_dmux_nomixer,
sizeof(stac92hd71bxx_dmux_nomixer));
}
/* disable VSW */
spec->init = stac92hd71bxx_core_init;
unmute_init++;
Expand All @@ -5531,10 +5535,15 @@ static int patch_stac92hd71bxx(struct hda_codec *codec)
spec->num_pwrs = 0;
/* fallthru */
default:
memcpy(&spec->private_dimux, &stac92hd71bxx_dmux_amixer,
sizeof(stac92hd71bxx_dmux_amixer));
if (snd_hda_get_bool_hint(codec, "analog_mixer") == 1)
if (snd_hda_get_bool_hint(codec, "analog_mixer") == 1) {
spec->mixer = stac92hd71bxx_analog_mixer;
memcpy(&spec->private_dimux, &stac92hd71bxx_dmux_amixer,
sizeof(stac92hd71bxx_dmux_amixer));
} else {
memcpy(&spec->private_dimux,
&stac92hd71bxx_dmux_nomixer,
sizeof(stac92hd71bxx_dmux_nomixer));
}
spec->init = stac92hd71bxx_core_init;
codec->slave_dig_outs = stac92hd71bxx_slave_dig_outs;
spec->num_dmics = stac92hd71bxx_connected_ports(codec,
Expand Down

0 comments on commit f0c6e1d

Please sign in to comment.