ALSA: hda - Make common input-jack helper functions
[deliverable/linux.git] / sound / pci / hda / hda_local.h
index 3ab5e7a303db23a4d7f0af841f7bece6bba880c9..ff5e2ac2239ae210cb673326f4f1db42dce93c11 100644 (file)
@@ -656,4 +656,28 @@ static inline void snd_hda_eld_proc_free(struct hda_codec *codec,
 #define SND_PRINT_CHANNEL_ALLOCATION_ADVISED_BUFSIZE 80
 void snd_print_channel_allocation(int spk_alloc, char *buf, int buflen);
 
+/*
+ * Input-jack notification support
+ */
+#ifdef CONFIG_SND_HDA_INPUT_JACK
+int snd_hda_input_jack_add(struct hda_codec *codec, hda_nid_t nid, int type,
+                          const char *name);
+void snd_hda_input_jack_report(struct hda_codec *codec, hda_nid_t nid);
+void snd_hda_input_jack_free(struct hda_codec *codec);
+#else /* CONFIG_SND_HDA_INPUT_JACK */
+static inline int snd_hda_input_jack_add(struct hda_codec *codec,
+                                        hda_nid_t nid, int type,
+                                        const char *name)
+{
+       return 0;
+}
+static inline void snd_hda_input_jack_report(struct hda_codec *codec,
+                                            hda_nid_t nid)
+{
+}
+static inline void snd_hda_input_jack_free(struct hda_codec *codec)
+{
+}
+#endif /* CONFIG_SND_HDA_INPUT_JACK */
+
 #endif /* __SOUND_HDA_LOCAL_H */
This page took 0.024362 seconds and 5 git commands to generate.