diff options
author | Taylor Holberton <tay10r@protonmail.com> | 2019-04-13 23:03:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-13 23:03:17 -0400 |
commit | 4ea3cdf179e01e3d462b6f5d51ed0e07215766f0 (patch) | |
tree | 1696989ef65b9e8ed5120df595da1ee4ebc850c8 /src | |
parent | 8752514eaf1e530e9fa8db4dda51ce80b775f001 (diff) | |
parent | 7e2581e1df7b56f14c3254c3aa6ef9b536c3e38f (diff) |
Merge pull request #130 from pasqualirb/master
pcm: Remove setting unnecessary parameters
Diffstat (limited to 'src')
-rw-r--r-- | src/pcm.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -359,13 +359,7 @@ int pcm_set_config(struct pcm *pcm, const struct pcm_config *config) param_init(¶ms); param_set_mask(¶ms, SNDRV_PCM_HW_PARAM_FORMAT, pcm_format_to_alsa(config->format)); - param_set_mask(¶ms, SNDRV_PCM_HW_PARAM_SUBFORMAT, - SNDRV_PCM_SUBFORMAT_STD); param_set_min(¶ms, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, config->period_size); - param_set_int(¶ms, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, - pcm_format_to_bits(config->format)); - param_set_int(¶ms, SNDRV_PCM_HW_PARAM_FRAME_BITS, - pcm_format_to_bits(config->format) * config->channels); param_set_int(¶ms, SNDRV_PCM_HW_PARAM_CHANNELS, config->channels); param_set_int(¶ms, SNDRV_PCM_HW_PARAM_PERIODS, config->period_count); |