Fixed the number of control inputs for simple mixer. Contributed by Thomas Gubler

This commit is contained in:
Lorenz Meier 2012-11-10 17:21:13 +01:00
parent b43f692d3a
commit ee5abb0745
1 changed files with 1 additions and 0 deletions

View File

@ -168,6 +168,7 @@ mixer_load_simple(Mixer::ControlCallback control_cb, uintptr_t cb_handle, int fd
/* let's assume we're going to read a simple mixer */ /* let's assume we're going to read a simple mixer */
mixinfo = (mixer_simple_s *)malloc(MIXER_SIMPLE_SIZE(inputs)); mixinfo = (mixer_simple_s *)malloc(MIXER_SIMPLE_SIZE(inputs));
mixinfo->control_count = inputs;
/* first, get the output scaler */ /* first, get the output scaler */
ret = mixer_getline(fd, buf, sizeof(buf)); ret = mixer_getline(fd, buf, sizeof(buf));