Lines Matching refs:oops
105 static int oops(struct compress *compress, int e, const char *fmt, ...) in oops() function
145 oops(compress, errno, "cant read version"); in get_compress_version()
159 oops(&bad_compress, errno, "cannot get device caps"); in _is_codec_type_supported()
191 oops(&bad_compress, EINVAL, "passed bad config"); in compress_open()
197 oops(&bad_compress, errno, "cannot allocate compress object"); in compress_open()
211 oops(&bad_compress, EINVAL, "can't deduce device direction from given flags"); in compress_open()
225 oops(&bad_compress, errno, "cannot open card(%u) device(%u)", in compress_open()
231 oops(compress, errno, "cannot get device caps"); in compress_open()
246 oops(compress, errno, "codec not supported\n"); in compress_open()
255 oops(&bad_compress, errno, "cannot set device"); in compress_open()
292 return oops(compress, ENODEV, "device not ready"); in compress_get_hpointer()
295 return oops(compress, errno, "cannot get avail"); in compress_get_hpointer()
297 return oops(compress, ENODATA, "sample rate unknown"); in compress_get_hpointer()
312 return oops(compress, ENODEV, "device not ready"); in compress_get_tstamp()
315 return oops(compress, errno, "cannot get tstamp"); in compress_get_tstamp()
332 return oops(compress, EINVAL, "Invalid flag set"); in compress_write()
334 return oops(compress, ENODEV, "device not ready"); in compress_write()
340 return oops(compress, errno, "cannot get avail"); in compress_write()
353 return oops(compress, EIO, "poll returned error!"); in compress_write()
360 return oops(compress, errno, "poll error"); in compress_write()
375 return oops(compress, errno, "write failed!"); in compress_write()
395 return oops(compress, EINVAL, "Invalid flag set"); in compress_read()
397 return oops(compress, ENODEV, "device not ready"); in compress_read()
402 return oops(compress, errno, "cannot get avail"); in compress_read()
414 return oops(compress, EIO, "poll returned error!"); in compress_read()
421 return oops(compress, errno, "poll error"); in compress_read()
436 return oops(compress, errno, "read failed!"); in compress_read()
450 return oops(compress, ENODEV, "device not ready"); in compress_start()
452 return oops(compress, errno, "cannot start the stream"); in compress_start()
461 return oops(compress, ENODEV, "device not ready"); in compress_stop()
463 return oops(compress, errno, "cannot stop the stream"); in compress_stop()
470 return oops(compress, ENODEV, "device not ready"); in compress_pause()
472 return oops(compress, errno, "cannot pause the stream"); in compress_pause()
479 return oops(compress, errno, "cannot resume the stream"); in compress_resume()
486 return oops(compress, ENODEV, "device not ready"); in compress_drain()
488 return oops(compress, errno, "cannot drain the stream"); in compress_drain()
495 return oops(compress, ENODEV, "device not ready"); in compress_partial_drain()
498 return oops(compress, EPERM, "next track not signalled"); in compress_partial_drain()
500 return oops(compress, errno, "cannot drain the stream\n"); in compress_partial_drain()
508 return oops(compress, ENODEV, "device not ready"); in compress_next_track()
511 return oops(compress, EPERM, "metadata not set"); in compress_next_track()
513 return oops(compress, errno, "cannot set next track\n"); in compress_next_track()
526 return oops(compress, ENODEV, "device not ready"); in compress_set_gapless_metadata()
533 return oops(compress, ENXIO, "gapless apis not supported in kernel"); in compress_set_gapless_metadata()
538 return oops(compress, errno, "can't set metadata for stream\n"); in compress_set_gapless_metadata()
543 return oops(compress, errno, "can't set metadata for stream\n"); in compress_set_gapless_metadata()
553 return oops(compress, ENODEV, "device not ready"); in compress_set_next_track_param()
556 return oops(compress, errno, "cannot set next track params\n"); in compress_set_next_track_param()
578 return oops(&bad_compress, errno, "cannot open card %u, device %u", in is_codec_supported()
608 return oops(compress, EIO, "poll returned error!"); in compress_wait()
613 return oops(compress, ETIME, "poll timed out"); in compress_wait()
615 return oops(compress, errno, "poll error"); in compress_wait()
617 return oops(compress, EIO, "poll signalled unhandled event"); in compress_wait()
625 return oops(compress, ENODEV, "device not ready"); in compress_get_metadata()
632 return oops(compress, errno, "can't get metadata for stream\n"); in compress_get_metadata()
642 return oops(compress, ENODEV, "device not ready"); in compress_set_metadata()
649 return oops(compress, errno, "can't set metadata for stream\n"); in compress_set_metadata()