Changes in uspace/drv/audio/hdaudio/pcm_iface.c [1433ecda:cf78637] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/pcm_iface.c
r1433ecda rcf78637 92 92 static errno_t hda_get_info_str(ddf_fun_t *fun, const char **name) 93 93 { 94 ddf_msg(LVL_ NOTE, "hda_get_info_str()");94 ddf_msg(LVL_DEBUG, "hda_get_info_str()"); 95 95 if (name) 96 96 *name = "High Definition Audio"; … … 102 102 hda_t *hda = fun_to_hda(fun); 103 103 104 ddf_msg(LVL_ NOTE, "hda_query_cap(%d)", cap);104 ddf_msg(LVL_DEBUG, "hda_query_cap(%d)", cap); 105 105 switch (cap) { 106 106 case AUDIO_CAP_PLAYBACK: … … 129 129 errno_t rc = EOK; 130 130 131 ddf_msg(LVL_ NOTE, "hda_test_format(%u, %u, %d)\n",131 ddf_msg(LVL_DEBUG, "hda_test_format(%u, %u, %d)\n", 132 132 *channels, *rate, *format); 133 133 … … 157 157 hda_lock(hda); 158 158 159 ddf_msg(LVL_ NOTE, "hda_get_buffer(): hda=%p", hda);159 ddf_msg(LVL_DEBUG, "hda_get_buffer(): hda=%p", hda); 160 160 if (hda->pcm_buffers != NULL) { 161 161 hda_unlock(hda); … … 163 163 } 164 164 165 ddf_msg(LVL_ NOTE, "hda_get_buffer() - allocate stream buffers");165 ddf_msg(LVL_DEBUG, "hda_get_buffer() - allocate stream buffers"); 166 166 rc = hda_stream_buffers_alloc(hda, &hda->pcm_buffers); 167 167 if (rc != EOK) { … … 171 171 } 172 172 173 ddf_msg(LVL_ NOTE, "hda_get_buffer() - fill info");173 ddf_msg(LVL_DEBUG, "hda_get_buffer() - fill info"); 174 174 /* XXX This is only one buffer */ 175 175 *buffer = hda->pcm_buffers->buf[0]; 176 176 *size = hda->pcm_buffers->bufsize * hda->pcm_buffers->nbuffers; 177 177 178 ddf_msg(LVL_ NOTE, "hda_get_buffer() returing EOK, buffer=%p, size=%zu",178 ddf_msg(LVL_DEBUG, "hda_get_buffer() returing EOK, buffer=%p, size=%zu", 179 179 *buffer, *size); 180 180 … … 185 185 static errno_t hda_get_buffer_position(ddf_fun_t *fun, size_t *pos) 186 186 { 187 ddf_msg(LVL_ NOTE, "hda_get_buffer_position()");187 ddf_msg(LVL_DEBUG, "hda_get_buffer_position()"); 188 188 return ENOTSUP; 189 189 } … … 193 193 hda_t *hda = fun_to_hda(fun); 194 194 195 ddf_msg(LVL_ NOTE, "hda_set_event_session()");195 ddf_msg(LVL_DEBUG, "hda_set_event_session()"); 196 196 hda_lock(hda); 197 197 hda->ev_sess = sess; … … 206 206 async_sess_t *sess; 207 207 208 ddf_msg(LVL_ NOTE, "hda_get_event_session()");208 ddf_msg(LVL_DEBUG, "hda_get_event_session()"); 209 209 210 210 hda_lock(hda); … … 221 221 hda_lock(hda); 222 222 223 ddf_msg(LVL_ NOTE, "hda_release_buffer()");223 ddf_msg(LVL_DEBUG, "hda_release_buffer()"); 224 224 if (hda->pcm_buffers == NULL) { 225 225 hda_unlock(hda); … … 240 240 errno_t rc; 241 241 242 ddf_msg(LVL_ NOTE, "hda_start_playback()");242 ddf_msg(LVL_DEBUG, "hda_start_playback()"); 243 243 hda_lock(hda); 244 244 … … 279 279 hda_t *hda = fun_to_hda(fun); 280 280 281 ddf_msg(LVL_ NOTE, "hda_stop_playback()");281 ddf_msg(LVL_DEBUG, "hda_stop_playback()"); 282 282 hda_lock(hda); 283 283 hda_stream_stop(hda->pcm_stream); … … 299 299 errno_t rc; 300 300 301 ddf_msg(LVL_ NOTE, "hda_start_capture()");301 ddf_msg(LVL_DEBUG, "hda_start_capture()"); 302 302 hda_lock(hda); 303 303 … … 312 312 fmt = (fmt_base_44khz << fmt_base) | (fmt_bits_16 << fmt_bits_l) | 1; 313 313 314 ddf_msg(LVL_ NOTE, "hda_start_capture() - create input stream");314 ddf_msg(LVL_DEBUG, "hda_start_capture() - create input stream"); 315 315 hda->pcm_stream = hda_stream_create(hda, sdir_input, hda->pcm_buffers, 316 316 fmt); … … 338 338 hda_t *hda = fun_to_hda(fun); 339 339 340 ddf_msg(LVL_ NOTE, "hda_stop_capture()");340 ddf_msg(LVL_DEBUG, "hda_stop_capture()"); 341 341 hda_lock(hda); 342 342 hda_stream_stop(hda->pcm_stream);
Note:
See TracChangeset
for help on using the changeset viewer.