diff options
author | dvdli <dvdli@google.com> | 2021-01-12 14:53:42 +0800 |
---|---|---|
committer | dvdli <dvdli@google.com> | 2021-01-12 15:55:49 +0800 |
commit | 855354a87d2983e190088bc5330c129094b900ca (patch) | |
tree | 40c092f7c992e9c6f83edcaf41e9cb0706698890 /src | |
parent | 565fc0e3da9bf0ccea99eb4386a4890cdba56134 (diff) |
remove pcm_prepare in pcm_open
For the dynamic pcm device, it is valid to specify the backend after
opening it. However, it is invalid to call prepare on a dynamic pcm
device without connecting any backend device. We should not do
pcm_prepare in pcm_open.
See also: Issue #197
Diffstat (limited to 'src')
-rw-r--r-- | src/pcm.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -1101,10 +1101,6 @@ struct pcm *pcm_open(unsigned int card, unsigned int device, } #endif - /* prepare here so the user does not need to do this later */ - if (pcm_prepare(pcm)) - goto fail; - pcm->xruns = 0; return pcm; |