hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/sound/pci/hda/hda_beep.h
....@@ -9,7 +9,7 @@
99 #ifndef __SOUND_HDA_BEEP_H
1010 #define __SOUND_HDA_BEEP_H
1111
12
-#include "hda_codec.h"
12
+#include <sound/hda_codec.h>
1313
1414 #define HDA_BEEP_MODE_OFF 0
1515 #define HDA_BEEP_MODE_ON 1
....@@ -25,6 +25,7 @@
2525 unsigned int enabled:1;
2626 unsigned int linear_tone:1; /* linear tone for IDT/STAC codec */
2727 unsigned int playing:1;
28
+ unsigned int keep_power_at_enable:1; /* set by driver */
2829 struct work_struct beep_work; /* scheduled task for beep event */
2930 struct mutex mutex;
3031 void (*power_hook)(struct hda_beep *beep, bool on);
....@@ -34,7 +35,6 @@
3435 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable);
3536 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid);
3637 void snd_hda_detach_beep_device(struct hda_codec *codec);
37
-int snd_hda_register_beep_device(struct hda_codec *codec);
3838 #else
3939 static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)
4040 {
....@@ -42,10 +42,6 @@
4242 }
4343 static inline void snd_hda_detach_beep_device(struct hda_codec *codec)
4444 {
45
-}
46
-static inline int snd_hda_register_beep_device(struct hda_codec *codec)
47
-{
48
- return 0;
4945 }
5046 #endif
5147 #endif