agm: add support to check acdb path without variant name
For a given platform, it is possible to have different
variants (ex. wsa883x/wsa884x) embeeded in the snd_card_name.
However, both the variants may use the same acdb binary file.
Existing logic in AGM checks for acdb path including variant name,
but fopen will fail in this case because there is no acdb path
that exists (ex. kalama_cdp_wsa883x). Add support to check acdb
path without variant name. This would result in successful opening
of acdb path (ex.kalama_cdp) especially when both variants use
the same acdb binary files.
Change-Id: I30c0db7fb6a3b494d075ebede9800496f435e900
3 files changed