/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include <stddef.h>

/* Default to 1dB per tick.  Volume level 100 = 0dB level 0 = -100dB. */
long cras_volume_curve_get_db_for_index(size_t volume)
{
	/* dB to cut * 100 */
	return (volume - 100) * 100;
}

/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include <stddef.h>

/* Default to 1dB per tick.
 * Volume = 100 -> 0dB.
 * Volume = 0 -> -100dB. */
long cras_volume_curve_get_db_for_index(size_t volume)
{
	/* dB to cut * 100 */
	return (volume - 100) * 100;
}

Fix poorly worded volume comment.
CRAS: Fix poorly worded volume comment.

BUG=none
TEST=none

Change-Id: I7a5854c84bc48a393fa65c374fddd83ce7721f8d
Signed-off-by: Dylan Reid <c791bfe44996c1eed9c7149a0c5f12a86d58eb85@chromium.org>
