diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-03-06 14:41:13 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2009-03-06 14:41:13 +0100 |
commit | c27f8418ab28efbbf2ccf9384c59bc31d1497a56 (patch) | |
tree | 95be5a6efd625b05aa7f3698ce685b0f683e87f6 /linux/drivers/media/video | |
parent | af06f2cdff1ca6217d3a46fe988e3704125b106d (diff) | |
download | mediapointer-dvb-s2-c27f8418ab28efbbf2ccf9384c59bc31d1497a56.tar.gz mediapointer-dvb-s2-c27f8418ab28efbbf2ccf9384c59bc31d1497a56.tar.bz2 |
cx88-alsa: fix compile warning for kernels <=2.6.20.
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-alsa.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-alsa.c b/linux/drivers/media/video/cx88/cx88-alsa.c index f7171586d..1e78faba6 100644 --- a/linux/drivers/media/video/cx88/cx88-alsa.c +++ b/linux/drivers/media/video/cx88/cx88-alsa.c @@ -657,8 +657,12 @@ static int snd_cx88_volume_put(struct snd_kcontrol *kcontrol, return changed; } -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 21) static const DECLARE_TLV_DB_SCALE(snd_cx88_db_scale, -6300, 100, 0); +#else +static DECLARE_TLV_DB_SCALE(snd_cx88_db_scale, -6300, 100, 0); +#endif #endif static struct snd_kcontrol_new snd_cx88_volume = { |