summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux/drivers/media/video/cx88/cx88-alsa.c8
-rwxr-xr-x[-rw-r--r--]v4l/scripts/cx23885.pl0
2 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-alsa.c b/linux/drivers/media/video/cx88/cx88-alsa.c
index dab6fbc06..f441193eb 100644
--- a/linux/drivers/media/video/cx88/cx88-alsa.c
+++ b/linux/drivers/media/video/cx88/cx88-alsa.c
@@ -39,7 +39,9 @@
#include <sound/pcm_params.h>
#include <sound/control.h>
#include <sound/initval.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
#include <sound/tlv.h>
+#endif
#include "compat.h"
#include "cx88.h"
@@ -659,17 +661,23 @@ static int snd_cx88_volume_put(struct snd_kcontrol *kcontrol,
return changed;
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
static const DECLARE_TLV_DB_SCALE(snd_cx88_db_scale, -6300, 100, 0);
+#endif
static struct snd_kcontrol_new snd_cx88_volume = {
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE |
SNDRV_CTL_ELEM_ACCESS_TLV_READ,
+#endif
.name = "Playback Volume",
.info = snd_cx88_volume_info,
.get = snd_cx88_volume_get,
.put = snd_cx88_volume_put,
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
.tlv.p = snd_cx88_db_scale,
+#endif
};
static int snd_cx88_switch_get(struct snd_kcontrol *kcontrol,
diff --git a/v4l/scripts/cx23885.pl b/v4l/scripts/cx23885.pl
index 4b3c57c86..4b3c57c86 100644..100755
--- a/v4l/scripts/cx23885.pl
+++ b/v4l/scripts/cx23885.pl