@@ -188,20 +188,21 @@ int snd_ctl_enum_info(struct snd_ctl_elem_info *info, unsigned int channels,
188
188
*/
189
189
struct snd_kcontrol * snd_ctl_make_virtual_master (char * name ,
190
190
const unsigned int * tlv );
191
- int _snd_ctl_add_slave (struct snd_kcontrol * master , struct snd_kcontrol * slave ,
192
- unsigned int flags );
193
- /* optional flags for slave */
194
- #define SND_CTL_SLAVE_NEED_UPDATE (1 << 0)
191
+ int _snd_ctl_add_follower (struct snd_kcontrol * master ,
192
+ struct snd_kcontrol * follower ,
193
+ unsigned int flags );
194
+ /* optional flags for follower */
195
+ #define SND_CTL_FOLLOWER_NEED_UPDATE (1 << 0)
195
196
196
197
/**
197
- * snd_ctl_add_slave - Add a virtual slave control
198
+ * snd_ctl_add_follower - Add a virtual follower control
198
199
* @master: vmaster element
199
- * @slave: slave element to add
200
+ * @follower: follower element to add
200
201
*
201
- * Add a virtual slave control to the given master element created via
202
+ * Add a virtual follower control to the given master element created via
202
203
* snd_ctl_create_virtual_master() beforehand.
203
204
*
204
- * All slaves must be the same type (returning the same information
205
+ * All followers must be the same type (returning the same information
205
206
* via info callback). The function doesn't check it, so it's your
206
207
* responsibility.
207
208
*
@@ -213,18 +214,18 @@ int _snd_ctl_add_slave(struct snd_kcontrol *master, struct snd_kcontrol *slave,
213
214
* Return: Zero if successful or a negative error code.
214
215
*/
215
216
static inline int
216
- snd_ctl_add_slave (struct snd_kcontrol * master , struct snd_kcontrol * slave )
217
+ snd_ctl_add_follower (struct snd_kcontrol * master , struct snd_kcontrol * follower )
217
218
{
218
- return _snd_ctl_add_slave (master , slave , 0 );
219
+ return _snd_ctl_add_follower (master , follower , 0 );
219
220
}
220
221
221
222
/**
222
- * snd_ctl_add_slave_uncached - Add a virtual slave control
223
+ * snd_ctl_add_follower_uncached - Add a virtual follower control
223
224
* @master: vmaster element
224
- * @slave: slave element to add
225
+ * @follower: follower element to add
225
226
*
226
- * Add a virtual slave control to the given master.
227
- * Unlike snd_ctl_add_slave (), the element added via this function
227
+ * Add a virtual follower control to the given master.
228
+ * Unlike snd_ctl_add_follower (), the element added via this function
228
229
* is supposed to have volatile values, and get callback is called
229
230
* at each time queried from the master.
230
231
*
@@ -235,22 +236,22 @@ snd_ctl_add_slave(struct snd_kcontrol *master, struct snd_kcontrol *slave)
235
236
* Return: Zero if successful or a negative error code.
236
237
*/
237
238
static inline int
238
- snd_ctl_add_slave_uncached (struct snd_kcontrol * master ,
239
- struct snd_kcontrol * slave )
239
+ snd_ctl_add_follower_uncached (struct snd_kcontrol * master ,
240
+ struct snd_kcontrol * follower )
240
241
{
241
- return _snd_ctl_add_slave (master , slave , SND_CTL_SLAVE_NEED_UPDATE );
242
+ return _snd_ctl_add_follower (master , follower , SND_CTL_FOLLOWER_NEED_UPDATE );
242
243
}
243
244
244
245
int snd_ctl_add_vmaster_hook (struct snd_kcontrol * kctl ,
245
246
void (* hook )(void * private_data , int ),
246
247
void * private_data );
247
248
void snd_ctl_sync_vmaster (struct snd_kcontrol * kctl , bool hook_only );
248
249
#define snd_ctl_sync_vmaster_hook (kctl ) snd_ctl_sync_vmaster(kctl, true)
249
- int snd_ctl_apply_vmaster_slaves (struct snd_kcontrol * kctl ,
250
- int (* func )(struct snd_kcontrol * vslave ,
251
- struct snd_kcontrol * slave ,
252
- void * arg ),
253
- void * arg );
250
+ int snd_ctl_apply_vmaster_followers (struct snd_kcontrol * kctl ,
251
+ int (* func )(struct snd_kcontrol * vfollower ,
252
+ struct snd_kcontrol * follower ,
253
+ void * arg ),
254
+ void * arg );
254
255
255
256
/*
256
257
* Helper functions for jack-detection controls
0 commit comments