Skip to content

Commit

Permalink
ALSA: HDA VIA: Remove unused argument of via_new_analog_input
Browse files Browse the repository at this point in the history
Signed-off-by: Lydia Wang <lydiawang@viatech.com.cn>
Signed-off-by: Logan Li <loganli@viatech.com.cn>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Lydia Wang authored and Takashi Iwai committed Oct 11, 2009
1 parent 1731437 commit 9510e8d
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions sound/pci/hda/patch_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ static void via_free_kctls(struct hda_codec *codec)
}

/* create input playback/capture controls for the given pin */
static int via_new_analog_input(struct via_spec *spec, hda_nid_t pin,
const char *ctlname, int idx, int mix_nid)
static int via_new_analog_input(struct via_spec *spec, const char *ctlname,
int idx, int mix_nid)
{
char name[32];
int err;
Expand Down Expand Up @@ -1480,8 +1480,7 @@ static int vt1708_auto_create_analog_input_ctls(struct via_spec *spec,
idx = 1;
break;
}
err = via_new_analog_input(spec, cfg->input_pins[i], labels[i],
idx, 0x17);
err = via_new_analog_input(spec, labels[i], idx, 0x17);
if (err < 0)
return err;
imux->items[imux->num_items].label = labels[i];
Expand Down Expand Up @@ -2014,8 +2013,7 @@ static int vt1709_auto_create_analog_input_ctls(struct via_spec *spec,
idx = 1;
break;
}
err = via_new_analog_input(spec, cfg->input_pins[i], labels[i],
idx, 0x18);
err = via_new_analog_input(spec, labels[i], idx, 0x18);
if (err < 0)
return err;
imux->items[imux->num_items].label = labels[i];
Expand Down Expand Up @@ -2576,8 +2574,7 @@ static int vt1708B_auto_create_analog_input_ctls(struct via_spec *spec,
idx = 1;
break;
}
err = via_new_analog_input(spec, cfg->input_pins[i], labels[i],
idx, 0x16);
err = via_new_analog_input(spec, labels[i], idx, 0x16);
if (err < 0)
return err;
imux->items[imux->num_items].label = labels[i];
Expand Down Expand Up @@ -3048,8 +3045,7 @@ static int vt1708S_auto_create_analog_input_ctls(struct via_spec *spec,
idx = 1;
break;
}
err = via_new_analog_input(spec, cfg->input_pins[i], labels[i],
idx, 0x16);
err = via_new_analog_input(spec, labels[i], idx, 0x16);
if (err < 0)
return err;
imux->items[imux->num_items].label = labels[i];
Expand Down Expand Up @@ -3402,8 +3398,7 @@ static int vt1702_auto_create_analog_input_ctls(struct via_spec *spec,
idx = 3;
break;
}
err = via_new_analog_input(spec, cfg->input_pins[i],
labels[i], idx, 0x1A);
err = via_new_analog_input(spec, labels[i], idx, 0x1A);
if (err < 0)
return err;
imux->items[imux->num_items].label = labels[i];
Expand Down

0 comments on commit 9510e8d

Please sign in to comment.