aboutsummaryrefslogtreecommitdiff
path: root/sound/firewire
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2011-05-11 10:49:02 +0200
committerTakashi Iwai <tiwai@suse.de>2011-05-11 14:51:16 +0200
commitf2934cd499ba2c7f605787508b4cfcfa3a45b0a4 (patch)
tree070775d70eed4780c461323b59fcb2626e0b46e7 /sound/firewire
parent898732d1f1c7181fd3e94e7d7a784edb48d09d95 (diff)
ALSA: isight: fix divide error when queueing packets
Set the .header_size field when queueing packets to avoid a division by zero. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire')
-rw-r--r--sound/firewire/isight.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/firewire/isight.c b/sound/firewire/isight.c
index 4e334919a70..10a9b9b0b2c 100644
--- a/sound/firewire/isight.c
+++ b/sound/firewire/isight.c
@@ -82,6 +82,7 @@ MODULE_LICENSE("GPL v2");
static struct fw_iso_packet audio_packet = {
.payload_length = sizeof(struct audio_payload),
.interrupt = 1,
+ .header_length = 4,
};
static void isight_update_pointers(struct isight *isight, unsigned int count)