diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2011-05-11 10:49:02 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-05-11 14:51:16 +0200 |
commit | f2934cd499ba2c7f605787508b4cfcfa3a45b0a4 (patch) | |
tree | 070775d70eed4780c461323b59fcb2626e0b46e7 /sound/firewire/isight.c | |
parent | 898732d1f1c7181fd3e94e7d7a784edb48d09d95 (diff) | |
download | linux-f2934cd499ba2c7f605787508b4cfcfa3a45b0a4.tar.gz linux-f2934cd499ba2c7f605787508b4cfcfa3a45b0a4.tar.bz2 linux-f2934cd499ba2c7f605787508b4cfcfa3a45b0a4.zip |
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/isight.c')
-rw-r--r-- | sound/firewire/isight.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/firewire/isight.c b/sound/firewire/isight.c index 4e334919a70f..10a9b9b0b2c2 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) |