mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
Fixed return codes (added EPIPE).
This commit is contained in:
parent
022addf761
commit
4637dfaa3e
2 changed files with 42 additions and 7 deletions
|
|
@ -74,7 +74,7 @@ static int query_playback(struct mmap_private_data *data,
|
|||
}
|
||||
break;
|
||||
case SND_PCM_STATUS_UNDERRUN:
|
||||
return -EAGAIN;
|
||||
return -EPIPE;
|
||||
default:
|
||||
return -EIO;
|
||||
}
|
||||
|
|
@ -116,7 +116,7 @@ static int query_capture(struct mmap_private_data *data,
|
|||
}
|
||||
break;
|
||||
case SND_PCM_STATUS_OVERRUN:
|
||||
return -EAGAIN;
|
||||
return -EPIPE;
|
||||
default:
|
||||
return -EIO;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue