OSDN Git Service

audio_route: fix crash with unsupported control types
authorEric Laurent <elaurent@google.com>
Wed, 18 Dec 2013 17:58:04 +0000 (09:58 -0800)
committerEric Laurent <elaurent@google.com>
Wed, 18 Dec 2013 20:43:32 +0000 (12:43 -0800)
commitc5b5f6b344e3d8448e436835e5214364469614f6
treec441798b537a4947b179628bcd0a9340e43cbacd
parent52a64a571f037c5b519b98c69a3b47466d4accce
audio_route: fix crash with unsupported control types

Check if control type is supported before accessing xxx_value
fields in mixer_state structure.

Also remove unused parameter warning.

Change-Id: I9005d4760e55f0798d576bd4507700e198900311
audio_route/audio_route.c