• Takashi Iwai's avatar
    ALSA: hda - convert to hda_device_id · b9a94a9c
    Takashi Iwai authored
    Finally we have a proper infrastructure to generate the modaliases
    automatically, let's move to hda_device_id from the legacy
    hda_codec_preset that contains basically the same information.
    
    The patch function hook is stored in driver_data field, which is long,
    and we need an explicit cast.  Other than that, the conversion is
    mostly straightforward.  Each entry is even simplified using a macro,
    and the lengthy (and error-prone) manual modaliases got removed.
    
    As a result, we achieved a quite good diet:
     14 files changed, 407 insertions(+), 595 deletions(-)
    Reviewed-by: default avatarVinod Koul <vinod.koul@intel.com>
    Tested-by: default avatarSubhransu S Prusty <subhransu.s.prusty@intel.com>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    b9a94a9c
patch_ca0110.c 2.55 KB