]> git.alsa-project.org Git - alsa-tools.git/commitdiff
Fixed against latest driver (changed firmware ioctl)
authorJaroslav Kysela <perex@perex.cz>
Thu, 25 Sep 2003 19:48:28 +0000 (19:48 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 25 Sep 2003 19:48:28 +0000 (19:48 +0000)
hdsploader/hdsploader.c

index 70c23d868a72bab41f5ba2e23cc5e7a1aa211a17..49e06878f9ba42622ac1ee1afc21efdb12c89d99 100644 (file)
@@ -78,9 +78,7 @@ void upload_firmware(int card)
        return;
     }  
     
-    for (i = 0; i < 24413; ++i) {
-       firmware.firmware_data[i] = fw[i];
-    }
+    firmware.firmware_data = fw;
     
     if ((err = snd_hwdep_ioctl(hw, SNDRV_HDSP_IOCTL_UPLOAD_FIRMWARE, &firmware)) < 0) {
        fprintf(stderr, "Hwdep ioctl error on card %s : %s.\n", card_name, snd_strerror(err));