|
|
@ -540,6 +540,11 @@ static int mixer_init(struct audio_device *adev) |
|
|
|
} while (mixer == NULL); |
|
|
|
} while (mixer == NULL); |
|
|
|
|
|
|
|
|
|
|
|
sprintf(mixer_path, "/system/etc/mixer_paths_%d.xml", card); |
|
|
|
sprintf(mixer_path, "/system/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", |
|
|
|
|
|
|
|
__func__, mixer_path); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
audio_route = audio_route_init(card, mixer_path); |
|
|
|
audio_route = audio_route_init(card, mixer_path); |
|
|
|
if (!audio_route) { |
|
|
|
if (!audio_route) { |
|
|
|
ALOGE("%s: Failed to init audio route controls for card %d, aborting.", |
|
|
|
ALOGE("%s: Failed to init audio route controls for card %d, aborting.", |
|
|
|