mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-03-15 05:33:48 -04:00
Various fixes to ld10k1
Various fixes by Tim <terminator356@users.sourceforge.net>: - Now loads as10k1 bin patch files from ALSA alsa-tools AND from EMU1roject emu-utils. - Fixed init_live bug. - Fixed bug in liblo10k1.c liblo10k1_patch_get().
This commit is contained in:
parent
37fccff016
commit
700edf08b4
8 changed files with 48 additions and 25 deletions
|
|
@ -856,19 +856,6 @@ int liblo10k1_patch_get(liblo10k1_connection_t *conn, int patch_num, liblo10k1_d
|
|||
goto err_nomem;
|
||||
}
|
||||
|
||||
/* ctls */
|
||||
if (patch->ctl_count) {
|
||||
if ((err = receive_response(*conn, &opr, &sizer)) < 0)
|
||||
return err;
|
||||
|
||||
if (opr != FNC_CONTINUE || (unsigned int)sizer != patch->ctl_count * sizeof(liblo10k1_dsp_ctl_t))
|
||||
goto err_protocol;
|
||||
|
||||
patch->ctl = (liblo10k1_dsp_ctl_t *)receive_msg_data_malloc(*conn, sizer);
|
||||
if (!patch->ctl)
|
||||
goto err_nomem;
|
||||
}
|
||||
|
||||
/* tram grp */
|
||||
if (patch->tram_count) {
|
||||
if ((err = receive_response(*conn, &opr, &sizer)) < 0)
|
||||
|
|
@ -895,6 +882,19 @@ int liblo10k1_patch_get(liblo10k1_connection_t *conn, int patch_num, liblo10k1_d
|
|||
goto err_nomem;
|
||||
}
|
||||
|
||||
/* ctls */
|
||||
if (patch->ctl_count) {
|
||||
if ((err = receive_response(*conn, &opr, &sizer)) < 0)
|
||||
return err;
|
||||
|
||||
if (opr != FNC_CONTINUE || (unsigned int)sizer != patch->ctl_count * sizeof(liblo10k1_dsp_ctl_t))
|
||||
goto err_protocol;
|
||||
|
||||
patch->ctl = (liblo10k1_dsp_ctl_t *)receive_msg_data_malloc(*conn, sizer);
|
||||
if (!patch->ctl)
|
||||
goto err_nomem;
|
||||
}
|
||||
|
||||
/* instr */
|
||||
if (patch->instr_count) {
|
||||
if ((err = receive_response(*conn, &opr, &sizer)) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue