diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2005-04-08 02:25:23 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-05-29 03:58:40 -0400 |
commit | 22e0732e59b3482bb2f068bfe911c532767e5974 (patch) | |
tree | 924cf272599a6d65fc483eca439aa3efa9f27047 /sound/core | |
parent | 23fea4dad67a665e8d359dbb39180422385f1dcc (diff) |
[ALSA] virmidi - fix ioctl parameter passing when setting client name
ALSA sequencer
The last change to reduce stack usage did not adjust the parameter to
SNDRV_SEQ_IOCTL_SET_CLIENT_IOCTL 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 1274ab4546bc..58c56a198d2a 100644 --- a/sound/core/seq/seq_virmidi.c +++ b/sound/core/seq/seq_virmidi.c | |||
@@ -384,7 +384,7 @@ static int snd_virmidi_dev_attach_seq(snd_virmidi_dev_t *rdev) | |||
384 | info->client = client; | 384 | info->client = client; |
385 | info->type = KERNEL_CLIENT; | 385 | info->type = KERNEL_CLIENT; |
386 | sprintf(info->name, "%s %d-%d", rdev->rmidi->name, rdev->card->number, rdev->device); | 386 | sprintf(info->name, "%s %d-%d", rdev->rmidi->name, rdev->card->number, rdev->device); |
387 | snd_seq_kernel_client_ctl(client, SNDRV_SEQ_IOCTL_SET_CLIENT_INFO, &info); | 387 | snd_seq_kernel_client_ctl(client, SNDRV_SEQ_IOCTL_SET_CLIENT_INFO, info); |
388 | 388 | ||
389 | /* create a port */ | 389 | /* create a port */ |
390 | memset(pinfo, 0, sizeof(*pinfo)); | 390 | memset(pinfo, 0, sizeof(*pinfo)); |