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)
committerGlenn Kasten <gkasten@android.com>
Mon, 3 Feb 2014 17:19:26 +0000 (09:19 -0800)
commitbfbed3a20b64392f2162380bc4b5a26a126127c7
treed054ab09d851d860c62bbed5abcf3302e0108c48
parentb4522d546444eb1f5ffe8f78c6ea6ef0d4de04d2
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