From patchwork Tue Oct 20 08:45:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: han.lu@intel.com X-Patchwork-Id: 7443871 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BD7F29F36A for ; Tue, 20 Oct 2015 08:49:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 007EA20642 for ; Tue, 20 Oct 2015 08:49:34 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 123BC20640 for ; Tue, 20 Oct 2015 08:49:33 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4000826658E; Tue, 20 Oct 2015 10:49:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id DEDF4266283; Tue, 20 Oct 2015 10:48:44 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id B2BB226648B; Tue, 20 Oct 2015 10:48:43 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by alsa0.perex.cz (Postfix) with ESMTP id BFAD4266283 for ; Tue, 20 Oct 2015 10:48:38 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 20 Oct 2015 01:48:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,706,1437462000"; d="scan'208";a="831049933" Received: from hanlu-optiplex-9020.sh.intel.com ([10.239.13.25]) by fmsmga002.fm.intel.com with ESMTP; 20 Oct 2015 01:48:37 -0700 From: han.lu@intel.com To: tiwai@suse.de, liam.r.girdwood@intel.com, bernard.gautier@intel.com, alsa-devel@alsa-project.org Date: Tue, 20 Oct 2015 16:45:46 +0800 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Cc: "Lu, Han" Subject: [alsa-devel] [PATCH V4 2/4] BAT: Use colon instead of comma for separation X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Lu, Han" Use colon instead of comma to separate frequency parameters, for in several locale comma may be handled as decimal point. Signed-off-by: Lu, Han diff --git a/bat/bat.c b/bat/bat.c index 4320e22..2320984 100644 --- a/bat/bat.c +++ b/bat/bat.c @@ -74,7 +74,7 @@ static void get_sine_frequencies(struct bat *bat, char *freq) { char *tmp1; - tmp1 = strchr(freq, ','); + tmp1 = strchr(freq, ':'); if (tmp1 == NULL) { bat->target_freq[1] = bat->target_freq[0] = atof(optarg); } else {