Changeset 4bbfb93 in mainline for uspace/lib/drv/generic/remote_audio_pcm_buffer.c
- Timestamp:
- 2012-07-05T21:06:26Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7364c6ee
- Parents:
- e941bf8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_audio_pcm_buffer.c
re941bf8 r4bbfb93 81 81 return ret; 82 82 } 83 /*----------------------------------------------------------------------------*/ 83 84 84 int audio_pcm_buffer_get_buffer(async_exch_t *exch, void **buffer, size_t *size, 85 85 unsigned *id, async_client_conn_t event_rec, void* arg) … … 110 110 return ret; 111 111 } 112 /*----------------------------------------------------------------------------*/ 112 113 113 int audio_pcm_buffer_release_buffer(async_exch_t *exch, unsigned id) 114 114 { … … 118 118 IPC_M_AUDIO_PCM_RELEASE_BUFFER, id); 119 119 } 120 /*----------------------------------------------------------------------------*/ 120 121 121 int audio_pcm_buffer_start_playback(async_exch_t *exch, unsigned id, 122 122 unsigned parts, unsigned sample_rate, uint16_t sample_size, … … 131 131 IPC_M_AUDIO_PCM_START_PLAYBACK, id, sample_rate, packed); 132 132 } 133 /*----------------------------------------------------------------------------*/ 133 134 134 int audio_pcm_buffer_stop_playback(async_exch_t *exch, unsigned id) 135 135 { … … 139 139 IPC_M_AUDIO_PCM_STOP_PLAYBACK, id); 140 140 } 141 /*----------------------------------------------------------------------------*/ 141 142 142 int audio_pcm_buffer_start_record(async_exch_t *exch, unsigned id, 143 143 unsigned sample_rate, unsigned sample_size, unsigned channels, bool sign) … … 149 149 IPC_M_AUDIO_PCM_START_RECORD, id, sample_rate, packed); 150 150 } 151 /*----------------------------------------------------------------------------*/ 151 152 152 int audio_pcm_buffer_stop_record(async_exch_t *exch, unsigned id) 153 153 { … … 186 186 .methods = remote_audio_pcm_iface_ops 187 187 }; 188 /*----------------------------------------------------------------------------*/ 188 189 189 void remote_audio_pcm_get_info_str(ddf_fun_t *fun, void *iface, 190 190 ipc_callid_t callid, ipc_call_t *call) … … 215 215 } 216 216 } 217 /*----------------------------------------------------------------------------*/ 217 218 218 void remote_audio_pcm_get_buffer(ddf_fun_t *fun, void *iface, 219 219 ipc_callid_t callid, ipc_call_t *call) … … 284 284 } 285 285 } 286 /*----------------------------------------------------------------------------*/ 286 287 287 void remote_audio_pcm_release_buffer(ddf_fun_t *fun, void *iface, 288 288 ipc_callid_t callid, ipc_call_t *call) … … 295 295 async_answer_0(callid, ret); 296 296 } 297 /*----------------------------------------------------------------------------*/ 297 298 298 void remote_audio_pcm_start_playback(ddf_fun_t *fun, void *iface, 299 299 ipc_callid_t callid, ipc_call_t *call) … … 313 313 async_answer_0(callid, ret); 314 314 } 315 /*----------------------------------------------------------------------------*/ 315 316 316 void remote_audio_pcm_stop_playback(ddf_fun_t *fun, void *iface, 317 317 ipc_callid_t callid, ipc_call_t *call) … … 324 324 async_answer_0(callid, ret); 325 325 } 326 /*----------------------------------------------------------------------------*/ 326 327 327 void remote_audio_pcm_start_record(ddf_fun_t *fun, void *iface, 328 328 ipc_callid_t callid, ipc_call_t *call) … … 341 341 async_answer_0(callid, ret); 342 342 } 343 /*----------------------------------------------------------------------------*/ 343 344 344 void remote_audio_pcm_stop_record(ddf_fun_t *fun, void *iface, 345 345 ipc_callid_t callid, ipc_call_t *call) … … 354 354 355 355 #if 0 356 /*----------------------------------------------------------------------------*/ 356 357 357 void remote_audio_mixer_get_info( 358 358 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 384 384 } 385 385 } 386 /*----------------------------------------------------------------------------*/ 386 387 387 void remote_audio_mixer_get_item_info( 388 388 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 416 416 } 417 417 } 418 /*----------------------------------------------------------------------------*/ 418 419 419 void remote_audio_mixer_get_channel_info( 420 420 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 450 450 } 451 451 } 452 /*----------------------------------------------------------------------------*/ 452 453 453 void remote_audio_mixer_channel_mute_set( 454 454 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 466 466 async_answer_0(callid, ret); 467 467 } 468 /*----------------------------------------------------------------------------*/ 468 469 469 void remote_audio_mixer_channel_mute_get( 470 470 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 483 483 async_answer_1(callid, ret, mute); 484 484 } 485 /*----------------------------------------------------------------------------*/ 485 486 486 void remote_audio_mixer_channel_volume_set( 487 487 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call) … … 500 500 async_answer_0(callid, ret); 501 501 } 502 /*----------------------------------------------------------------------------*/ 502 503 503 void remote_audio_mixer_channel_volume_get( 504 504 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
Note:
See TracChangeset
for help on using the changeset viewer.