diff options
author | Takashi Iwai | 2015-04-29 12:28:52 +0200 |
---|---|---|
committer | Takashi Iwai | 2015-04-29 12:28:52 +0200 |
commit | 85abf3ec5fa663c9638ef2d10d9623880a26458e (patch) | |
tree | ce1cc6166cd34b4a49299ccf4aefaac657a34fcf /include/sound | |
parent | 49c4a4c5244d2c1a25ec1e01dbb4fba3813d237d (diff) | |
parent | 2bd1f73f4242ee19d8c610bcffe6e7a813451ce0 (diff) |
Merge branch 'topic/hda' into for-next
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/hdaudio.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h index 6a2e030c836c..b97c59eab7ab 100644 --- a/include/sound/hdaudio.h +++ b/include/sound/hdaudio.h @@ -74,6 +74,7 @@ struct hdac_device { /* misc flags */ atomic_t in_pm; /* suspend/resume being performed */ + bool link_power_control:1; /* sysfs */ struct hdac_widget_tree *widgets; @@ -184,6 +185,8 @@ struct hdac_bus_ops { /* get a response from the last command */ int (*get_response)(struct hdac_bus *bus, unsigned int addr, unsigned int *res); + /* control the link power */ + int (*link_power)(struct hdac_bus *bus, bool enable); }; /* @@ -311,6 +314,7 @@ static inline void snd_hdac_codec_link_down(struct hdac_device *codec) int snd_hdac_bus_send_cmd(struct hdac_bus *bus, unsigned int val); int snd_hdac_bus_get_response(struct hdac_bus *bus, unsigned int addr, unsigned int *res); +int snd_hdac_link_power(struct hdac_device *codec, bool enable); bool snd_hdac_bus_init_chip(struct hdac_bus *bus, bool full_reset); void snd_hdac_bus_stop_chip(struct hdac_bus *bus); |