aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pcmcia
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pcmcia')
-rw-r--r--sound/pcmcia/vx/vxp_mixer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/pcmcia/vx/vxp_mixer.c b/sound/pcmcia/vx/vxp_mixer.c
index e237f6c2018f..bced7b623b12 100644
--- a/sound/pcmcia/vx/vxp_mixer.c
+++ b/sound/pcmcia/vx/vxp_mixer.c
@@ -23,6 +23,7 @@
23#include <sound/driver.h> 23#include <sound/driver.h>
24#include <sound/core.h> 24#include <sound/core.h>
25#include <sound/control.h> 25#include <sound/control.h>
26#include <sound/tlv.h>
26#include "vxpocket.h" 27#include "vxpocket.h"
27 28
28#define MIC_LEVEL_MIN 0 29#define MIC_LEVEL_MIN 0
@@ -63,12 +64,17 @@ static int vx_mic_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_v
63 return 0; 64 return 0;
64} 65}
65 66
67static DECLARE_TLV_DB_SCALE(db_scale_mic, -21, 3, 0);
68
66static struct snd_kcontrol_new vx_control_mic_level = { 69static struct snd_kcontrol_new vx_control_mic_level = {
67 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 70 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
71 .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE |
72 SNDRV_CTL_ELEM_ACCESS_TLV_READ),
68 .name = "Mic Capture Volume", 73 .name = "Mic Capture Volume",
69 .info = vx_mic_level_info, 74 .info = vx_mic_level_info,
70 .get = vx_mic_level_get, 75 .get = vx_mic_level_get,
71 .put = vx_mic_level_put, 76 .put = vx_mic_level_put,
77 .tlv = { .p = db_scale_mic },
72}; 78};
73 79
74/* 80/*