Details
-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
master ,Intel, CES demo
Description
If a control is created in the HAL but not present it will crash the HAL which will crash Pulse.
The initial HAL was created with a USB device presenting a Mic, the version used for CES does not.
The missing Mic control will crash the HAL.
Work around create a HAL with no Mic, for CES, but not a viable long term option (gerrit.automotivelinux.org:29418)
---------- log ---------------------
_Volume", "max": 255, "type": 2, "count": 2, "val": 204 }, { "ctl": -1, "name": "CustomLow_Volume", "max": 255, "type": 2, "count": 2, "val": 204 }, { "ctl": -1, "name": "Fallback_Volume", "max": 255, "type": 2, "count": 2, "val": 204 } ], path: (null) }
HOOK: [xreq-000002:alsacore/addcustomctl] fail(ctl-invalid-type, crl={ "name": "Mic Capture Volume" } unsupported type type=0 numid=0)
HOOK: [xreq-000002:alsacore/addcustomctl] END
ERROR: [API usb-audio] Fail creating HAL Custom ALSA ctls Response='{ "jtype": "afb-reply", "request": { "status": "ctl-invalid-type", "info": "crl={ \"name\": \"Mic Capture Volume\" } unsupported type type=0 numid=0" } }' [/usr/src/debug/4a-hal-reference/0.1+gitAUTOINC+b922af1743-r0/git/hal-utilities-4a/hal-interface.c:558,halServiceInit]
NOTICE: API usb-audio started
HOOK: [xreq-000003:alsacore/hallist] BEGIN
HOOK: [xreq-000003:alsacore/hallist] success([ { "api": "usb-audio", "devid": "hw:0", "shortname": "USB-Audio" } ], (null))
HOOK: [xreq-000003:alsacore/hallist] END
HOOK: [xreq-000004:usb-audio/ctlset] BEGIN
HOOK: [xreq-000004:usb-audio/ctlset] json() -> { "label": "CustomLow_Volume", "val": 80 }
HOOK: [xreq-000005:alsacore/ctlset] BEGIN
HOOK: [xreq-000005:alsacore/ctlset] json() -> { "devid": "hw:0", "ctl": { "id": -1, "val": [ 204 ] } }
HOOK: [xreq-000005:alsacore/ctlset] success(null, [ { "warning": "Numid Invalid", "ctl": { "id": -1, "val": [ 204 ] } } ])
HOOK: [xreq-000005:alsacore/ctlset] END
HOOK: [xreq-000004:usb-audio/ctlset] success(null, (null))
HOOK: [xreq-000004:usb-audio/ctlset] END
....