diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-04-29 12:28:52 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-04-29 12:28:52 +0200 |
commit | 85abf3ec5fa663c9638ef2d10d9623880a26458e (patch) | |
tree | ce1cc6166cd34b4a49299ccf4aefaac657a34fcf /sound/pci/hda/hda_controller.c | |
parent | 49c4a4c5244d2c1a25ec1e01dbb4fba3813d237d (diff) | |
parent | 2bd1f73f4242ee19d8c610bcffe6e7a813451ce0 (diff) |
Merge branch 'topic/hda' into for-next
Diffstat (limited to 'sound/pci/hda/hda_controller.c')
-rw-r--r-- | sound/pci/hda/hda_controller.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c index e0bb6231ff0c..120854ebd054 100644 --- a/sound/pci/hda/hda_controller.c +++ b/sound/pci/hda/hda_controller.c @@ -775,9 +775,20 @@ static int azx_get_response(struct hdac_bus *bus, unsigned int addr, return azx_rirb_get_response(bus, addr, res); } +static int azx_link_power(struct hdac_bus *bus, bool enable) +{ + struct azx *chip = bus_to_azx(bus); + + if (chip->ops->link_power) + return chip->ops->link_power(chip, enable); + else + return -EINVAL; +} + static const struct hdac_bus_ops bus_core_ops = { .command = azx_send_cmd, .get_response = azx_get_response, + .link_power = azx_link_power, }; #ifdef CONFIG_SND_HDA_DSP_LOADER |