From 69e07f5a7b3934fac5bcf4c554e14e0d0b3cec47 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 29 Aug 2007 22:19:18 +0000 Subject: Fix memory issue. --- audio/pcm_bluetooth.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'audio/pcm_bluetooth.c') 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; } -- cgit