History log of /external/adhd/cras/src/tests/card_config_unittest.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
34dfe567ba42b42b4ec701abe24187715aad8092 09-Aug-2016 Hsin-Yu Chao <hychao@chromium.org> CRAS: alsa_mixer - Allow control and jack to have NULL volume curve

Originally we create default volume curve for every output control
and jack if card config doesn't specify their own volume curve. This
makes it difficult to decide which curve to use for given active
output node in more complicated case.
This change allows mixer control and jack to have NULL volume curve
while not changing the behavior because card mixer always has a
non-NULL volume curve as fallback option.

BUG=chromium:634958
TEST=Output from speaker and headphone, adjust output volume.

Change-Id: I4706afb77bab01e9f0cc88597c748da1b928aabf
Reviewed-on: https://chromium-review.googlesource.com/367680
Commit-Ready: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
/external/adhd/cras/src/tests/card_config_unittest.cc
1f05a99ab19440dd99d5d532a69f2152aa8d08cb 17-Jun-2016 John Muir <muirj@google.com> CRAS: Use a define to determine the /tmp directory in unittests.

In Brillo/Android, the tmp directory is /data/local/tmp. Some
unittests try to create files in /tmp. Change those to get the
/tmp directory from CRAS_UT_TMPDIR so that it can be set by the
build system (which doesn't use configure or Makefile.am).

BUG=None
TEST=Compile and test passes on ChromiumOS.

Change-Id: I9c2f4f07ca0febcd6897eaf1c3a5b63d4fef1171
Reviewed-on: https://chromium-review.googlesource.com/353332
Commit-Ready: John Muir <muirj@google.com>
Tested-by: John Muir <muirj@google.com>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
/external/adhd/cras/src/tests/card_config_unittest.cc
529f20db5ce9d51d6651504e71a5150c96cfcc1a 21-Jun-2012 Dylan Reid <dgreid@chromium.org> CRAS: fix unit tests run from chroot.

Compile in the chroot is more picky about casting, and unused variables.

BUG=none
TEST=run modified UTs

Change-Id: I658e6be1cefcf50681ab0932909a9ddb25d5a319
Signed-off-by: Dylan Reid <dgreid@chromium.org>
/external/adhd/cras/src/tests/card_config_unittest.cc
dee1b2c0913b73ec40580ae79067cfae4e3b82c4 05-Jun-2012 Dylan Reid <dgreid@chromium.org> CRAS: config - Handle explicit curves.

Add ability to specify a curve in the config file for a card. An
explicit curve gives a value in dB*100 for each volume setting.

BUG=chromium-os:25412
TEST=updated card_config unittest.

Change-Id: Ib151db09dd2d387423b041cb78e4b0297e1bbf5c
Signed-off-by: Dylan Reid <dgreid@chromium.org>
/external/adhd/cras/src/tests/card_config_unittest.cc
79e2ee9a772acb40572ce8165bdbd730d9e4b6df 31-May-2012 Dylan Reid <dgreid@chromium.org> CRAS: Add card_config handler.

The card_config will be broken out of alsa_card. Add the basics and unit
test the current features. card_config is just unit tested, not yet live.

BUG=chromium-os:20908
TEST=added card_config_unittest

Change-Id: Ibaecd19e39597e05f13d0e3846ae4840d2a8d566
Signed-off-by: Dylan Reid <dgreid@chromium.org>
/external/adhd/cras/src/tests/card_config_unittest.cc