Commit 0fe0adf8 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Replace with standard consts in patch_via.c

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent ece8d043
...@@ -263,13 +263,6 @@ enum { ...@@ -263,13 +263,6 @@ enum {
VIA_CTL_WIDGET_BIND_PIN_MUTE, VIA_CTL_WIDGET_BIND_PIN_MUTE,
}; };
enum {
AUTO_SEQ_FRONT = 0,
AUTO_SEQ_SURROUND,
AUTO_SEQ_CENLFE,
AUTO_SEQ_SIDE
};
static void analog_low_current_mode(struct hda_codec *codec, int stream_idle); static void analog_low_current_mode(struct hda_codec *codec, int stream_idle);
static int is_aa_path_mute(struct hda_codec *codec); static int is_aa_path_mute(struct hda_codec *codec);
...@@ -528,7 +521,7 @@ static void via_auto_init_multi_out(struct hda_codec *codec) ...@@ -528,7 +521,7 @@ static void via_auto_init_multi_out(struct hda_codec *codec)
struct via_spec *spec = codec->spec; struct via_spec *spec = codec->spec;
int i; int i;
for (i = 0; i <= AUTO_SEQ_SIDE; i++) { for (i = 0; i <= HDA_SIDE; i++) {
hda_nid_t nid = spec->autocfg.line_out_pins[i]; hda_nid_t nid = spec->autocfg.line_out_pins[i];
if (nid) if (nid)
via_auto_set_output_and_unmute(codec, nid, PIN_OUT, i); via_auto_set_output_and_unmute(codec, nid, PIN_OUT, i);
...@@ -1839,7 +1832,7 @@ static int via_auto_create_multi_out_ctls(struct hda_codec *codec) ...@@ -1839,7 +1832,7 @@ static int via_auto_create_multi_out_ctls(struct hda_codec *codec)
dac = spec->multiout.dac_nids[i]; dac = spec->multiout.dac_nids[i];
if (!pin || !dac) if (!pin || !dac)
continue; continue;
if (i == AUTO_SEQ_CENLFE) { if (i == HDA_CLFE) {
err = create_ch_ctls(codec, "Center", pin, dac, 1); err = create_ch_ctls(codec, "Center", pin, dac, 1);
if (err < 0) if (err < 0)
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment