summaryrefslogtreecommitdiffstats
path: root/ahl-binding/ahl-deviceenum.c
diff options
context:
space:
mode:
authorTai Vuong <tvuong@audiokinetic.com>2017-11-03 18:55:54 -0400
committerTai Vuong <tvuong@audiokinetic.com>2017-11-03 18:55:54 -0400
commit68f1187061c28ecf6439b4dd465f4d256529dc55 (patch)
tree5c86b5c00cda5d183a7dce47622a294a1b9179cb /ahl-binding/ahl-deviceenum.c
parentb929cdf5d0b27915e84e174c81ffd7e2b2f1beda (diff)
various bug fix, add alsa configuration file to match with Hal control
Diffstat (limited to 'ahl-binding/ahl-deviceenum.c')
-rw-r--r--ahl-binding/ahl-deviceenum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ahl-binding/ahl-deviceenum.c b/ahl-binding/ahl-deviceenum.c
index 763b2ca..f672417 100644
--- a/ahl-binding/ahl-deviceenum.c
+++ b/ahl-binding/ahl-deviceenum.c
@@ -43,14 +43,14 @@ static int SeparateDomainFromDeviceURI( char * in_pDeviceURI, char ** out_pDomai
if (*out_pDomain == NULL)
{
AFB_ERROR("Error tokenizing device URI -> %s",in_pDeviceURI);
- return 1;
+ return AHL_FAIL;
}
// TODO: Validate domain is known string (e.g. ALSA,Pulse,GStreamer)
*out_pDevice = strtok(NULL, ".");
if (*out_pDevice == NULL)
{
AFB_ERROR("Error tokenizing device URI -> %s",in_pDeviceURI);
- return 1;
+ return AHL_FAIL;
}
return AHL_SUCCESS;
}