diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-04-28 02:31:31 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-04-28 02:31:31 -0400 |
commit | 1962fcab4ee80e555bcc9d0f50e416800d474fa2 (patch) | |
tree | 945ba95f11016871f9d5241b7da2712f9367081a /include/sound | |
parent | f1a77547c21fe942e95ebaadbc9200f26d138574 (diff) | |
parent | 12e180a27f3e066a4ed4a446d428fd117f168beb (diff) |
Merge branch 'topic/jack' into for-next
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/control.h | 2 | ||||
-rw-r--r-- | include/sound/jack.h | 13 |
2 files changed, 11 insertions, 4 deletions
diff --git a/include/sound/control.h b/include/sound/control.h index 95aad6d3fd1a..21d047f229a1 100644 --- a/include/sound/control.h +++ b/include/sound/control.h | |||
@@ -252,7 +252,7 @@ void snd_ctl_sync_vmaster(struct snd_kcontrol *kctl, bool hook_only); | |||
252 | * Helper functions for jack-detection controls | 252 | * Helper functions for jack-detection controls |
253 | */ | 253 | */ |
254 | struct snd_kcontrol * | 254 | struct snd_kcontrol * |
255 | snd_kctl_jack_new(const char *name, int idx, void *private_data); | 255 | snd_kctl_jack_new(const char *name, struct snd_card *card); |
256 | void snd_kctl_jack_report(struct snd_card *card, | 256 | void snd_kctl_jack_report(struct snd_card *card, |
257 | struct snd_kcontrol *kctl, bool status); | 257 | struct snd_kcontrol *kctl, bool status); |
258 | 258 | ||
diff --git a/include/sound/jack.h b/include/sound/jack.h index 218235030ebc..23bede121c78 100644 --- a/include/sound/jack.h +++ b/include/sound/jack.h | |||
@@ -73,6 +73,8 @@ enum snd_jack_types { | |||
73 | 73 | ||
74 | struct snd_jack { | 74 | struct snd_jack { |
75 | struct input_dev *input_dev; | 75 | struct input_dev *input_dev; |
76 | struct list_head kctl_list; | ||
77 | struct snd_card *card; | ||
76 | int registered; | 78 | int registered; |
77 | int type; | 79 | int type; |
78 | const char *id; | 80 | const char *id; |
@@ -85,7 +87,8 @@ struct snd_jack { | |||
85 | #ifdef CONFIG_SND_JACK | 87 | #ifdef CONFIG_SND_JACK |
86 | 88 | ||
87 | int snd_jack_new(struct snd_card *card, const char *id, int type, | 89 | int snd_jack_new(struct snd_card *card, const char *id, int type, |
88 | struct snd_jack **jack); | 90 | struct snd_jack **jack, bool initial_kctl, bool phantom_jack); |
91 | int snd_jack_add_new_kctl(struct snd_jack *jack, const char * name, int mask); | ||
89 | void snd_jack_set_parent(struct snd_jack *jack, struct device *parent); | 92 | void snd_jack_set_parent(struct snd_jack *jack, struct device *parent); |
90 | int snd_jack_set_key(struct snd_jack *jack, enum snd_jack_types type, | 93 | int snd_jack_set_key(struct snd_jack *jack, enum snd_jack_types type, |
91 | int keytype); | 94 | int keytype); |
@@ -93,9 +96,13 @@ int snd_jack_set_key(struct snd_jack *jack, enum snd_jack_types type, | |||
93 | void snd_jack_report(struct snd_jack *jack, int status); | 96 | void snd_jack_report(struct snd_jack *jack, int status); |
94 | 97 | ||
95 | #else | 98 | #else |
96 | |||
97 | static inline int snd_jack_new(struct snd_card *card, const char *id, int type, | 99 | static inline int snd_jack_new(struct snd_card *card, const char *id, int type, |
98 | struct snd_jack **jack) | 100 | struct snd_jack **jack, bool initial_kctl, bool phantom_jack) |
101 | { | ||
102 | return 0; | ||
103 | } | ||
104 | |||
105 | static inline int snd_jack_add_new_kctl(struct snd_jack *jack, const char * name, int mask) | ||
99 | { | 106 | { |
100 | return 0; | 107 | return 0; |
101 | } | 108 | } |