.. | .. |
---|
9 | 9 | #ifndef __SOUND_HDA_BEEP_H |
---|
10 | 10 | #define __SOUND_HDA_BEEP_H |
---|
11 | 11 | |
---|
12 | | -#include "hda_codec.h" |
---|
| 12 | +#include <sound/hda_codec.h> |
---|
13 | 13 | |
---|
14 | 14 | #define HDA_BEEP_MODE_OFF 0 |
---|
15 | 15 | #define HDA_BEEP_MODE_ON 1 |
---|
.. | .. |
---|
25 | 25 | unsigned int enabled:1; |
---|
26 | 26 | unsigned int linear_tone:1; /* linear tone for IDT/STAC codec */ |
---|
27 | 27 | unsigned int playing:1; |
---|
| 28 | + unsigned int keep_power_at_enable:1; /* set by driver */ |
---|
28 | 29 | struct work_struct beep_work; /* scheduled task for beep event */ |
---|
29 | 30 | struct mutex mutex; |
---|
30 | 31 | void (*power_hook)(struct hda_beep *beep, bool on); |
---|
.. | .. |
---|
34 | 35 | int snd_hda_enable_beep_device(struct hda_codec *codec, int enable); |
---|
35 | 36 | int snd_hda_attach_beep_device(struct hda_codec *codec, int nid); |
---|
36 | 37 | void snd_hda_detach_beep_device(struct hda_codec *codec); |
---|
37 | | -int snd_hda_register_beep_device(struct hda_codec *codec); |
---|
38 | 38 | #else |
---|
39 | 39 | static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) |
---|
40 | 40 | { |
---|
.. | .. |
---|
42 | 42 | } |
---|
43 | 43 | static inline void snd_hda_detach_beep_device(struct hda_codec *codec) |
---|
44 | 44 | { |
---|
45 | | -} |
---|
46 | | -static inline int snd_hda_register_beep_device(struct hda_codec *codec) |
---|
47 | | -{ |
---|
48 | | - return 0; |
---|
49 | 45 | } |
---|
50 | 46 | #endif |
---|
51 | 47 | #endif |
---|