20 Oct, 2015

2 commits

  • By setting the MODALIAS variable in uevents, userspace helpers will be
    enabled to load modules via the module alias associated with a device.

    This information is required to automatically load HDA codec drivers
    instead of having to explicitly request the various modules in the HDA
    core code.

    [Note that currently the legacy HDA controller driver tries to bind
    codec modules manually. It's for supporting the fallback generic
    drivers. This new udev modalias support was added rather for ASoC
    HDA ext drivers, since this addition itself won't hurt the legacy HDA
    -- tiwai]

    [Use the common helper function to generate the modalias -- tiwai]

    Signed-off-by: Thierry Reding
    Reviewed-by: Vinod Koul
    Tested-by: Subhransu S Prusty
    Signed-off-by: Takashi Iwai

    Thierry Reding
     
  • For generating modalias entries automatically, move the definition of
    struct hda_device_id to linux/mod_devicetable.h and add the handling
    of this record in file2alias helper. The new modalias is represented
    with combination of vendor id, device id, and api version as
    "hdaudio:vNrNaN".

    This patch itself doesn't convert the existing modaliases. Since they
    were added manually, this patch won't give any regression by itself at
    this point.

    [Modified the modalias format to adapt the api_version field, and drop
    invalid ANY_ID definition by tiwai]

    Signed-off-by: Subhransu S. Prusty
    Reviewed-by: Vinod Koul
    Tested-by: Subhransu S Prusty
    Signed-off-by: Takashi Iwai

    Subhransu S. Prusty
     

03 Jun, 2015

1 commit


23 Mar, 2015

1 commit

  • Define the common hd-audio driver and device types to bind over
    snd_hda_bus_type publicly. This allows to implement other type of
    device and driver code over hd-audio bus.

    Now both struct hda_codec and struct hda_codec_driver inherit these
    new struct hdac_device and struct hdac_driver, respectively.

    The bus registration is done in subsys_initcall() to assure it
    before any other driver registrations.

    Signed-off-by: Takashi Iwai

    Takashi Iwai