Lines Matching defs:chip
33 int snd_vx_setup_firmware(struct vx_core *chip)
58 if (! fw_files[chip->type][i])
60 sprintf(path, "vx/%s", fw_files[chip->type][i]);
61 if (request_firmware(&fw, path, chip->dev)) {
65 err = chip->ops->load_dsp(chip, i, fw);
71 chip->chip_status |= VX_STAT_XILINX_LOADED;
73 chip->firmware[i] = fw;
81 if ((err = snd_vx_pcm_new(chip)) < 0)
84 if ((err = snd_vx_mixer_new(chip)) < 0)
87 if (chip->ops->add_controls)
88 if ((err = chip->ops->add_controls(chip)) < 0)
91 chip->chip_status |= VX_STAT_DEVICE_INIT;
92 chip->chip_status |= VX_STAT_CHIP_INIT;
94 return snd_card_register(chip->card);
98 void snd_vx_free_firmware(struct vx_core *chip)
103 release_firmware(chip->firmware[i]);