mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Fixed frame_data behaviour
This commit is contained in:
parent
73a9e4c943
commit
d379686996
1 changed files with 2 additions and 3 deletions
|
|
@ -139,9 +139,8 @@ ssize_t snd_pcm_mmap_frame_data(snd_pcm_t *handle, off_t offset)
|
|||
if (handle->setup.mode == SND_PCM_MODE_FRAME)
|
||||
snd_pcm_frame_io(handle, 1);
|
||||
break;
|
||||
case SND_PCM_STATE_PREPARED:
|
||||
break;
|
||||
default:
|
||||
case SND_PCM_STATE_READY:
|
||||
case SND_PCM_STATE_NOTREADY:
|
||||
return -EBADFD;
|
||||
}
|
||||
if (offset < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue