diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2005-04-06 03:43:59 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-05-29 03:58:15 -0400 |
commit | 0aa0d387877e8e6408d316aaee1ea84f8e1fb447 (patch) | |
tree | 3e4eff5571123a0b2577ab9418a3a2d6b0ba3a33 /sound/core | |
parent | c1935b4d6edf1c4d78bf660992d00b2d8fcb9b59 (diff) |
[ALSA] virmidi - fix ioctl parameter passing when creating seq port
ALSA sequencer
The last change to reduce stack usage did not adjust the parameter to
SNDRV_SEQ_IOCTL_CREATE_PORT which resulted in passing the address of
the pointer instead of the structure.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/seq/seq_virmidi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/seq/seq_virmidi.c b/sound/core/seq/seq_virmidi.c index 6b4e630ace54..1274ab4546bc 100644 --- a/sound/core/seq/seq_virmidi.c +++ b/sound/core/seq/seq_virmidi.c | |||
@@ -405,7 +405,7 @@ static int snd_virmidi_dev_attach_seq(snd_virmidi_dev_t *rdev) | |||
405 | pcallbacks.unuse = snd_virmidi_unuse; | 405 | pcallbacks.unuse = snd_virmidi_unuse; |
406 | pcallbacks.event_input = snd_virmidi_event_input; | 406 | pcallbacks.event_input = snd_virmidi_event_input; |
407 | pinfo->kernel = &pcallbacks; | 407 | pinfo->kernel = &pcallbacks; |
408 | err = snd_seq_kernel_client_ctl(client, SNDRV_SEQ_IOCTL_CREATE_PORT, &pinfo); | 408 | err = snd_seq_kernel_client_ctl(client, SNDRV_SEQ_IOCTL_CREATE_PORT, pinfo); |
409 | if (err < 0) { | 409 | if (err < 0) { |
410 | snd_seq_delete_kernel_client(client); | 410 | snd_seq_delete_kernel_client(client); |
411 | rdev->client = -1; | 411 | rdev->client = -1; |