Home
last modified time | relevance | path

Searched refs:hwparams (Results 1 – 12 of 12) sorted by relevance

/third_party/pulseaudio/src/modules/alsa/
Dalsa-util.c51 static int set_format(snd_pcm_t *pcm_handle, snd_pcm_hw_params_t *hwparams, pa_sample_format_t *f) { in set_format() argument
89 pa_assert(hwparams); in set_format()
92 if ((ret = snd_pcm_hw_params_set_format(pcm_handle, hwparams, format_trans[*f])) >= 0) in set_format()
122 if ((ret = snd_pcm_hw_params_set_format(pcm_handle, hwparams, format_trans[*f])) >= 0) in set_format()
134 if ((ret = snd_pcm_hw_params_set_format(pcm_handle, hwparams, format_trans[*f])) >= 0) in set_format()
145 static int set_period_size(snd_pcm_t *pcm_handle, snd_pcm_hw_params_t *hwparams, snd_pcm_uframes_t … in set_period_size() argument
150 pa_assert(hwparams); in set_period_size()
154 if (snd_pcm_hw_params_set_period_size_near(pcm_handle, hwparams, &s, &d) < 0) { in set_period_size()
157 if (snd_pcm_hw_params_set_period_size_near(pcm_handle, hwparams, &s, &d) < 0) { in set_period_size()
160 if ((ret = snd_pcm_hw_params_set_period_size_near(pcm_handle, hwparams, &s, &d)) < 0) { in set_period_size()
[all …]
/third_party/alsa-utils/aplay/
Daplay.c103 } hwparams, rhwparams; variable
857 hwparams = rhwparams; in main()
1073 hwparams.channels = channels; in test_wavefile()
1076 if (hwparams.format != DEFAULT_FORMAT && in test_wavefile()
1077 hwparams.format != SND_PCM_FORMAT_U8) in test_wavefile()
1079 hwparams.format = SND_PCM_FORMAT_U8; in test_wavefile()
1086 if (hwparams.format != DEFAULT_FORMAT && in test_wavefile()
1087 hwparams.format != native_format) in test_wavefile()
1090 hwparams.format = native_format; in test_wavefile()
1093 switch (TO_CPU_SHORT(f->byte_p_spl, big_endian) / hwparams.channels) { in test_wavefile()
[all …]
/third_party/pulseaudio/src/tests/
Dalsa-time-test.c25 snd_pcm_hw_params_t *hwparams; in main() local
51 snd_pcm_hw_params_alloca(&hwparams); in main()
74 r = snd_pcm_hw_params_any(pcm, hwparams); in main()
77 r = snd_pcm_hw_params_set_rate_resample(pcm, hwparams, 0); in main()
80 r = snd_pcm_hw_params_set_access(pcm, hwparams, SND_PCM_ACCESS_RW_INTERLEAVED); in main()
83 r = snd_pcm_hw_params_set_format(pcm, hwparams, SND_PCM_FORMAT_S16_LE); in main()
86 r = snd_pcm_hw_params_set_rate_near(pcm, hwparams, &rate, NULL); in main()
89 r = snd_pcm_hw_params_set_channels(pcm, hwparams, CHANNELS); in main()
92 r = snd_pcm_hw_params_set_periods_integer(pcm, hwparams); in main()
95 r = snd_pcm_hw_params_set_periods_near(pcm, hwparams, &periods, &dir); in main()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/audio/alsa/
DSDL_alsa_audio.c429 ALSA_finalize_hardware(_THIS, snd_pcm_hw_params_t *hwparams, int override) in ALSA_finalize_hardware() argument
435 status = ALSA_snd_pcm_hw_params(this->hidden->pcm_handle, hwparams); in ALSA_finalize_hardware()
441 status = ALSA_snd_pcm_hw_params_get_buffer_size(hwparams, &bufsize); in ALSA_finalize_hardware()
457 ALSA_snd_pcm_hw_params_get_period_size(hwparams, &persize, NULL); in ALSA_finalize_hardware()
458 ALSA_snd_pcm_hw_params_get_periods(hwparams, &periods, NULL); in ALSA_finalize_hardware()
473 snd_pcm_hw_params_t *hwparams; in ALSA_set_period_size() local
478 snd_pcm_hw_params_alloca(&hwparams); in ALSA_set_period_size()
479 ALSA_snd_pcm_hw_params_copy(hwparams, params); in ALSA_set_period_size()
493 this->hidden->pcm_handle, hwparams, &frames, NULL); in ALSA_set_period_size()
500 this->hidden->pcm_handle, hwparams, &periods, NULL); in ALSA_set_period_size()
[all …]
/third_party/gstreamer/gstplugins_base/ext/alsa/
Dgstalsasrc.h56 snd_pcm_hw_params_t *hwparams; member
/third_party/alsa-lib/test/
Dpcm.c783 snd_pcm_hw_params_t *hwparams; in main() local
790 snd_pcm_hw_params_alloca(&hwparams); in main()
887 if ((err = set_hwparams(handle, hwparams, transfer_methods[method].access)) < 0) { in main()
/third_party/alsa-utils/speaker-test/
Dspeaker-test.c974 snd_pcm_hw_params_t *hwparams; in main() local
1016 snd_pcm_hw_params_alloca(&hwparams); in main()
1181 if ((err = set_hwparams(handle, hwparams, SND_PCM_ACCESS_RW_INTERLEAVED)) < 0) { in main()
/third_party/alsa-utils/po/
Dja.po1653 msgid "Setting of hwparams failed: %s\n"
1654 msgstr "hwparams の設定に失敗: %s\n"
Deu.po1700 msgid "Setting of hwparams failed: %s\n"
1701 msgstr "hwparams-eko hobespenek huts egin dute: %s\n"
Dsk.po1708 msgid "Setting of hwparams failed: %s\n"
1709 msgstr "Chyba pri nastavovaní hardvérových parametrov (hwparams): %s\n"
Dde.po1670 msgid "Setting of hwparams failed: %s\n"
Dfr.po1688 msgid "Setting of hwparams failed: %s\n"