Changeset 5337491 in mainline
- Timestamp:
- 2012-08-30T12:17:36Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e98a8c4
- Parents:
- f2a92b0
- Location:
- uspace/lib/drv
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_audio_pcm.c
rf2a92b0 r5337491 154 154 * @return Error code. 155 155 */ 156 int audio_pcm_query_cap(audio_pcm_sess_t *sess, audio_cap_t cap, unsigned *val) 157 { 158 if (!val) 159 return EINVAL; 156 int audio_pcm_query_cap(audio_pcm_sess_t *sess, audio_cap_t cap) 157 { 160 158 async_exch_t *exch = async_exchange_begin(sess); 161 159 sysarg_t value = 0; … … 163 161 DEV_IFACE_ID(AUDIO_PCM_BUFFER_IFACE), IPC_M_AUDIO_PCM_QUERY_CAPS, 164 162 cap, &value); 163 async_exchange_end(exch); 165 164 if (ret == EOK) 166 *val = value; 167 async_exchange_end(exch); 165 return value; 168 166 return ret; 169 167 } -
uspace/lib/drv/include/audio_pcm_iface.h
rf2a92b0 r5337491 72 72 int audio_pcm_test_format(audio_pcm_sess_t *, unsigned *, unsigned *, 73 73 pcm_sample_format_t *); 74 int audio_pcm_query_cap(audio_pcm_sess_t *, audio_cap_t , unsigned *);74 int audio_pcm_query_cap(audio_pcm_sess_t *, audio_cap_t); 75 75 int audio_pcm_register_event_callback(audio_pcm_sess_t *, 76 76 async_client_conn_t, void *);
Note:
See TracChangeset
for help on using the changeset viewer.