diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-03-18 11:23:10 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-03-18 11:23:10 +0300 |
commit | 5ccf835cc76d89bc0d426659c63d81f609050842 (patch) | |
tree | a601871aa85d8115b63f999c00a8a2808b79678f /sound/pci/hda/hda_beep.h | |
parent | 688b12cc3ca8a5155b95ce8d01e0e43006813b27 (diff) | |
download | linux-5ccf835cc76d89bc0d426659c63d81f609050842.tar.xz |
ALSA: hda - Adjust power of beep widget and outputs
As the widget PM may turn off the pins, this might lead to the silent
output for beep when no explicit paths are given. This patch adds
fake output paths for the beep widget so that the output pins are
dynamically powered upon beep on/off.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_beep.h')
-rw-r--r-- | sound/pci/hda/hda_beep.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_beep.h b/sound/pci/hda/hda_beep.h index a63b5e077332..46524ff7e79e 100644 --- a/sound/pci/hda/hda_beep.h +++ b/sound/pci/hda/hda_beep.h @@ -40,6 +40,7 @@ struct hda_beep { unsigned int playing:1; struct work_struct beep_work; /* scheduled task for beep event */ struct mutex mutex; + void (*power_hook)(struct hda_beep *beep, bool on); }; #ifdef CONFIG_SND_HDA_INPUT_BEEP |