OSDN Git Service

Fixed missing stream setting
authorAbramo Bagnara <abramo@alsa-project.org>
Mon, 12 Jun 2000 21:55:47 +0000 (21:55 +0000)
committerAbramo Bagnara <abramo@alsa-project.org>
Mon, 12 Jun 2000 21:55:47 +0000 (21:55 +0000)
src/pcm/pcm.c

index 0ce3a34..882acf0 100644 (file)
@@ -168,6 +168,7 @@ int snd_pcm_stream_setup(snd_pcm_t *pcm, snd_pcm_stream_setup_t *setup)
                *setup = str->setup;
                return 0;
        }
+       str->setup.stream = setup->stream;
        if ((err = pcm->ops->stream_setup(pcm, &str->setup)) < 0)
                return err;
        *setup = str->setup;