Changeset 426 for GPL/trunk/alsa-kernel/include/sound/control.h
- Timestamp:
- May 9, 2009, 11:45:26 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/include/sound/control.h
r410 r426 184 184 #define SND_CTL_SLAVE_NEED_UPDATE (1 << 0) 185 185 186 /** 187 * snd_ctl_add_slave - Add a virtual slave control 188 * @master: vmaster element 189 * @slave: slave element to add 190 * 191 * Add a virtual slave control to the given master element created via 192 * snd_ctl_create_virtual_master() beforehand. 193 * Returns zero if successful or a negative error code. 194 * 195 * All slaves must be the same type (returning the same information 196 * via info callback). The fucntion doesn't check it, so it's your 197 * responsibility. 198 * 199 * Also, some additional limitations: 200 * at most two channels, 201 * logarithmic volume control (dB level) thus no linear volume, 202 * master can only attenuate the volume without gain 203 */ 186 204 static inline int 187 205 snd_ctl_add_slave(struct snd_kcontrol *master, struct snd_kcontrol *slave) … … 190 208 } 191 209 210 /** 211 * snd_ctl_add_slave_uncached - Add a virtual slave control 212 * @master: vmaster element 213 * @slave: slave element to add 214 * 215 * Add a virtual slave control to the given master. 216 * Unlike snd_ctl_add_slave(), the element added via this function 217 * is supposed to have volatile values, and get callback is called 218 * at each time quried from the master. 219 * 220 * When the control peeks the hardware values directly and the value 221 * can be changed by other means than the put callback of the element, 222 * this function should be used to keep the value always up-to-date. 223 */ 192 224 static inline int 193 225 snd_ctl_add_slave_uncached(struct snd_kcontrol *master,
Note:
See TracChangeset
for help on using the changeset viewer.