diff options
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/vmaster.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sound/core/vmaster.c b/sound/core/vmaster.c index d51b198d06d9..257624bd1997 100644 --- a/sound/core/vmaster.c +++ b/sound/core/vmaster.c | |||
@@ -340,8 +340,20 @@ static void master_free(struct snd_kcontrol *kcontrol) | |||
340 | } | 340 | } |
341 | 341 | ||
342 | 342 | ||
343 | /* | 343 | /** |
344 | * Create a virtual master control with the given name | 344 | * snd_ctl_make_virtual_master - Create a virtual master control |
345 | * @name: name string of the control element to create | ||
346 | * @tlv: optional TLV int array for dB information | ||
347 | * | ||
348 | * Creates a virtual matster control with the given name string. | ||
349 | * Returns the created control element, or NULL for errors (ENOMEM). | ||
350 | * | ||
351 | * After creating a vmaster element, you can add the slave controls | ||
352 | * via snd_ctl_add_slave() or snd_ctl_add_slave_uncached(). | ||
353 | * | ||
354 | * The optional argument @tlv can be used to specify the TLV information | ||
355 | * for dB scale of the master control. It should be a single element | ||
356 | * with #SNDRV_CTL_TLVT_DB_SCALE type, and should be the max 0dB. | ||
345 | */ | 357 | */ |
346 | struct snd_kcontrol *snd_ctl_make_virtual_master(char *name, | 358 | struct snd_kcontrol *snd_ctl_make_virtual_master(char *name, |
347 | const unsigned int *tlv) | 359 | const unsigned int *tlv) |