Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-1212

hal-4a Creating optional controls shall be possible in HAL

XMLWordPrintable

      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

      ....

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            fulupbzh Fulup Ar Foll
            dominig Dominig ar Foll
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: