Home
last modified time | relevance | path

Searched refs:rate (Results 1 – 25 of 119) sorted by relevance

12345

/hardware/qcom/audio/legacy/libalsa-intf/
Darec.c94 unsigned int requestedRate = pcm->rate; in set_params()
118 param_set_int(params, SNDRV_PCM_HW_PARAM_RATE, pcm->rate); in set_params()
178 int record_file(unsigned rate, unsigned channels, int fd, unsigned count, unsigned flags, const ch… in record_file() argument
208 pcm->rate = rate; in record_file()
387 int rec_raw(const char *fg, const char *device, int rate, int ch, in rec_raw() argument
408 count = rate * ch * 2; in rec_raw()
414 ch, rate, 16, format); in rec_raw()
421 return record_file(rate, ch, fd, count, flag, device); in rec_raw()
424 int rec_wav(const char *fg, const char *device, int rate, int ch, const char *fn) in rec_wav() argument
449 hdr.sample_rate = rate; in rec_wav()
[all …]
Daplay.c90 unsigned int requestedRate = pcm->rate; in set_params()
115 param_set_int(params, SNDRV_PCM_HW_PARAM_RATE, pcm->rate); in set_params()
164 static int play_file(unsigned rate, unsigned channels, int fd, in play_file() argument
235 pcm->rate = rate; in play_file()
472 int play_raw(const char *fg, int rate, int ch, const char *device, const char *fn) in play_raw() argument
495 return play_file(rate, ch, fd, flag, device, 0); in play_raw()
498 int play_wav(const char *fg, int rate, int ch, const char *device, const char *fn) in play_wav() argument
516 hdr.sample_rate = rate; in play_wav()
544 hdr.sample_rate = rate; in play_wav()
564 int rate = 44100; in main() local
[all …]
/hardware/qcom/audio/legacy/alsa_sound/
DALSAStreamOps.cpp96 uint32_t *rate, in set() argument
134 if (rate && *rate > 0) { in set()
135 if (mHandle->sampleRate != *rate) in set()
137 } else if (rate) { in set()
138 *rate = mHandle->sampleRate; in set()
/hardware/interfaces/sensors/2.0/vts/functional/
DVtsHalSensorsV2_0TargetTest.cpp217 RateLevel rate; in TEST_P() local
218 if (!getDirectChannelSensor(&sensor, &memType, &rate)) { in TEST_P()
223 configDirectReport(sensor.sensorHandle, -1, rate, [](Result result, int32_t /* reportToken */) { in TEST_P()
234 RateLevel rate; in TEST_P() local
236 if (!getDirectChannelSensor(&sensor, &memType, &rate)) { in TEST_P()
252 sensor.sensorHandle, directChannelHandle, rate, in TEST_P()
267 sensor.sensorHandle, directChannelHandle, rate, in TEST_P()
/hardware/qcom/audio/hal/audio_extn/
Dhfp.c75 .rate = 8000,
433 int rate; in audio_extn_hfp_set_parameters() local
457 rate = atoi(value); in audio_extn_hfp_set_parameters()
458 if (rate == 8000){ in audio_extn_hfp_set_parameters()
460 pcm_config_hfp.rate = rate; in audio_extn_hfp_set_parameters()
461 } else if (rate == 16000){ in audio_extn_hfp_set_parameters()
463 pcm_config_hfp.rate = rate; in audio_extn_hfp_set_parameters()
/hardware/qcom/msm8960/original-kernel-headers/linux/mfd/wcd9xxx/
Dwcd9xxx-slimslave.h108 unsigned int tot_ch, unsigned int rate);
110 unsigned int tot_ch, unsigned int rate);
/hardware/interfaces/tv/tuner/1.0/
Dtypes.hal102 * 1/2 conv. code rate
106 * 1/3 conv. code rate
110 * 1/4 conv. code rate
114 * 1/5 conv. code rate
118 * 2/3 conv. code rate
122 * 2/5 conv. code rate
126 * 2/9 conv. code rate
130 * 3/4 conv. code rate
134 * 3/5 conv. code rate
138 * 4/5 conv. code rate
[all …]
/hardware/libhardware/modules/usbaudio/
Daudio_hal.c294 uint32_t rate = proxy_get_sample_rate(&((struct stream_out*)stream)->proxy); in out_get_sample_rate() local
295 ALOGV("out_get_sample_rate() = %d", rate); in out_get_sample_rate()
296 return rate; in out_get_sample_rate()
299 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) in out_set_sample_rate() argument
573 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(&out->profile); in adev_open_output_stream()
575 proxy_config.rate = config->sample_rate; in adev_open_output_stream()
577 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(&out->profile); in adev_open_output_stream()
690 uint32_t rate = proxy_get_sample_rate(&((const struct stream_in *)stream)->proxy); in in_get_sample_rate() local
691 ALOGV("in_get_sample_rate() = %d", rate); in in_get_sample_rate()
692 return rate; in in_get_sample_rate()
[all …]
/hardware/interfaces/sensors/1.0/
DISensors.hal84 * be lost: transitioning from one sampling rate to the other cannot cause
176 * This function start, modify rate or stop direct report of a sensor in a
180 * with STOP rate, sensorHandle can be -1 to denote all active
183 * @param rate rate level, see RateLevel enum.
186 * rate level is not supported by sensor, channelHandle does not
190 * the same type in a single direct channel. Ignored if rate is
194 int32_t sensorHandle, int32_t channelHandle, RateLevel rate)
/hardware/libhardware/modules/audio_remote_submix/
Daudio_hw.cpp636 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) in audio_config_compare() argument
642 if (rate != out->dev->routes[out->route_handle].config.output_sample_rate) { in audio_config_compare()
645 out->dev->routes[out->route_handle].config.output_sample_rate, rate, in audio_config_compare()
650 if (!sample_rate_supported(rate)) { in audio_config_compare()
651 ALOGE("out_set_sample_rate(rate=%u) rate unsupported", rate); in audio_config_compare()
654 SUBMIX_ALOGV("out_set_sample_rate(rate=%u)", rate); in audio_config_compare()
655 out->dev->routes[out->route_handle].config.common.sample_rate = rate; in audio_config_compare()
996 const uint32_t rate = in->dev->routes[in->route_handle].config.input_sample_rate; in audio_config_compare() local
998 const uint32_t rate = in->dev->routes[in->route_handle].config.common.sample_rate; in audio_config_compare() local
1000 SUBMIX_ALOGV("in_get_sample_rate() returns %u", rate); in audio_config_compare()
[all …]
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/common/src/
Dvidc_common.cpp386 rate(0),
394 int rate, int scale, int frameCount) : in IvfFileHeader() argument
398 this->rate = rate; in IvfFileHeader()
/hardware/interfaces/sensors/1.0/default/include/sensors/
Dconvert.h37 int convertFromRateLevel(RateLevel rate);
/hardware/interfaces/sensors/common/default/2.X/multihal/include/
DSubHalWrapper.h85 RateLevel rate,
134 Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, RateLevel rate, in configDirectReport() argument
136 return mSubHal->configDirectReport(sensorHandle, channelHandle, rate, _hidl_cb); in configDirectReport()
/hardware/interfaces/audio/6.0/
DIStream.hal47 * Return the sampling rate in Hz.
49 * @return sampleRateHz sample rate in Hz.
55 * A supported native sample rate is a sample rate that can be efficiently
56 * played by the hardware (typically without sample-rate conversions).
75 * Sets the sampling rate of the stream. Calling this method is equivalent
79 * @param sampleRateHz sample rate in Hz.
146 * @return sampleRateHz sample rate in Hz.
/hardware/interfaces/audio/5.0/
DIStream.hal47 * Return the sampling rate in Hz.
49 * @return sampleRateHz sample rate in Hz.
55 * A supported native sample rate is a sample rate that can be efficiently
56 * played by the hardware (typically without sample-rate conversions).
75 * Sets the sampling rate of the stream. Calling this method is equivalent
79 * @param sampleRateHz sample rate in Hz.
144 * @return sampleRateHz sample rate in Hz.
/hardware/interfaces/audio/4.0/
DIStream.hal47 * Return the sampling rate in Hz.
49 * @return sampleRateHz sample rate in Hz.
55 * A supported native sample rate is a sample rate that can be efficiently
56 * played by the hardware (typically without sample-rate conversions).
75 * Sets the sampling rate of the stream. Calling this method is equivalent
79 * @param sampleRateHz sample rate in Hz.
144 * @return sampleRateHz sample rate in Hz.
/hardware/libhardware/include/hardware/
Dlocal_time_hal.h89 int (*set_local_slew)(struct local_time_hw_device* dev, int16_t rate);
/hardware/qcom/display/msm8994/libhwcomposer/
Dhwc_qclient.cpp297 uint32_t rate = roundOff(refresh_rate); in configureDynRefreshRate() local
298 if((rate >= mdpHw.getMinFpsSupported() && in configureDynRefreshRate()
299 rate <= mdpHw.getMaxFpsSupported())) { in configureDynRefreshRate()
300 setRefreshRate(ctx, dpy, rate); in configureDynRefreshRate()
305 mdpHw.getMaxFpsSupported(), rate); in configureDynRefreshRate()
/hardware/libhardware/modules/audio/
Daudio_hw.c74 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) in out_set_sample_rate() argument
78 ALOGV("out_set_sample_rate: %d", rate); in out_set_sample_rate()
79 out->sample_rate = rate; in out_set_sample_rate()
225 static int in_set_sample_rate(struct audio_stream *stream, uint32_t rate) in in_set_sample_rate() argument
229 ALOGV("in_set_sample_rate: %u", rate); in in_set_sample_rate()
230 in->sample_rate = rate; in in_set_sample_rate()
/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/
DSensorsHidlTestBase.h195 RateLevel rate,
469 void testDirectReportOperation(SensorTypeVersion type, SharedMemType memType, RateLevel rate, in testDirectReportOperation() argument
490 if (!isDirectReportRateSupported(sensor, rate)) { in testDirectReportOperation()
521 configDirectReport(sensor.sensorHandle, channelHandle, rate, in testDirectReportOperation()
532 switch (rate) { in testDirectReportOperation()
639 static bool isDirectReportRateSupported(SensorInfoType sensor, RateLevel rate) { in isDirectReportRateSupported() argument
643 return r >= static_cast<unsigned int>(rate); in isDirectReportRateSupported()
/hardware/qcom/wlan/qcwcn/wifi_hal/
Dwifilogger_diag.cpp1326 static u8 cck_ratecode_mapping(u8 rate) in cck_ratecode_mapping() argument
1330 switch (rate) { in cck_ratecode_mapping()
1350 static u8 ofdm_ratecode_mapping(u8 rate) in ofdm_ratecode_mapping() argument
1354 rate_code = rate - 8; in ofdm_ratecode_mapping()
1371 if ((mcs.mcs_s.rate & 0xF) == index) in get_rate_v1()
1377 if ((mcs.mcs_s.rate & 0xF) == index) in get_rate_v1()
1384 if (mcs.mcs_s.rate == index) { in get_rate_v1()
1393 if (mcs.mcs_s.rate == index) { in get_rate_v1()
1407 if (mcs.mcs_s.rate == index) { in get_rate_v1()
1418 if (mcs.mcs_s.rate == index) { in get_rate_v1()
[all …]
/hardware/interfaces/gnss/1.0/
DIGnssGeofencing.hal49 * NOTE: This is not to be confused with the rate that the GNSS is polled at.
50 * It is acceptable to dynamically vary the rate of sampling the GNSS for
51 * power-saving reasons; thus the rate of sampling may be faster or slower
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/common/src/
Dvidc_common.cpp321 int rate, int scale, int frameCount) : in IvfFileHeader() argument
325 this->rate = rate; in IvfFileHeader()
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/common/inc/
Dvidc_debug.h201 uint32_t rate; member
208 int rate, int scale, int nFrameCount);
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/common/inc/
Dvidc_debug.h210 uint32_t rate; member
217 int rate, int scale, int nFrameCount);

12345