mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
audio: Support new and old mixer paths locations
Change-Id: Ifa2a55cbfe45ab9d53cd23098012443f9b32ca31
This commit is contained in:
parent
2beff4222c
commit
d8d04fd497
1 changed files with 7 additions and 2 deletions
|
@ -539,10 +539,15 @@ static int mixer_init(struct audio_device *adev)
|
|||
}
|
||||
} while (mixer == NULL);
|
||||
|
||||
sprintf(mixer_path, "/system/etc/mixer_paths_%d.xml", card);
|
||||
sprintf(mixer_path, "/vendor/etc/mixer_paths_%d.xml", card);
|
||||
if (access(mixer_path, F_OK) == -1) {
|
||||
ALOGE("%s: Failed to load mixer paths from %s, your system is going to crash",
|
||||
ALOGW("%s: Failed to open mixer paths from %s, retrying with legacy location",
|
||||
__func__, mixer_path);
|
||||
sprintf(mixer_path, "/system/etc/mixer_paths_%d.xml", card);
|
||||
if (access(mixer_path, F_OK) == -1) {
|
||||
ALOGE("%s: Failed to load a mixer paths configuration, your system will crash",
|
||||
__func__);
|
||||
}
|
||||
}
|
||||
|
||||
audio_route = audio_route_init(card, mixer_path);
|
||||
|
|
Loading…
Reference in a new issue