From a55874cfe815bd8c5d04407b85bfef5f9aa9cb88 Mon Sep 17 00:00:00 2001 From: Trent Piepho Date: Thu, 6 Sep 2007 23:02:25 -0300 Subject: [PATCH] --- yaml --- r: 72019 b: refs/heads/master c: bbaccc04459d5cedb342228084223143fbc285e5 h: refs/heads/master i: 72017: 2e50beef6a0656f0cd6512a1babae079810129ae 72015: d052bce597374ebb2788add06abc0cf64a60424b v: v3 --- [refs] | 2 +- trunk/drivers/media/video/cx88/cx88-alsa.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index d4c9f60b6014..62907d19e6ec 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 54ac005adcda1a9e4566df6fa87acd4a1c135b80 +refs/heads/master: bbaccc04459d5cedb342228084223143fbc285e5 diff --git a/trunk/drivers/media/video/cx88/cx88-alsa.c b/trunk/drivers/media/video/cx88/cx88-alsa.c index 6cf8609588a5..40ffd7a5579a 100644 --- a/trunk/drivers/media/video/cx88/cx88-alsa.c +++ b/trunk/drivers/media/video/cx88/cx88-alsa.c @@ -39,6 +39,7 @@ #include #include #include +#include #include "cx88.h" #include "cx88-reg.h" @@ -605,12 +606,17 @@ static int snd_cx88_volume_put(struct snd_kcontrol *kcontrol, return changed; } +static const DECLARE_TLV_DB_SCALE(snd_cx88_db_scale, -6300, 100, 0); + static struct snd_kcontrol_new snd_cx88_volume = { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, + .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | + SNDRV_CTL_ELEM_ACCESS_TLV_READ, .name = "Playback Volume", .info = snd_cx88_volume_info, .get = snd_cx88_volume_get, .put = snd_cx88_volume_put, + .tlv.p = snd_cx88_db_scale, }; static int snd_cx88_switch_get(struct snd_kcontrol *kcontrol,