diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-08-29 22:19:18 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-08-29 22:19:18 +0000 |
commit | 69e07f5a7b3934fac5bcf4c554e14e0d0b3cec47 (patch) | |
tree | effad7c282ee3b88914d823fc8ee1343f5df4027 /audio/pcm_bluetooth.c | |
parent | 41b71b230e0aa4b495c091e7d17c6b939ddbce79 (diff) |
Fix memory issue.
Diffstat (limited to 'audio/pcm_bluetooth.c')
-rw-r--r-- | audio/pcm_bluetooth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c index 8ba18464..92a94fc0 100644 --- a/audio/pcm_bluetooth.c +++ b/audio/pcm_bluetooth.c @@ -948,7 +948,7 @@ static int bluetooth_cfg_init(struct ipc_packet *pkt, snd_config_t *conf) return -EINVAL; } - cfg->rate = strtod(rate, NULL); + cfg->rate = atoi(rate); continue; } @@ -991,7 +991,7 @@ static int bluetooth_cfg_init(struct ipc_packet *pkt, snd_config_t *conf) return -EINVAL; } - sbc->subbands = strtod(subbands, NULL); + sbc->subbands = atoi(subbands); continue; } @@ -1001,7 +1001,7 @@ static int bluetooth_cfg_init(struct ipc_packet *pkt, snd_config_t *conf) return -EINVAL; } - sbc->blocks = strtod(blocks, NULL); + sbc->blocks = atoi(blocks); continue; } @@ -1011,7 +1011,7 @@ static int bluetooth_cfg_init(struct ipc_packet *pkt, snd_config_t *conf) return -EINVAL; } - sbc->bitpool = strtod(bitpool, NULL); + sbc->bitpool = atoi(bitpool); continue; } |