]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/sound/hda_component.h
ALSA: hda: Make snd_hdac_display_power() void function
[linux.git] / include / sound / hda_component.h
index 78626cde70811ab23353cca17eaff1cade3281f5..2ec31b35895045e1eb8eb33fc8d5622fb87aa2dd 100644 (file)
@@ -5,10 +5,15 @@
 #define __SOUND_HDA_COMPONENT_H
 
 #include <drm/drm_audio_component.h>
+#include <sound/hdaudio.h>
+
+/* virtual idx for controller */
+#define HDA_CODEC_IDX_CONTROLLER       HDA_MAX_CODECS
 
 #ifdef CONFIG_SND_HDA_COMPONENT
 int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable);
-int snd_hdac_display_power(struct hdac_bus *bus, bool enable);
+void snd_hdac_display_power(struct hdac_bus *bus, unsigned int idx,
+                           bool enable);
 int snd_hdac_sync_audio_rate(struct hdac_device *codec, hda_nid_t nid,
                             int dev_id, int rate);
 int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, int dev_id,
@@ -25,9 +30,9 @@ static inline int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable)
 {
        return 0;
 }
-static inline int snd_hdac_display_power(struct hdac_bus *bus, bool enable)
+static inline void snd_hdac_display_power(struct hdac_bus *bus,
+                                         unsigned int idx, bool enable)
 {
-       return 0;
 }
 static inline int snd_hdac_sync_audio_rate(struct hdac_device *codec,
                                           hda_nid_t nid, int dev_id, int rate)