Fixed against latest driver (changed firmware ioctl)

This commit is contained in:
Jaroslav Kysela 2003-09-25 19:48:28 +00:00
parent ac8b155791
commit 3e4cffe90a

View file

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