Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257697
b: refs/heads/master
c: 47be05c
h: refs/heads/master
i:
  257695: a6446da
v: v3
  • Loading branch information
Takashi Iwai committed Jun 20, 2011
1 parent 4f4967c commit a04d287
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 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: c6191607871776e828b8bc47b944d0c425776951
refs/heads/master: 47be05ce0a634779e1e86ec318a046f43dd6c602
16 changes: 0 additions & 16 deletions trunk/sound/pci/hda/patch_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@
#include "hda_codec.h"
#include "hda_local.h"

#define NID_MAPPING (-1)

/* Pin Widget NID */
#define VT1708_HP_PIN_NID 0x20
#define VT1708_CD_PIN_NID 0x24
Expand Down Expand Up @@ -1279,7 +1277,6 @@ static int via_build_controls(struct hda_codec *codec)
{
struct via_spec *spec = codec->spec;
struct snd_kcontrol *kctl;
const struct snd_kcontrol_new *knew;
int err, i;

if (spec->set_widgets_power_state)
Expand Down Expand Up @@ -1335,19 +1332,6 @@ static int via_build_controls(struct hda_codec *codec)
return err;
}

/* other nid->control mapping */
for (i = 0; i < spec->num_mixers; i++) {
for (knew = spec->mixers[i]; knew->name; knew++) {
if (knew->iface != NID_MAPPING)
continue;
kctl = snd_hda_find_mixer_ctl(codec, knew->name);
if (kctl == NULL)
continue;
err = snd_hda_add_nid(codec, kctl, 0,
knew->subdevice);
}
}

/* init power states */
set_widgets_power_state(codec);
analog_low_current_mode(codec, 1);
Expand Down

0 comments on commit a04d287

Please sign in to comment.