Home
last modified time | relevance | path

Searched refs:frag_spec (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/SDL2/src/audio/dsp/
A DSDL_dspaudio.c76 int frag_spec; in DSP_OpenDevice() local
212 for (frag_spec = 0; (0x01U << frag_spec) < this->spec.size; ++frag_spec); in DSP_OpenDevice()
213 if ((0x01U << frag_spec) != this->spec.size) { in DSP_OpenDevice()
216 frag_spec |= 0x00020000; /* two fragments, for low latency */ in DSP_OpenDevice()
221 (frag_spec >> 16), 1 << (frag_spec & 0xFFFF)); in DSP_OpenDevice()
223 if (ioctl(this->hidden->audio_fd, SNDCTL_DSP_SETFRAGMENT, &frag_spec) < 0) { in DSP_OpenDevice()
/AliOS-Things-master/components/SDL2/src/audio/arts/
A DSDL_artsaudio.c222 int bits = 0, frag_spec = 0; in ARTS_OpenDevice() local
282 for (frag_spec = 0; (0x01 << frag_spec) < this->spec.size; ++frag_spec); in ARTS_OpenDevice()
283 if ((0x01 << frag_spec) != this->spec.size) { in ARTS_OpenDevice()
286 frag_spec |= 0x00020000; /* two fragments, for low latency */ in ARTS_OpenDevice()
290 ARTS_P_PACKET_SETTINGS, frag_spec); in ARTS_OpenDevice()
293 frag_spec & 0xffff); in ARTS_OpenDevice()
295 frag_spec >> 16); in ARTS_OpenDevice()

Completed in 4 milliseconds