Steve Muckle | 0a9c087 | 2022-02-16 05:58:07 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
| 2 | * Copyright (C) 2018 Cadence Design Systems, Inc. |
| 3 | * |
| 4 | * Permission is hereby granted, free of charge, to any person obtaining |
| 5 | * a copy of this software and associated documentation files (the |
| 6 | * "Software"), to use this Software with Cadence processor cores only and |
| 7 | * not with any other processors and platforms, subject to |
| 8 | * the following conditions: |
| 9 | * |
| 10 | * The above copyright notice and this permission notice shall be included |
| 11 | * in all copies or substantial portions of the Software. |
| 12 | * |
| 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 14 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 15 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 16 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 17 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| 18 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| 19 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 20 | |
| 21 | ******************************************************************************/ |
| 22 | |
| 23 | enum xa_playback_error { |
| 24 | XA_PLAYBACK_OK = 0, |
| 25 | XA_PLAYBACK_INVALID_PARAM = -1, |
| 26 | XA_PLAYBACK_UNDERRUN = -2, |
| 27 | }; |
| 28 | |
| 29 | void *xa_playback_open(unsigned int card, |
| 30 | unsigned int device, |
| 31 | unsigned int channels, |
| 32 | unsigned int rate, |
| 33 | unsigned int bits, |
| 34 | unsigned int period_size, |
| 35 | unsigned int period_count); |
| 36 | |
| 37 | int xa_playback_buf(void *handle, |
| 38 | const void *data, |
| 39 | unsigned int nbytes); |
| 40 | |
| 41 | int xa_playback_close(void *handle); |
| 42 | |