diff options
author | Takashi Iwai <tiwai@suse.de> | 2006-08-23 19:53:28 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-09-23 10:44:12 +0200 |
commit | 1186ed8c7dc9c0185e783beddf241509cc224f1a (patch) | |
tree | f24bf18a5d860ab9a4655c6bc8f67a6eb4a2b667 /sound/pcmcia/vx | |
parent | c6ff77f71fe692fa48fe02dbfe74a01f3d5e55e2 (diff) | |
download | kernel_samsung_smdk4412-1186ed8c7dc9c0185e783beddf241509cc224f1a.tar.gz kernel_samsung_smdk4412-1186ed8c7dc9c0185e783beddf241509cc224f1a.tar.bz2 kernel_samsung_smdk4412-1186ed8c7dc9c0185e783beddf241509cc224f1a.zip |
[ALSA] Add dB scale information to vxpocket and vx222 drivers
Added the dB scale information to vxpocket and vx222 drivers.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pcmcia/vx')
-rw-r--r-- | sound/pcmcia/vx/vxpocket.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pcmcia/vx/vxpocket.c b/sound/pcmcia/vx/vxpocket.c index 76c85cffb40..3089fcca800 100644 --- a/sound/pcmcia/vx/vxpocket.c +++ b/sound/pcmcia/vx/vxpocket.c @@ -27,6 +27,7 @@ #include <pcmcia/ciscode.h> #include <pcmcia/cisreg.h> #include <sound/initval.h> +#include <sound/tlv.h> /* */ @@ -90,6 +91,8 @@ static int snd_vxpocket_dev_free(struct snd_device *device) * Only output levels can be modified */ +static DECLARE_TLV_DB_SCALE(db_scale_old_vol, -11350, 50, 0); + static struct snd_vx_hardware vxpocket_hw = { .name = "VXPocket", .type = VX_TYPE_VXPOCKET, @@ -99,6 +102,7 @@ static struct snd_vx_hardware vxpocket_hw = { .num_ins = 1, .num_outs = 1, .output_level_max = VX_ANALOG_OUT_LEVEL_MAX, + .output_level_db_scale = db_scale_old_vol, }; /* VX-pocket 440 @@ -120,6 +124,7 @@ static struct snd_vx_hardware vxp440_hw = { .num_ins = 2, .num_outs = 2, .output_level_max = VX_ANALOG_OUT_LEVEL_MAX, + .output_level_db_scale = db_scale_old_vol, }; |