/device/linaro/hikey/hifi/xaf/host-apf/playback/tinyalsa/ |
D | pcm.c | 237 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 …]
|
D | asoundlib.h | 37 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/ |
D | xa_playback.c | 234 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/ |
D | ext_pcm.c | 82 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 …]
|
D | ext_pcm.h | 34 struct pcm *pcm; member
|
D | audio_hw.h | 79 struct pcm *pcm; // Protected by this->lock member
|
D | audio_hw.c | 756 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/google/cuttlefish_common/guest/hals/audio/ |
D | audio_hw.c | 205 struct pcm *pcm; // Protected by this->lock member 413 struct pcm *pcm = NULL; in out_write_worker() local 423 if (pcm) { in out_write_worker() 424 pcm_close(pcm); // Frees pcm in out_write_worker() 425 pcm = NULL; in out_write_worker() 451 if (!pcm) { in out_write_worker() 452 pcm = pcm_open(PCM_CARD, PCM_DEVICE, in out_write_worker() 454 if (!pcm_is_ready(pcm)) { in out_write_worker() 456 pcm_get_error(pcm), in out_write_worker() 465 buffer_size = pcm_frames_to_bytes(pcm, buffer_frames); in out_write_worker() [all …]
|
/device/generic/goldfish/audio/ |
D | audio_hw.c | 202 struct pcm *pcm; // Protected by this->lock member 410 struct pcm *pcm = NULL; in out_write_worker() local 420 if (pcm) { in out_write_worker() 421 pcm_close(pcm); // Frees pcm in out_write_worker() 422 pcm = NULL; in out_write_worker() 448 if (!pcm) { in out_write_worker() 449 pcm = pcm_open(PCM_CARD, PCM_DEVICE, in out_write_worker() 451 if (!pcm_is_ready(pcm)) { in out_write_worker() 453 pcm_get_error(pcm), in out_write_worker() 462 buffer_size = pcm_frames_to_bytes(pcm, buffer_frames); in out_write_worker() [all …]
|
/device/linaro/poplar/audio/ |
D | audio_hw.c | 79 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/google/cuttlefish_common/host/frontend/stream_audio/opuscpp/ |
D | opus_wrapper.cc | 101 const std::vector<opus_int16>& pcm, int frame_size) { in Encode() argument 102 constexpr auto sample_size = sizeof(pcm[0]); in Encode() 104 auto data_length = pcm.size() * sample_size; in Encode() 113 encoded.push_back(EncodeFrame(pcm.begin() + (i / sample_size), frame_size)); in Encode()
|
D | opus_wrapper.h | 80 const std::vector<opus_int16>& pcm, int frame_size);
|
/device/linaro/hikey/audio/ |
D | audio_hw.c | 113 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() 443 ret = pcm_mmap_write(out->pcm, buffer, out_frames * frame_size); in out_write() 475 if (out->pcm) { in out_get_presentation_position() [all …]
|
/device/google/cuttlefish_common/host/frontend/stream_audio/ |
D | main.cpp | 222 std::vector<opus_int16> pcm(audio_data->size() / sizeof(opus_int16)); in HandleClient() local 223 std::memcpy(pcm.data(), audio_data->data(), audio_data->size()); in HandleClient() 225 const std::uint32_t frame_size = pcm.size() / num_channels; in HandleClient() 226 auto encoded = enc.Encode(pcm, frame_size); in HandleClient()
|
/device/linaro/hikey/hifi/xaf/host-apf/ |
D | Android.mk | 23 playback/tinyalsa/pcm.c \
|
/device/google/marlin/ |
D | system.prop | 138 audio.offload.pcm.16bit.enable=true 141 audio.offload.pcm.24bit.enable=true 150 use.voice.path.for.pcm.voip=true
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/build_hikey/ |
D | Makefile | 97 PLUGINO2OBJS += xa-pcm.o
|
D | map_hikey.txt | 141 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 …]
|
D | xa_hikey.img | 227 audio-decoder/pcmaudio-decoder/vorbismixerFACTORY[%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/ |
D | device-hikey960.mk | 32 …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/ |
D | file_contexts | 40 # pcm device receiving rainbow sensor data
|
/device/google/bonito-sepolicy/vendor/qcom/common/ |
D | file_contexts | 40 # pcm device receiving rainbow sensor data
|
/device/linaro/hikey/hifi/firmware/ |
D | hifi-hikey960.img | 229 audio-decoder/pcmaudio-decoder/vorbismixerFACTORY[%s.%s] Unknown component type: %s @… 305 PCM../plugins/cadence/pcm_proc/xa-pcm.c[%s.%s] PCM format converter initialized: PCM%u -> PCM…
|