Home
last modified time | relevance | path

Searched refs:pcm (Results 1 – 24 of 24) sorted by relevance

/device/linaro/hikey/hifi/xaf/host-apf/playback/tinyalsa/
Dpcm.c237 struct pcm { struct
256 unsigned int pcm_get_buffer_size(struct pcm *pcm) in pcm_get_buffer_size() argument
258 return pcm->buffer_size; in pcm_get_buffer_size()
261 const char* pcm_get_error(struct pcm *pcm) in pcm_get_error() argument
263 return pcm->error; in pcm_get_error()
266 unsigned int pcm_get_subdevice(struct pcm *pcm) in pcm_get_subdevice() argument
268 return pcm->subdevice; in pcm_get_subdevice()
271 static int oops(struct pcm *pcm, int e, const char *fmt, ...) in oops() argument
277 vsnprintf(pcm->error, PCM_ERROR_MAX, fmt, ap); in oops()
279 sz = strlen(pcm->error); in oops()
[all …]
Dasoundlib.h37 struct pcm;
151 struct pcm *pcm_open(unsigned int card, unsigned int device,
153 int pcm_close(struct pcm *pcm);
154 int pcm_is_ready(struct pcm *pcm);
188 int pcm_get_config(struct pcm *pcm, struct pcm_config *config);
189 int pcm_set_config(struct pcm *pcm, struct pcm_config *config);
192 const char *pcm_get_error(struct pcm *pcm);
202 unsigned int pcm_get_buffer_size(struct pcm *pcm);
203 unsigned int pcm_frames_to_bytes(struct pcm *pcm, unsigned int frames);
204 unsigned int pcm_bytes_to_frames(struct pcm *pcm, unsigned int bytes);
[all …]
/device/linaro/hikey/hifi/xaf/host-apf/playback/
Dxa_playback.c234 struct pcm *pcm; in xa_playback_open() local
253 pcm = pcm_open(card, device, PCM_OUT, &config); in xa_playback_open()
254 if (!pcm || !pcm_is_ready(pcm)) { in xa_playback_open()
256 device, pcm_get_error(pcm)); in xa_playback_open()
260 return pcm; in xa_playback_open()
293 struct pcm *pcm;
322 pcm = pcm_open(card, device, PCM_OUT, &config);
323 if (!pcm || !pcm_is_ready(pcm)) {
325 device, pcm_get_error(pcm));
329 size = pcm_frames_to_bytes(pcm, pcm_get_buffer_size(pcm));
[all …]
/device/generic/car/emulator/audio/driver/
Dext_pcm.c82 pcm_write(ext_pcm->pcm, (void *)ext_pcm->mixer_pipeline.buffer, in mixer_thread_loop()
117 shared_ext_pcm->pcm = pcm_open(card, device, flags, config); in ext_pcm_open()
139 if (ext_pcm == NULL || ext_pcm->pcm == NULL) { in ext_pcm_close()
150 pcm_close(ext_pcm->pcm); in ext_pcm_close()
164 if (ext_pcm == NULL || ext_pcm->pcm == NULL) { in ext_pcm_is_ready()
168 return pcm_is_ready(ext_pcm->pcm); in ext_pcm_is_ready()
173 if (ext_pcm == NULL || ext_pcm->pcm == NULL) { in ext_pcm_write()
181 if (ext_pcm == NULL || ext_pcm->pcm == NULL) { in ext_pcm_get_error()
185 return pcm_get_error(ext_pcm->pcm); in ext_pcm_get_error()
190 if (ext_pcm == NULL || ext_pcm->pcm == NULL) { in ext_pcm_frames_to_bytes()
[all …]
Dext_pcm.h34 struct pcm *pcm; member
Daudio_hw.h79 struct pcm *pcm; // Protected by this->lock member
Daudio_hw.c756 struct pcm *pcm = NULL; in in_read_worker() local
767 if (pcm) { in in_read_worker()
768 pcm_close(pcm); // Frees pcm in in_read_worker()
769 pcm = NULL; in in_read_worker()
789 if (!pcm) { in in_read_worker()
790 pcm = pcm_open(PCM_CARD, PCM_DEVICE, in in_read_worker()
792 if (!pcm_is_ready(pcm)) { in in_read_worker()
794 pcm_get_error(pcm), in in_read_worker()
802 buffer_size = pcm_frames_to_bytes(pcm, buffer_frames); in in_read_worker()
811 int ret = pcm_read(pcm, buffer, pcm_frames_to_bytes(pcm, buffer_frames)); in in_read_worker()
[all …]
/device/amlogic/yukawa/hal/audio/
Daudio_hw.h91 struct pcm *pcm; member
107 struct pcm *pcm; member
Daudio_hw.c86 static int get_pcm_timestamp(struct pcm* pcm, uint32_t sample_rate, struct aec_info* info, in get_pcm_timestamp() argument
89 if (pcm_get_htimestamp(pcm, &info->available, &info->timestamp) < 0) { in get_pcm_timestamp()
97 frames = pcm_get_buffer_size(pcm) - info->available; in get_pcm_timestamp()
171 out->pcm = pcm_open(CARD_OUT, out_port, PCM_OUT | PCM_MONOTONIC, &out->config); in start_output_stream()
172 if ((out->pcm != NULL) && pcm_is_ready(out->pcm)) { in start_output_stream()
175 ALOGE("cannot open pcm_out driver: %s", pcm_get_error(out->pcm)); in start_output_stream()
176 if (out->pcm != NULL) { in start_output_stream()
177 pcm_close(out->pcm); in start_output_stream()
178 out->pcm = NULL; in start_output_stream()
242 pcm_close(out->pcm); in do_output_standby()
[all …]
/device/generic/goldfish/audio/
Dtalsa.cpp121 PcmPtr pcm = in pcmOpen() local
125 if (::pcm_is_ready(pcm.get())) { in pcmOpen()
126 return pcm; in pcmOpen()
131 pcm_get_error(pcm.get())); in pcmOpen()
Ddevice_port_source.cpp307 std::vector<float> pcm(sz); in BusySignalGenerator() local
310 pcm[i] = .5 * (sin(480 * a) + sin(620 * a)); in BusySignalGenerator()
312 mValues = convertFloatsToInt16(pcm); in BusySignalGenerator()
347 explicit RepeatGenerator(const std::vector<float> &pcm) in RepeatGenerator()
348 : mValues(convertFloatsToInt16(pcm)) {} in RepeatGenerator()
Dtalsa.h31 typedef struct pcm pcm_t;
/device/linaro/poplar/audio/
Daudio_hw.c79 struct pcm *pcm; member
103 …out->pcm = pcm_open(CARD_OUT, PORT_CODEC, PCM_OUT | PCM_MMAP | PCM_NOIRQ | PCM_MONOTONIC, &out->co… in start_output_stream()
105 if (!pcm_is_ready(out->pcm)) { in start_output_stream()
106 ALOGE("cannot open pcm_out driver: %s", pcm_get_error(out->pcm)); in start_output_stream()
107 pcm_close(out->pcm); in start_output_stream()
165 pcm_close(out->pcm); in do_output_standby()
166 out->pcm = NULL; in do_output_standby()
267 ret = pcm_mmap_write(out->pcm, buffer, out_frames * frame_size); in out_write()
296 if (out->pcm) { in out_get_presentation_position()
298 if (pcm_get_htimestamp(out->pcm, &avail, timestamp) == 0) { in out_get_presentation_position()
/device/linaro/dragonboard/audio/
Daudio_hw.c212 struct pcm *pcm; // Protected by this->lock member
421 struct pcm *pcm = NULL; in out_write_worker() local
431 if (pcm) { in out_write_worker()
432 pcm_close(pcm); // Frees pcm in out_write_worker()
433 pcm = NULL; in out_write_worker()
459 if (!pcm) { in out_write_worker()
460 pcm = pcm_open(PCM_CARD, PCM_DEVICE, in out_write_worker()
462 if (!pcm_is_ready(pcm)) { in out_write_worker()
464 pcm_get_error(pcm), in out_write_worker()
473 buffer_size = pcm_frames_to_bytes(pcm, buffer_frames); in out_write_worker()
[all …]
/device/google/cuttlefish/guest/hals/audio/
Daudio_hw.c215 struct pcm *pcm; // Protected by this->lock member
424 struct pcm *pcm = NULL; in out_write_worker() local
434 if (pcm) { in out_write_worker()
435 pcm_close(pcm); // Frees pcm in out_write_worker()
436 pcm = NULL; in out_write_worker()
462 if (!pcm) { in out_write_worker()
463 pcm = pcm_open(PCM_CARD, PCM_DEVICE, in out_write_worker()
465 if (!pcm_is_ready(pcm)) { in out_write_worker()
467 pcm_get_error(pcm), in out_write_worker()
476 buffer_size = pcm_frames_to_bytes(pcm, buffer_frames); in out_write_worker()
[all …]
/device/linaro/hikey/audio/
Daudio_hw.c113 struct pcm *pcm; member
210 ret = pcm_mmap_write(out->pcm, p_buf, size); in xa_device_run()
265 …out->pcm = pcm_open(CARD_OUT, PORT_CODEC, PCM_OUT | PCM_MMAP | PCM_NOIRQ | PCM_MONOTONIC, &out->co… in start_output_stream()
267 if (!pcm_is_ready(out->pcm)) { in start_output_stream()
268 ALOGE("cannot open pcm_out driver: %s", pcm_get_error(out->pcm)); in start_output_stream()
269 pcm_close(out->pcm); in start_output_stream()
327 pcm_close(out->pcm); in do_output_standby()
328 out->pcm = NULL; in do_output_standby()
448 ret = pcm_mmap_write(out->pcm, buffer, out_frames * frame_size); in out_write()
480 if (out->pcm) { in out_get_presentation_position()
[all …]
/device/linaro/hikey/hifi/xaf/host-apf/
DAndroid.mk23 playback/tinyalsa/pcm.c \
/device/linaro/hikey/hifi/xaf/hifi-dpf/build_hikey/
DMakefile97 PLUGINO2OBJS += xa-pcm.o
Dmap_hikey.txt141 LOAD objs/hikey/xa-pcm.o
750 .rodata 0xc0000c90 0x2ed objs/hikey/xa-pcm.o
806 0xc0007350 0x86 objs/hikey/xa-pcm.o
1007 .text 0xc000f098 0xf0f objs/hikey/xa-pcm.o
1159 .literal 0xc00192fc 0x0 objs/hikey/xa-pcm.o
1268 .data 0xc001a0f0 0x0 objs/hikey/xa-pcm.o
1390 .bss 0xc011b628 0x0 objs/hikey/xa-pcm.o
1497 0x00000260 0x20 objs/hikey/xa-pcm.o
1617 0x0000096b 0x23 objs/hikey/xa-pcm.o
1668 .debug_info 0x00012a66 0x1841 objs/hikey/xa-pcm.o
[all …]
Dxa_hikey.img227 ���audio-decoder/pcm���audio-decoder/vorbis����mixer���FACTORY�[%s.%s] Unknown component type: %s @…
303 �PCM�../plugins/cadence/pcm_proc/xa-pcm.c����[%s.%s] PCM format converter initialized: PCM%u -> PCM…
/device/linaro/hikey/hikey960/
Ddevice-hikey960.mk32 …device/linaro/hikey/bt-wifi-firmware-util/TIInit_11.8.32-pcm-960.bts:$(TARGET_COPY_OUT_VENDOR)/fir…
/device/google/crosshatch-sepolicy/vendor/qcom/common/
Dfile_contexts40 # pcm device receiving rainbow sensor data
/device/google/bonito-sepolicy/vendor/qcom/common/
Dfile_contexts40 # pcm device receiving rainbow sensor data
/device/linaro/hikey/hifi/firmware/
Dhifi-hikey960.img229 ���audio-decoder/pcm���audio-decoder/vorbis����mixer���FACTORY�[%s.%s] Unknown component type: %s @…
305 �PCM�../plugins/cadence/pcm_proc/xa-pcm.c����[%s.%s] PCM format converter initialized: PCM%u -> PCM…