Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5801f992 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Fix compile warning with CONFIG_SND_JACK=n



  sound/pci/hda/patch_conexant.c:352: warning: 'conexant_add_jack' defined but not used

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent aa9d823b
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -347,6 +347,7 @@ static int conexant_mux_enum_put(struct snd_kcontrol *kcontrol,
				     &spec->cur_mux[adc_idx]);
}

#ifdef CONFIG_SND_JACK
static int conexant_add_jack(struct hda_codec *codec,
		hda_nid_t nid, int type)
{
@@ -394,7 +395,6 @@ static void conexant_report_jack(struct hda_codec *codec, hda_nid_t nid)

static int conexant_init_jacks(struct hda_codec *codec)
{
#ifdef CONFIG_SND_JACK
	struct conexant_spec *spec = codec->spec;
	int i;

@@ -422,10 +422,19 @@ static int conexant_init_jacks(struct hda_codec *codec)
			++hv;
		}
	}
#endif
	return 0;

}
#else
static inline void conexant_report_jack(struct hda_codec *codec, hda_nid_t nid)
{
}

static inline int conexant_init_jacks(struct hda_codec *codec)
{
	return 0;
}
#endif

static int conexant_init(struct hda_codec *codec)
{