diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-05-18 10:52:25 +0000 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2005-05-18 10:52:25 +0000 |
commit | e0d5051e2295287e4c599bf2f1b7b88f1225d533 (patch) | |
tree | eb76133bb50728ebafcab23e7939f174c2de75c4 | |
parent | 7b56db21830a51fa5287f4477e8ba4949c178162 (diff) |
Fill the new "version" field
Fill the new "version" field at initialization.
-rw-r--r-- | pcm/jack/pcm_jack.c | 1 | ||||
-rw-r--r-- | pcm/oss/pcm_oss.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/pcm/jack/pcm_jack.c b/pcm/jack/pcm_jack.c index f6d5c17..a10ed14 100644 --- a/pcm/jack/pcm_jack.c +++ b/pcm/jack/pcm_jack.c @@ -360,6 +360,7 @@ static int snd_pcm_jack_open(snd_pcm_t **pcmp, const char *name, jack->fd = fd[0]; + jack->io.version = SND_PCM_IOPLUG_VERSION; jack->io.name = "ALSA <-> JACK PCM I/O Plugin"; jack->io.callback = &jack_pcm_callback; jack->io.private_data = jack; diff --git a/pcm/oss/pcm_oss.c b/pcm/oss/pcm_oss.c index f84564f..fb520f8 100644 --- a/pcm/oss/pcm_oss.c +++ b/pcm/oss/pcm_oss.c @@ -390,6 +390,8 @@ SND_PCM_PLUGIN_DEFINE_FUNC(oss) SNDERR("Cannot open device %s", device); goto error; } + + oss->io.version = SND_PCM_IOPLUG_VERSION; oss->io.name = "ALSA <-> OSS PCM I/O Plugin"; oss->io.poll_fd = oss->fd; oss->io.poll_events = stream == SND_PCM_STREAM_PLAYBACK ? POLLOUT : POLLIN; |