diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-22 14:56:01 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-23 06:54:58 -0400 |
commit | aea629c1261f9a8ba06a8ee93b45ac5bd4475943 (patch) | |
tree | 6e5c282ec4750bcca365f7dd09838a2c4c080ecf | |
parent | 0df305eb50e5dc447ddb9eab71bc7394cb9e76e4 (diff) |
media: cx88: fix two warnings
drivers/media/pci/cx88/cx88-alsa.c:295 cx88_alsa_dma_init() warn: argument 3 to %08lx specifier is cast from pointer
drivers/media/pci/cx88/cx88-alsa.c:669 snd_cx88_wm8775_volume_put() warn: potential negative subtraction from max '65535 - (32768 * left) / right'
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r-- | drivers/media/pci/cx88/cx88-alsa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/pci/cx88/cx88-alsa.c b/drivers/media/pci/cx88/cx88-alsa.c index 9740326bc93f..ab09bb55cf45 100644 --- a/drivers/media/pci/cx88/cx88-alsa.c +++ b/drivers/media/pci/cx88/cx88-alsa.c | |||
@@ -292,8 +292,8 @@ static int cx88_alsa_dma_init(struct cx88_audio_dev *chip, int nr_pages) | |||
292 | return -ENOMEM; | 292 | return -ENOMEM; |
293 | } | 293 | } |
294 | 294 | ||
295 | dprintk(1, "vmalloc is at addr 0x%08lx, size=%d\n", | 295 | dprintk(1, "vmalloc is at addr %p, size=%d\n", |
296 | (unsigned long)buf->vaddr, nr_pages << PAGE_SHIFT); | 296 | buf->vaddr, nr_pages << PAGE_SHIFT); |
297 | 297 | ||
298 | memset(buf->vaddr, 0, nr_pages << PAGE_SHIFT); | 298 | memset(buf->vaddr, 0, nr_pages << PAGE_SHIFT); |
299 | buf->nr_pages = nr_pages; | 299 | buf->nr_pages = nr_pages; |
@@ -656,8 +656,8 @@ static void snd_cx88_wm8775_volume_put(struct snd_kcontrol *kcontrol, | |||
656 | { | 656 | { |
657 | struct cx88_audio_dev *chip = snd_kcontrol_chip(kcontrol); | 657 | struct cx88_audio_dev *chip = snd_kcontrol_chip(kcontrol); |
658 | struct cx88_core *core = chip->core; | 658 | struct cx88_core *core = chip->core; |
659 | int left = value->value.integer.value[0]; | 659 | u16 left = value->value.integer.value[0]; |
660 | int right = value->value.integer.value[1]; | 660 | u16 right = value->value.integer.value[1]; |
661 | int v, b; | 661 | int v, b; |
662 | 662 | ||
663 | /* Pass volume & balance onto any WM8775 */ | 663 | /* Pass volume & balance onto any WM8775 */ |