From: Takashi Iwai Date: Thu, 15 Oct 2015 19:35:53 +0000 (+0200) Subject: ALSA: hda - Add api_version to hda_device_id struct X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=93ed8560e98afc486df94f5a6238c1f0894b38b8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ALSA: hda - Add api_version to hda_device_id struct For distinguishing the difference between HDA legacy and ext codec driver entries, we need to expose the value corresponding to type field. This patch adds a new field, api_version, to hda_device_id struct, so that this information is embedded in modalias string. Although the information is basically redundant (struct hdac_device already has type field), the helper that extracts from MODULE_DEVICE_TABLE() won't take it account except for the exported table entries themselves. So we need to put the same information in the table, too. Reviewed-by: Vinod Koul Tested-by: Subhransu S Prusty Signed-off-by: Takashi Iwai --- diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h index 49df61c7afdc..b35bf59a1ecc 100644 --- a/include/sound/hdaudio.h +++ b/include/sound/hdaudio.h @@ -33,6 +33,7 @@ extern struct bus_type snd_hda_bus_type; struct hda_device_id { __u32 vendor_id; __u32 rev_id; + __u8 api_version; const char *name; unsigned long driver_data; };