Changeset 772 for GPL/trunk/alsa-kernel/include/sound/control.h
- Timestamp:
- Apr 19, 2025, 8:08:37 PM (4 months ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-6.6-LTS (added) merged: 765,768-769 /GPL/branches/uniaud32-exp (added) merged: 735-741,743-744,748-751,753-760,762-764 /GPL/branches/uniaud32-next merged: 718-734
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/include/sound/control.h
r695 r772 24 24 25 25 /* internal flag for skipping validations */ 26 #ifdef CONFIG_SND_CTL_ VALIDATION26 #ifdef CONFIG_SND_CTL_DEBUG 27 27 #define SNDRV_CTL_ELEM_ACCESS_SKIP_CHECK (1 << 24) 28 28 #define snd_ctl_skip_validation(info) \ … … 110 110 wait_queue_head_t change_sleep; 111 111 spinlock_t read_lock; 112 struct fasync_struct*fasync;112 struct snd_fasync *fasync; 113 113 int subscribed; /* read interface is activated */ 114 114 struct list_head events; /* waiting events for read */ … … 139 139 int snd_ctl_remove_id(struct snd_card * card, struct snd_ctl_elem_id *id); 140 140 int snd_ctl_rename_id(struct snd_card * card, struct snd_ctl_elem_id *src_id, struct snd_ctl_elem_id *dst_id); 141 void snd_ctl_rename(struct snd_card *card, struct snd_kcontrol *kctl, const char *name); 141 142 int snd_ctl_activate_id(struct snd_card *card, struct snd_ctl_elem_id *id, int active); 142 struct snd_kcontrol *snd_ctl_find_numid(struct snd_card * card, unsigned int numid); 143 struct snd_kcontrol *snd_ctl_find_id(struct snd_card * card, struct snd_ctl_elem_id *id); 143 struct snd_kcontrol *snd_ctl_find_numid_locked(struct snd_card *card, unsigned int numid); 144 struct snd_kcontrol *snd_ctl_find_numid(struct snd_card *card, unsigned int numid); 145 struct snd_kcontrol *snd_ctl_find_id_locked(struct snd_card *card, const struct snd_ctl_elem_id *id); 146 struct snd_kcontrol *snd_ctl_find_id(struct snd_card *card, const struct snd_ctl_elem_id *id); 147 148 /** 149 * snd_ctl_find_id_mixer - find the control instance with the given name string 150 * @card: the card instance 151 * @name: the name string 152 * 153 * Finds the control instance with the given name and 154 * @SNDRV_CTL_ELEM_IFACE_MIXER. Other fields are set to zero. 155 * 156 * This is merely a wrapper to snd_ctl_find_id(). 157 * 158 * Return: The pointer of the instance if found, or %NULL if not. 159 */ 160 static inline struct snd_kcontrol * 161 snd_ctl_find_id_mixer(struct snd_card *card, const char *name) 162 { 163 struct snd_ctl_elem_id id = {0}; 164 165 id.iface = SNDRV_CTL_ELEM_IFACE_MIXER; 166 strscpy(id.name, name, sizeof(id.name)); 167 return snd_ctl_find_id(card, &id); 168 } 144 169 145 170 int snd_ctl_create(struct snd_card *card); … … 237 262 return _snd_ctl_add_follower(master, follower, 0); 238 263 } 264 265 int snd_ctl_add_followers(struct snd_card *card, struct snd_kcontrol *master, 266 const char * const *list); 239 267 240 268 /**
Note:
See TracChangeset
for help on using the changeset viewer.