diff options
author | dvdli <dvdli@google.com> | 2020-10-29 15:32:35 +0800 |
---|---|---|
committer | dvdli <dvdli@google.com> | 2020-10-29 15:32:35 +0800 |
commit | c0c5e7534011a9a3d64b74e0f20a3417fbbbc290 (patch) | |
tree | f23f8de7ed8680d4922419c74bc340df2213703f | |
parent | e43e85c1885d935e36c53fc04c4f1660c2b3fd3a (diff) |
AOSP CL "tinyalsa: fix typos in tinyplay and asoundlib.h"
commit f451f433520fc154de6e371747f21d2f746da83b
author Glenn Kasten <gkasten@google.com>
tinyalsa: fix typos in tinyplay and asoundlib.h
Test: run tinyplay and look for typos in the output
Change-Id: Ieedcc1b7610700aa3d5ff913d5c01105db2c1601
-rw-r--r-- | include/tinyalsa/mixer.h | 2 | ||||
-rw-r--r-- | utils/tinyplay.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/tinyalsa/mixer.h b/include/tinyalsa/mixer.h index 2acdd54..77d5d01 100644 --- a/include/tinyalsa/mixer.h +++ b/include/tinyalsa/mixer.h @@ -133,7 +133,7 @@ int mixer_ctl_set_array(struct mixer_ctl *ctl, const void *array, size_t count); int mixer_ctl_set_enum_by_string(struct mixer_ctl *ctl, const char *string); -/* Determe range of integer mixer controls */ +/* Determine range of integer mixer controls */ int mixer_ctl_get_range_min(const struct mixer_ctl *ctl); int mixer_ctl_get_range_max(const struct mixer_ctl *ctl); diff --git a/utils/tinyplay.c b/utils/tinyplay.c index 8b01a1d..c006acc 100644 --- a/utils/tinyplay.c +++ b/utils/tinyplay.c @@ -376,8 +376,10 @@ int sample_is_playable(const struct cmd *cmd) can_play = check_param(params, PCM_PARAM_RATE, cmd->config.rate, "sample rate", "hz"); can_play &= check_param(params, PCM_PARAM_CHANNELS, cmd->config.channels, "sample", " channels"); can_play &= check_param(params, PCM_PARAM_SAMPLE_BITS, cmd->bits, "bits", " bits"); - can_play &= check_param(params, PCM_PARAM_PERIOD_SIZE, cmd->config.period_size, "period size", ""); - can_play &= check_param(params, PCM_PARAM_PERIODS, cmd->config.period_count, "period count", ""); + can_play &= check_param(params, PCM_PARAM_PERIOD_SIZE, cmd->config.period_size, "period size", + " frames"); + can_play &= check_param(params, PCM_PARAM_PERIODS, cmd->config.period_count, "period count", + " frames"); pcm_params_free(params); |