Changeset f9b2cb4c in mainline for uspace/lib/drv/generic/remote_audio_pcm.c
- Timestamp:
- 2015-08-23T12:50:23Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ef495f
- Parents:
- 0dd16778
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_audio_pcm.c
r0dd16778 rf9b2cb4c 146 146 if (ret != EOK) 147 147 return NULL; 148 return devman_device_connect(EXCHANGE_SERIALIZE, device_handle, 149 IPC_FLAG_BLOCKING); 148 return devman_device_connect(device_handle, IPC_FLAG_BLOCKING); 150 149 } 151 150 … … 158 157 audio_pcm_sess_t *audio_pcm_open_service(service_id_t id) 159 158 { 160 return loc_service_connect( EXCHANGE_SERIALIZE, id, IPC_FLAG_BLOCKING);159 return loc_service_connect(id, INTERFACE_DDF, IPC_FLAG_BLOCKING); 161 160 } 162 161 … … 322 321 323 322 async_exch_t *exch = async_exchange_begin(sess); 323 324 324 int ret = async_req_1_0(exch, DEV_IFACE_ID(AUDIO_PCM_BUFFER_IFACE), 325 325 IPC_M_AUDIO_PCM_REGISTER_EVENTS); 326 326 if (ret == EOK) { 327 ret = async_connect_to_me(exch, 0, 0, 0, event_callback, arg); 328 } 327 port_id_t port; 328 ret = async_create_callback_port(exch, INTERFACE_AUDIO_PCM_CB, 0, 0, 329 event_callback, arg, &port); 330 } 331 329 332 async_exchange_end(exch); 330 333 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.