diff options
author | Johan Gustavsson <johan1.gustavsson.x@sonymobile.com> | 2013-11-08 10:54:12 +0100 |
---|---|---|
committer | Hidenari Koshimae <hidenari.koshimae@sonymobile.com> | 2014-03-07 17:06:18 +0900 |
commit | 76824ba7db04ad3f2719d484b40a73b506aba587 (patch) | |
tree | dd3a9159200c4d59610c17ba4865a6234e23eb97 /audio_route | |
parent | 69e382cc98d84c2fee6461a21a91b8dfbd66c6b5 (diff) | |
download | android_system_media-76824ba7db04ad3f2719d484b40a73b506aba587.tar.gz android_system_media-76824ba7db04ad3f2719d484b40a73b506aba587.tar.bz2 android_system_media-76824ba7db04ad3f2719d484b40a73b506aba587.zip |
Added parsing of hexadecimal values
Parsing of hexadecimal values enables expressing e.g. IIR filter
values in hexadecimal format.
Change-Id: Iaa2913777f96176cc4ffa62d9f44cf2e4a5b5c5b
Diffstat (limited to 'audio_route')
-rw-r--r-- | audio_route/audio_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio_route/audio_route.c b/audio_route/audio_route.c index d8e41511..8d024e50 100644 --- a/audio_route/audio_route.c +++ b/audio_route/audio_route.c @@ -410,7 +410,7 @@ static void start_tag(void *data, const XML_Char *tag_name, switch (mixer_ctl_get_type(ctl)) { case MIXER_CTL_TYPE_BOOL: case MIXER_CTL_TYPE_INT: - value = atoi((char *)attr_value); + value = (int) strtol((char *)attr_value, NULL, 0); break; case MIXER_CTL_TYPE_ENUM: value = mixer_enum_string_to_value(ctl, (char *)attr_value); |