Index: uspace/drv/audio/hdaudio/codec.c
===================================================================
--- uspace/drv/audio/hdaudio/codec.c	(revision d5c1051faf4391647834d99babdd4a44ee5d9700)
+++ uspace/drv/audio/hdaudio/codec.c	(revision a0a9cc249adce31c755defdb6b74a991ebbf55ea)
@@ -46,5 +46,5 @@
 #include "stream.h"
 
-static int hda_ccmd(hda_codec_t *codec, int node, uint32_t vid, uint32_t payload,
+static errno_t hda_ccmd(hda_codec_t *codec, int node, uint32_t vid, uint32_t payload,
     uint32_t *resp)
 {
@@ -66,5 +66,5 @@
 		    (payload & 0xffff);
 	}
-	int rc = hda_cmd(codec->hda, verb, resp);
+	errno_t rc = hda_cmd(codec->hda, verb, resp);
 /*
 	if (resp != NULL) {
@@ -78,5 +78,5 @@
 }
 
-static int hda_get_parameter(hda_codec_t *codec, int node, hda_param_id_t param,
+static errno_t hda_get_parameter(hda_codec_t *codec, int node, hda_param_id_t param,
     uint32_t *resp)
 {
@@ -84,8 +84,8 @@
 }
 
-static int hda_get_subnc(hda_codec_t *codec, int node, int *startnode,
+static errno_t hda_get_subnc(hda_codec_t *codec, int node, int *startnode,
     int *nodecount)
 {
-	int rc;
+	errno_t rc;
 	uint32_t resp;
 
@@ -103,8 +103,8 @@
 
 /** Get Function Group Type */
-static int hda_get_fgrp_type(hda_codec_t *codec, int node, bool *unsol,
+static errno_t hda_get_fgrp_type(hda_codec_t *codec, int node, bool *unsol,
     hda_fgrp_type_t *type)
 {
-	int rc;
+	errno_t rc;
 	uint32_t resp;
 
@@ -119,8 +119,8 @@
 }
 
-static int hda_get_clist_len(hda_codec_t *codec, int node, bool *longform,
+static errno_t hda_get_clist_len(hda_codec_t *codec, int node, bool *longform,
     int *items)
 {
-	int rc;
+	errno_t rc;
 	uint32_t resp;
 
@@ -135,15 +135,15 @@
 }
 
-static int hda_get_clist_entry(hda_codec_t *codec, int node, int n, uint32_t *resp)
+static errno_t hda_get_clist_entry(hda_codec_t *codec, int node, int n, uint32_t *resp)
 {
 	return hda_ccmd(codec, node, hda_clist_entry_get, n, resp);
 }
 
-static int hda_get_eapd_btl_enable(hda_codec_t *codec, int node, uint32_t *resp)
+static errno_t hda_get_eapd_btl_enable(hda_codec_t *codec, int node, uint32_t *resp)
 {
 	return hda_ccmd(codec, node, hda_eapd_btl_enable_get, 0, resp);
 }
 
-static int hda_set_eapd_btl_enable(hda_codec_t *codec, int node, uint8_t payload)
+static errno_t hda_set_eapd_btl_enable(hda_codec_t *codec, int node, uint8_t payload)
 {
 	return hda_ccmd(codec, node, hda_eapd_btl_enable_set, payload, NULL);
@@ -151,5 +151,5 @@
 
 /** Get Suppported PCM Size, Rates */
-static int hda_get_supp_rates(hda_codec_t *codec, int node, uint32_t *rates)
+static errno_t hda_get_supp_rates(hda_codec_t *codec, int node, uint32_t *rates)
 {
 	return hda_get_parameter(codec, node, hda_supp_rates, rates);
@@ -157,15 +157,15 @@
 
 /** Get Suppported Stream Formats */
-static int hda_get_supp_formats(hda_codec_t *codec, int node, uint32_t *fmts)
+static errno_t hda_get_supp_formats(hda_codec_t *codec, int node, uint32_t *fmts)
 {
 	return hda_get_parameter(codec, node, hda_supp_formats, fmts);
 }
 
-static int hda_set_converter_fmt(hda_codec_t *codec, int node, uint16_t fmt)
+static errno_t hda_set_converter_fmt(hda_codec_t *codec, int node, uint16_t fmt)
 {
 	return hda_ccmd(codec, node, hda_converter_fmt_set, fmt, NULL);
 }
 
-static int hda_set_converter_ctl(hda_codec_t *codec, int node, uint8_t stream,
+static errno_t hda_set_converter_ctl(hda_codec_t *codec, int node, uint8_t stream,
     uint8_t channel)
 {
@@ -176,12 +176,12 @@
 }
 
-static int hda_set_pin_ctl(hda_codec_t *codec, int node, uint8_t pctl)
+static errno_t hda_set_pin_ctl(hda_codec_t *codec, int node, uint8_t pctl)
 {
 	return hda_ccmd(codec, node, hda_pin_ctl_set, pctl, NULL);
 }
 
-static int hda_get_pin_ctl(hda_codec_t *codec, int node, uint8_t *pctl)
-{
-	int rc;
+static errno_t hda_get_pin_ctl(hda_codec_t *codec, int node, uint8_t *pctl)
+{
+	errno_t rc;
 	uint32_t resp;
 
@@ -195,8 +195,8 @@
 
 /** Get Audio Widget Capabilities */
-static int hda_get_aw_caps(hda_codec_t *codec, int node,
+static errno_t hda_get_aw_caps(hda_codec_t *codec, int node,
     hda_awidget_type_t *type, uint32_t *caps)
 {
-	int rc;
+	errno_t rc;
 	uint32_t resp;
 
@@ -212,5 +212,5 @@
 
 /** Get Pin Capabilities */
-static int hda_get_pin_caps(hda_codec_t *codec, int node, uint32_t *caps)
+static errno_t hda_get_pin_caps(hda_codec_t *codec, int node, uint32_t *caps)
 {
 	return hda_get_parameter(codec, node, hda_pin_caps, caps);
@@ -218,5 +218,5 @@
 
 /** Get Power State */
-static int hda_get_power_state(hda_codec_t *codec, int node, uint32_t *pstate)
+static errno_t hda_get_power_state(hda_codec_t *codec, int node, uint32_t *pstate)
 {
 	return hda_ccmd(codec, node, hda_power_state_get, 0, pstate);
@@ -224,10 +224,10 @@
 
 /** Get Configuration Default */
-static int hda_get_cfg_def(hda_codec_t *codec, int node, uint32_t *cfgdef)
+static errno_t hda_get_cfg_def(hda_codec_t *codec, int node, uint32_t *cfgdef)
 {
 	return hda_ccmd(codec, node, hda_cfg_def_get, 0, cfgdef);
 }
 
-static int hda_get_conn_sel(hda_codec_t *codec, int node, uint32_t *conn)
+static errno_t hda_get_conn_sel(hda_codec_t *codec, int node, uint32_t *conn)
 {
 	return hda_ccmd(codec, node, hda_conn_sel_get, 0, conn);
@@ -235,10 +235,10 @@
 
 /** Get Amplifier Gain / Mute  */
-static int hda_get_amp_gain_mute(hda_codec_t *codec, int node, uint16_t payload,
+static errno_t hda_get_amp_gain_mute(hda_codec_t *codec, int node, uint16_t payload,
     uint32_t *resp)
 {
 //	ddf_msg(LVL_NOTE, "hda_get_amp_gain_mute(codec, %d, %x)",
 //	    node, payload);
-	int rc = hda_ccmd(codec, node, hda_amp_gain_mute_get, payload, resp);
+	errno_t rc = hda_ccmd(codec, node, hda_amp_gain_mute_get, payload, resp);
 //	ddf_msg(LVL_NOTE, "hda_get_amp_gain_mute(codec, %d, %x, resp=%x)",
 //	    node, payload, *resp);
@@ -247,10 +247,10 @@
 
 /** Get GP I/O Count */
-static int hda_get_gpio_cnt(hda_codec_t *codec, int node, uint32_t *resp)
+static errno_t hda_get_gpio_cnt(hda_codec_t *codec, int node, uint32_t *resp)
 {
 	return hda_get_parameter(codec, node, hda_gpio_cnt, resp);
 }
 
-static int hda_set_amp_gain_mute(hda_codec_t *codec, int node, uint16_t payload)
+static errno_t hda_set_amp_gain_mute(hda_codec_t *codec, int node, uint16_t payload)
 {
 //	ddf_msg(LVL_NOTE, "hda_set_amp_gain_mute(codec, %d, %x)",
@@ -259,10 +259,10 @@
 }
 
-static int hda_set_out_amp_max(hda_codec_t *codec, uint8_t aw)
+static errno_t hda_set_out_amp_max(hda_codec_t *codec, uint8_t aw)
 {
 	uint32_t ampcaps;
 	uint32_t gmleft, gmright;
 	uint32_t offset;
-	int rc;
+	errno_t rc;
 
 	rc = hda_get_parameter(codec, aw,
@@ -294,5 +294,5 @@
 }
 
-static int hda_set_in_amp_max(hda_codec_t *codec, uint8_t aw)
+static errno_t hda_set_in_amp_max(hda_codec_t *codec, uint8_t aw)
 {
 	uint32_t ampcaps;
@@ -300,5 +300,5 @@
 	uint32_t offset;
 	int i;
-	int rc;
+	errno_t rc;
 
 	rc = hda_get_parameter(codec, aw,
@@ -332,7 +332,7 @@
 }
 
-static int hda_clist_dump(hda_codec_t *codec, uint8_t aw)
-{
-	int rc;
+static errno_t hda_clist_dump(hda_codec_t *codec, uint8_t aw)
+{
+	errno_t rc;
 	bool longform;
 	int len;
@@ -394,7 +394,7 @@
 }
 
-static int hda_pin_init(hda_codec_t *codec, uint8_t aw)
-{
-	int rc;
+static errno_t hda_pin_init(hda_codec_t *codec, uint8_t aw)
+{
+	errno_t rc;
 	uint32_t cfgdef;
 	uint32_t pcaps;
@@ -471,7 +471,7 @@
 
 /** Init power-control in wiget capable of doing so. */
-static int hda_power_ctl_init(hda_codec_t *codec, uint8_t aw)
-{
-	int rc;
+static errno_t hda_power_ctl_init(hda_codec_t *codec, uint8_t aw)
+{
+	errno_t rc;
 	uint32_t pwrstate;
 
@@ -491,5 +491,5 @@
 {
 	hda_codec_t *codec;
-	int rc;
+	errno_t rc;
 	int sfg, nfg;
 	int saw, naw;
@@ -639,7 +639,7 @@
 }
 
-int hda_out_converter_setup(hda_codec_t *codec, hda_stream_t *stream)
-{
-	int rc;
+errno_t hda_out_converter_setup(hda_codec_t *codec, hda_stream_t *stream)
+{
+	errno_t rc;
 	int out_aw;
 	int i;
@@ -666,7 +666,7 @@
 }
 
-int hda_in_converter_setup(hda_codec_t *codec, hda_stream_t *stream)
-{
-	int rc;
+errno_t hda_in_converter_setup(hda_codec_t *codec, hda_stream_t *stream)
+{
+	errno_t rc;
 
 	/* Configure converter */
Index: uspace/drv/audio/hdaudio/codec.h
===================================================================
--- uspace/drv/audio/hdaudio/codec.h	(revision d5c1051faf4391647834d99babdd4a44ee5d9700)
+++ uspace/drv/audio/hdaudio/codec.h	(revision a0a9cc249adce31c755defdb6b74a991ebbf55ea)
@@ -52,6 +52,6 @@
 extern hda_codec_t *hda_codec_init(hda_t *, uint8_t);
 extern void hda_codec_fini(hda_codec_t *);
-extern int hda_out_converter_setup(hda_codec_t *, hda_stream_t *);
-extern int hda_in_converter_setup(hda_codec_t *, hda_stream_t *);
+extern errno_t hda_out_converter_setup(hda_codec_t *, hda_stream_t *);
+extern errno_t hda_in_converter_setup(hda_codec_t *, hda_stream_t *);
 
 #endif
Index: uspace/drv/audio/hdaudio/hdactl.c
===================================================================
--- uspace/drv/audio/hdaudio/hdactl.c	(revision d5c1051faf4391647834d99babdd4a44ee5d9700)
+++ uspace/drv/audio/hdaudio/hdactl.c	(revision a0a9cc249adce31c755defdb6b74a991ebbf55ea)
@@ -64,5 +64,5 @@
  * to read as 0.
  */
-static int hda_ctl_reg16_set_reset(uint16_t *reg, uint16_t mask)
+static errno_t hda_ctl_reg16_set_reset(uint16_t *reg, uint16_t mask)
 {
 	uint16_t val;
@@ -116,5 +116,5 @@
  *
  */
-static int hda_rb_size_select(uint8_t sizecap, uint8_t *selsz)
+static errno_t hda_rb_size_select(uint8_t sizecap, uint8_t *selsz)
 {
 	int i;
@@ -146,5 +146,5 @@
 
 /** Initialize the CORB */
-static int hda_corb_init(hda_t *hda)
+static errno_t hda_corb_init(hda_t *hda)
 {
 	uint8_t ctl;
@@ -152,5 +152,5 @@
 	uint8_t sizecap;
 	uint8_t selsz;
-	int rc;
+	errno_t rc;
 
 	ddf_msg(LVL_NOTE, "hda_corb_init()");
@@ -237,5 +237,5 @@
 
 /** Initialize the RIRB */
-static int hda_rirb_init(hda_t *hda)
+static errno_t hda_rirb_init(hda_t *hda)
 {
 	uint8_t ctl;
@@ -243,5 +243,5 @@
 	uint8_t sizecap;
 	uint8_t selsz;
-	int rc;
+	errno_t rc;
 
 	ddf_msg(LVL_NOTE, "hda_rirb_init()");
@@ -372,5 +372,5 @@
 
 /** Write to CORB */
-static int hda_corb_write(hda_t *hda, uint32_t *data, size_t count)
+static errno_t hda_corb_write(hda_t *hda, uint32_t *data, size_t count)
 {
 	size_t avail;
@@ -414,5 +414,5 @@
 }
 
-static int hda_rirb_read(hda_t *hda, hda_rirb_entry_t *data)
+static errno_t hda_rirb_read(hda_t *hda, hda_rirb_entry_t *data)
 {
 	size_t wp;
@@ -436,5 +436,5 @@
 }
 
-static int hda_solrb_read(hda_t *hda, hda_rirb_entry_t *data, size_t count)
+static errno_t hda_solrb_read(hda_t *hda, hda_rirb_entry_t *data, size_t count)
 {
 	hda_rirb_entry_t resp;
@@ -490,5 +490,5 @@
 	uint32_t intctl;
 	int cnt;
-	int rc;
+	errno_t rc;
 
 	ctl = calloc(1, sizeof(hda_ctl_t));
@@ -615,7 +615,7 @@
 }
 
-int hda_cmd(hda_t *hda, uint32_t verb, uint32_t *resp)
-{
-	int rc;
+errno_t hda_cmd(hda_t *hda, uint32_t verb, uint32_t *resp)
+{
+	errno_t rc;
 	hda_rirb_entry_t rentry;
 
@@ -639,5 +639,5 @@
 {
 	hda_rirb_entry_t resp;
-	int rc;
+	errno_t rc;
 
 	while (true) {
Index: uspace/drv/audio/hdaudio/hdactl.h
===================================================================
--- uspace/drv/audio/hdaudio/hdactl.h	(revision d5c1051faf4391647834d99babdd4a44ee5d9700)
+++ uspace/drv/audio/hdaudio/hdactl.h	(revision a0a9cc249adce31c755defdb6b74a991ebbf55ea)
@@ -78,5 +78,5 @@
 extern void hda_ctl_fini(hda_ctl_t *);
 extern void hda_ctl_interrupt(hda_ctl_t *);
-extern int hda_cmd(hda_t *, uint32_t, uint32_t *);
+extern errno_t hda_cmd(hda_t *, uint32_t, uint32_t *);
 extern void hda_ctl_dump_info(hda_ctl_t *);
 
Index: uspace/drv/audio/hdaudio/hdaudio.c
===================================================================
--- uspace/drv/audio/hdaudio/hdaudio.c	(revision d5c1051faf4391647834d99babdd4a44ee5d9700)
+++ uspace/drv/audio/hdaudio/hdaudio.c	(revision a0a9cc249adce31c755defdb6b74a991ebbf55ea)
@@ -52,9 +52,9 @@
 #define NAME "hdaudio"
 
-static int hda_dev_add(ddf_dev_t *dev);
-static int hda_dev_remove(ddf_dev_t *dev);
-static int hda_dev_gone(ddf_dev_t *dev);
-static int hda_fun_online(ddf_fun_t *fun);
-static int hda_fun_offline(ddf_fun_t *fun);
+static errno_t hda_dev_add(ddf_dev_t *dev);
+static errno_t hda_dev_remove(ddf_dev_t *dev);
+static errno_t hda_dev_gone(ddf_dev_t *dev);
+static errno_t hda_fun_online(ddf_fun_t *fun);
+static errno_t hda_fun_offline(ddf_fun_t *fun);
 
 static void hdaudio_interrupt(ipc_call_t *, ddf_dev_t *);
@@ -148,5 +148,5 @@
 };
 
-static int hda_dev_add(ddf_dev_t *dev)
+static errno_t hda_dev_add(ddf_dev_t *dev)
 {
 	ddf_fun_t *fun_pcm = NULL;
@@ -160,5 +160,5 @@
 	int i;
 	void *regs = NULL;
-	int rc;
+	errno_t rc;
 
 	ddf_msg(LVL_NOTE, "hda_dev_add()");
@@ -318,8 +318,8 @@
 }
 
-static int hda_dev_remove(ddf_dev_t *dev)
+static errno_t hda_dev_remove(ddf_dev_t *dev)
 {
 	hda_t *hda = (hda_t *)ddf_dev_data_get(dev);
-	int rc;
+	errno_t rc;
 
 	ddf_msg(LVL_DEBUG, "hda_dev_remove(%p)", dev);
@@ -340,8 +340,8 @@
 }
 
-static int hda_dev_gone(ddf_dev_t *dev)
+static errno_t hda_dev_gone(ddf_dev_t *dev)
 {
 	hda_t *hda = (hda_t *)ddf_dev_data_get(dev);
-	int rc;
+	errno_t rc;
 
 	ddf_msg(LVL_DEBUG, "hda_dev_remove(%p)", dev);
@@ -356,5 +356,5 @@
 }
 
-static int hda_fun_online(ddf_fun_t *fun)
+static errno_t hda_fun_online(ddf_fun_t *fun)
 {
 	ddf_msg(LVL_DEBUG, "hda_fun_online()");
@@ -362,5 +362,5 @@
 }
 
-static int hda_fun_offline(ddf_fun_t *fun)
+static errno_t hda_fun_offline(ddf_fun_t *fun)
 {
 	ddf_msg(LVL_DEBUG, "hda_fun_offline()");
Index: uspace/drv/audio/hdaudio/pcm_iface.c
===================================================================
--- uspace/drv/audio/hdaudio/pcm_iface.c	(revision d5c1051faf4391647834d99babdd4a44ee5d9700)
+++ uspace/drv/audio/hdaudio/pcm_iface.c	(revision a0a9cc249adce31c755defdb6b74a991ebbf55ea)
@@ -47,19 +47,19 @@
 #include "stream.h"
 
-static int hda_get_info_str(ddf_fun_t *, const char **);
+static errno_t hda_get_info_str(ddf_fun_t *, const char **);
 static unsigned hda_query_cap(ddf_fun_t *, audio_cap_t);
-static int hda_test_format(ddf_fun_t *, unsigned *, unsigned *,
+static errno_t hda_test_format(ddf_fun_t *, unsigned *, unsigned *,
     pcm_sample_format_t *);
-static int hda_get_buffer(ddf_fun_t *, void **, size_t *);
-static int hda_get_buffer_position(ddf_fun_t *, size_t *);
-static int hda_set_event_session(ddf_fun_t *, async_sess_t *);
+static errno_t hda_get_buffer(ddf_fun_t *, void **, size_t *);
+static errno_t hda_get_buffer_position(ddf_fun_t *, size_t *);
+static errno_t hda_set_event_session(ddf_fun_t *, async_sess_t *);
 static async_sess_t *hda_get_event_session(ddf_fun_t *);
-static int hda_release_buffer(ddf_fun_t *);
-static int hda_start_playback(ddf_fun_t *, unsigned, unsigned, unsigned,
+static errno_t hda_release_buffer(ddf_fun_t *);
+static errno_t hda_start_playback(ddf_fun_t *, unsigned, unsigned, unsigned,
     pcm_sample_format_t);
-static int hda_stop_playback(ddf_fun_t *, bool);
-static int hda_start_capture(ddf_fun_t *, unsigned, unsigned, unsigned,
+static errno_t hda_stop_playback(ddf_fun_t *, bool);
+static errno_t hda_start_capture(ddf_fun_t *, unsigned, unsigned, unsigned,
     pcm_sample_format_t);
-static int hda_stop_capture(ddf_fun_t *, bool);
+static errno_t hda_stop_capture(ddf_fun_t *, bool);
 
 audio_pcm_iface_t hda_pcm_iface = {
@@ -90,5 +90,5 @@
 }
 
-static int hda_get_info_str(ddf_fun_t *fun, const char **name)
+static errno_t hda_get_info_str(ddf_fun_t *fun, const char **name)
 {
 	ddf_msg(LVL_NOTE, "hda_get_info_str()");
@@ -124,8 +124,8 @@
 }
 
-static int hda_test_format(ddf_fun_t *fun, unsigned *channels,
+static errno_t hda_test_format(ddf_fun_t *fun, unsigned *channels,
     unsigned *rate, pcm_sample_format_t *format)
 {
-	int rc = EOK;
+	errno_t rc = EOK;
 
 	ddf_msg(LVL_NOTE, "hda_test_format(%u, %u, %d)\n",
@@ -150,8 +150,8 @@
 }
 
-static int hda_get_buffer(ddf_fun_t *fun, void **buffer, size_t *size)
-{
-	hda_t *hda = fun_to_hda(fun);
-	int rc;
+static errno_t hda_get_buffer(ddf_fun_t *fun, void **buffer, size_t *size)
+{
+	hda_t *hda = fun_to_hda(fun);
+	errno_t rc;
 
 	hda_lock(hda);
@@ -183,5 +183,5 @@
 }
 
-static int hda_get_buffer_position(ddf_fun_t *fun, size_t *pos)
+static errno_t hda_get_buffer_position(ddf_fun_t *fun, size_t *pos)
 {
 	ddf_msg(LVL_NOTE, "hda_get_buffer_position()");
@@ -189,5 +189,5 @@
 }
 
-static int hda_set_event_session(ddf_fun_t *fun, async_sess_t *sess)
+static errno_t hda_set_event_session(ddf_fun_t *fun, async_sess_t *sess)
 {
 	hda_t *hda = fun_to_hda(fun);
@@ -215,5 +215,5 @@
 }
 
-static int hda_release_buffer(ddf_fun_t *fun)
+static errno_t hda_release_buffer(ddf_fun_t *fun)
 {
 	hda_t *hda = fun_to_hda(fun);
@@ -234,9 +234,9 @@
 }
 
-static int hda_start_playback(ddf_fun_t *fun, unsigned frames,
+static errno_t hda_start_playback(ddf_fun_t *fun, unsigned frames,
     unsigned channels, unsigned rate, pcm_sample_format_t format)
 {
 	hda_t *hda = fun_to_hda(fun);
-	int rc;
+	errno_t rc;
 
 	ddf_msg(LVL_NOTE, "hda_start_playback()");
@@ -275,5 +275,5 @@
 }
 
-static int hda_stop_playback(ddf_fun_t *fun, bool immediate)
+static errno_t hda_stop_playback(ddf_fun_t *fun, bool immediate)
 {
 	hda_t *hda = fun_to_hda(fun);
@@ -293,9 +293,9 @@
 }
 
-static int hda_start_capture(ddf_fun_t *fun, unsigned frames, unsigned channels,
+static errno_t hda_start_capture(ddf_fun_t *fun, unsigned frames, unsigned channels,
     unsigned rate, pcm_sample_format_t format)
 {
 	hda_t *hda = fun_to_hda(fun);
-	int rc;
+	errno_t rc;
 
 	ddf_msg(LVL_NOTE, "hda_start_capture()");
@@ -334,5 +334,5 @@
 }
 
-static int hda_stop_capture(ddf_fun_t *fun, bool immediate)
+static errno_t hda_stop_capture(ddf_fun_t *fun, bool immediate)
 {
 	hda_t *hda = fun_to_hda(fun);
Index: uspace/drv/audio/hdaudio/stream.c
===================================================================
--- uspace/drv/audio/hdaudio/stream.c	(revision d5c1051faf4391647834d99babdd4a44ee5d9700)
+++ uspace/drv/audio/hdaudio/stream.c	(revision a0a9cc249adce31c755defdb6b74a991ebbf55ea)
@@ -49,5 +49,5 @@
 #include "stream.h"
 
-int hda_stream_buffers_alloc(hda_t *hda, hda_stream_buffers_t **rbufs)
+errno_t hda_stream_buffers_alloc(hda_t *hda, hda_stream_buffers_t **rbufs)
 {
 	void *bdl;
@@ -57,5 +57,5 @@
 	size_t i;
 //	size_t j, k;
-	int rc;
+	errno_t rc;
 
 	bufs = calloc(1, sizeof(hda_stream_buffers_t));
Index: uspace/drv/audio/hdaudio/stream.h
===================================================================
--- uspace/drv/audio/hdaudio/stream.h	(revision d5c1051faf4391647834d99babdd4a44ee5d9700)
+++ uspace/drv/audio/hdaudio/stream.h	(revision a0a9cc249adce31c755defdb6b74a991ebbf55ea)
@@ -77,5 +77,5 @@
 } hda_stream_t;
 
-extern int hda_stream_buffers_alloc(hda_t *, hda_stream_buffers_t **);
+extern errno_t hda_stream_buffers_alloc(hda_t *, hda_stream_buffers_t **);
 extern void hda_stream_buffers_free(hda_stream_buffers_t *);
 extern hda_stream_t *hda_stream_create(hda_t *, hda_stream_dir_t,
