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

Audio HAL control name must be dynamic

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • None
    • Audio Manager

      In the HAL (e.g. from Intel) we list the control name in a way that they must match exactly the alsa driver output.

      As this changes with HW platform (e.g. from a PC to a Minnow) creating a multiplatform binary is not possible.

      For example as a hack to go to CES, I have changed the file IntelHdaHAL.c to declare the same control with multiple name.

      { .tag=Master_Playback_Volume, .ctl={.name="Master Playback Volume", .value=100 } },
      { .tag=Master_Playback_Volume, .ctl={.name="Video_Volume", .value=100 } },

      It will create a warning but at least gives back some control.

      The solution remains a hack and the simple control should be read from the alsa actual configuration.

       

      Control name on real target can be read with the command (change hw:0 by valid ID to read other card that the default one)

      amixer -D hw:0 controls

       

       

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

            Jon Jonathan Aillet
            dominig Dominig ar Foll
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: