aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_beep.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-03-18 09:23:10 +0100
committerTakashi Iwai <tiwai@suse.de>2015-03-18 09:23:10 +0100
commit5ccf835cc76d89bc0d426659c63d81f609050842 (patch)
treea601871aa85d8115b63f999c00a8a2808b79678f /sound/pci/hda/hda_beep.h
parentALSA: hda - Use the new power control for VIA codecs (diff)
downloadlinux-dev-5ccf835cc76d89bc0d426659c63d81f609050842.tar.xz
linux-dev-5ccf835cc76d89bc0d426659c63d81f609050842.zip
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.h1
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