Home
last modified time | relevance | path

Searched refs:channels (Results 1 – 25 of 111) sorted by relevance

12345

/hardware/libhardware_legacy/audio/
DAudioDumpInterface.cpp60 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument
68 outFinal = mFinalInterface->openOutputStream(devices, format, channels, sampleRate, status); in openOutputStream()
71 lChannels = outFinal->channels(); in openOutputStream()
81 if (channels != 0) { in openOutputStream()
82 if (*channels != 0) { in openOutputStream()
83 lChannels = *channels; in openOutputStream()
85 *channels = lChannels; in openOutputStream()
126 …dioStreamIn* AudioDumpInterface::openInputStream(uint32_t devices, int *format, uint32_t *channels, in openInputStream() argument
134 …inFinal = mFinalInterface->openInputStream(devices, format, channels, sampleRate, status, acoustic… in openInputStream()
137 lChannels = inFinal->channels(); in openInputStream()
[all …]
DAudioHardwareStub.cpp46 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument
49 status_t lStatus = out->set(format, channels, sampleRate); in openOutputStream()
65 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, in openInputStream() argument
74 status_t lStatus = in->set(format, channels, sampleRate, acoustics); in openInputStream()
122 if (pChannels) *pChannels = channels(); in set()
132 audio_channel_count_from_out_mask(channels()) / sampleRate()); in write()
149 snprintf(buffer, SIZE, "\tchannels: %d\n", channels()); in dump()
179 audio_channel_count_from_in_mask(channels()) / sampleRate()); in read()
195 snprintf(buffer, SIZE, "\tchannels: %d\n", channels()); in dump()
DAudioDumpInterface.h41 uint32_t channels,
48 virtual uint32_t channels() const;
83 uint32_t channels,
89 virtual uint32_t channels() const;
124 uint32_t *channels=0,
151 virtual AudioStreamIn* openInputStream(uint32_t devices, int *format, uint32_t *channels,
DAudioHardwareStub.h35 virtual uint32_t channels() const { return AudioSystem::CHANNEL_OUT_STEREO; } in channels() function
52 virtual uint32_t channels() const { return AudioSystem::CHANNEL_IN_MONO; } in channels() function
82 uint32_t *channels=0,
90 uint32_t *channels,
DA2dpAudioInterface.cpp65 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument
69 return mHardwareInterface->openOutputStream(devices, format, channels, sampleRate, status); in openOutputStream()
83 if ((err = out->set(devices, format, channels, sampleRate)) == NO_ERROR) { in openOutputStream()
108 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, in openInputStream() argument
111 …return mHardwareInterface->openInputStream(devices, format, channels, sampleRate, status, acoustic… in openInputStream()
247 if (lChannels == 0) lChannels = channels(); in set()
252 (lChannels != channels()) || in set()
255 if (pChannels) *pChannels = channels(); in set()
DAudioHardwareGeneric.h52 virtual uint32_t channels() const { return AudioSystem::CHANNEL_OUT_STEREO; } in channels() function
86 virtual uint32_t channels() const { return AudioSystem::CHANNEL_IN_MONO; } in channels() function
123 uint32_t *channels=0,
131 uint32_t *channels,
DA2dpAudioInterface.h58 uint32_t *channels=0,
66 uint32_t *channels,
88 virtual uint32_t channels() const { return AudioSystem::CHANNEL_OUT_STEREO; } in channels() function
DAudioHardwareInterface.cpp155 uint32_t *channels, in openOutputStreamWithFlags() argument
159 return openOutputStream(devices, format, channels, sampleRate, status); in openOutputStreamWithFlags()
/hardware/qcom/audio/legacy/alsa_sound/
DALSAStreamOps.cpp95 uint32_t *channels, in set() argument
100 if (channels && *channels != 0) { in set()
101 if (mHandle->channels != popCount(*channels)) in set()
103 } else if (channels) { in set()
105 switch(*channels) { in set()
113 *channels = AUDIO_CHANNEL_OUT_STEREO; in set()
117 switch(*channels) { in set()
128 *channels = AUDIO_CHANNEL_IN_MONO; in set()
343 uint32_t ALSAStreamOps::channels() const in channels() function in android_audio_legacy::ALSAStreamOps
DAudioHardwareALSA.h172 uint32_t channels; member
269 status_t set(int *format, uint32_t *channels, uint32_t *rate, uint32_t device);
277 uint32_t channels() const;
308 virtual uint32_t channels() const;
364 virtual uint32_t channels() const in channels() function
366 return ALSAStreamOps::channels(); in channels()
487 virtual size_t getInputBufferSize(uint32_t sampleRate, int format, int channels);
498 uint32_t channels=0);
506 uint32_t *channels=0,
515 uint32_t *channels,
DAudioUsbALSA.h109 …status_t setHardwareParams(pcm *local_handle, uint32_t sampleRate, uint32_t channels, int periodSi…
115 status_t getCap(char * type, int &channels, int &sampleRate);
Dalsa_default.cpp269 int channels = handle->channels; in setHardwareParams() local
280 (int) reqBuffSize, handle->channels, handle->sampleRate); in setHardwareParams()
283 if (channels == 6) { in setHardwareParams()
287 channels = 4; in setHardwareParams()
313 channels * 16); in setHardwareParams()
315 channels); in setHardwareParams()
332 handle->handle->channels = handle->channels; in setHardwareParams()
336 (6 != handle->channels)) { in setHardwareParams()
350 int channels = handle->channels; in setSoftwareParams() local
359 if (channels == 6) { in setSoftwareParams()
[all …]
/hardware/google/av/media/codecs/opus/
DC2SoftOpusDec.cpp247 header->channels = *(data + kOpusHeaderChannelsOffset); in ParseOpusHeader()
248 if (header->channels <= 0 || header->channels > kMaxChannels) { in ParseOpusHeader()
249 ALOGE("Invalid Header, wrong channel count: %d", header->channels); in ParseOpusHeader()
263 if (header->channels > kMaxChannelsWithDefaultLayout) { in ParseOpusHeader()
268 header->num_coupled = header->channels > 1; in ParseOpusHeader()
273 if (data_size < kOpusHeaderStreamMapOffset + header->channels) { in ParseOpusHeader()
275 "count: %d", header->channels); in ParseOpusHeader()
280 if (header->num_streams + header->num_coupled != header->channels) { in ParseOpusHeader()
284 for (int i = 0; i < header->channels; ++i) in ParseOpusHeader()
339 if (mHeader.channels <= kMaxChannelsWithDefaultLayout) { in process()
[all …]
/hardware/libhardware_legacy/include/hardware_legacy/
DAudioHardwareInterface.h60 virtual uint32_t channels() const = 0;
71 uint32_t frameSize() const { return audio_channel_count_from_out_mask(channels())* in frameSize()
142 virtual uint32_t channels() const = 0;
153 uint32_t frameSize() const { return audio_channel_count_from_in_mask(channels())* in frameSize()
256 uint32_t *channels=0,
263 uint32_t *channels=0,
272 uint32_t *channels,
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
Dlink_layer_stats.cpp59 wifi_channel_stat channels[]; member
125 (wifi_iface_stat *)((char *)&((wifi_radio_stat_internal *)data)->channels in handleResponse()
154 memcpy(&(external_stat_ptr->channels), &(internal_stat_ptr->channels), in convertToExternalRadioStatStructure()
/hardware/qcom/audio/legacy/libalsa-intf/
Daplay.c91 int channels = (pcm->flags & PCM_MONO) ? 1 : ((pcm->flags & PCM_5POINT1)? 6 : 2 ); in set_params() local
112 pcm->channels * 16); in set_params()
114 pcm->channels); in set_params()
142 sparams->avail_min = pcm->period_size/(channels * 2) ; in set_params()
143 sparams->start_threshold = pcm->period_size/(channels * 2) ; in set_params()
145 sparams->xfer_align = pcm->period_size/(channels * 2) ; /* needed for old kernels */ in set_params()
164 static int play_file(unsigned rate, unsigned channels, int fd, in play_file() argument
184 if (channels == 1) in play_file()
186 else if (channels == 6) in play_file()
234 pcm->channels = channels; in play_file()
Darec.c115 pcm->channels * 16); in set_params()
117 pcm->channels); in set_params()
178 int record_file(unsigned rate, unsigned channels, int fd, unsigned count, unsigned flags, const ch… in record_file() argument
193 if (channels == 1) in record_file()
195 else if (channels == 4) in record_file()
197 else if (channels == 6) in record_file()
207 pcm->channels = channels; in record_file()
/hardware/qcom/wlan/qcwcn/wifi_hal/
Dgscancommand.h40 wifi_channel channels[]; member
59 wifi_channel *channels; member
122 virtual void setChannels(int *channels);
/hardware/interfaces/audio/effect/4.0/
DIDownmixEffect.hal24 STRIP, // throw away the extra channels
25 FOLD // mix the extra channels with FL/FR
/hardware/interfaces/audio/effect/2.0/
DIDownmixEffect.hal24 STRIP, // throw away the extra channels
25 FOLD // mix the extra channels with FL/FR
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
Dmpu_iio.c96 int size_from_channelarray(struct iio_channel_info *channels, int num_channels) in size_from_channelarray() argument
101 if (bytes % channels[i].bytes == 0) in size_from_channelarray()
102 channels[i].location = bytes; in size_from_channelarray()
104 channels[i].location = bytes - bytes%channels[i].bytes in size_from_channelarray()
105 + channels[i].bytes; in size_from_channelarray()
106 bytes = channels[i].location + channels[i].bytes; in size_from_channelarray()
/hardware/qcom/audio/voice_processing/
Dvoice_processing.c299 session->config.inputCfg.channels = AUDIO_CHANNEL_IN_MONO; in session_create_effect()
302 session->config.outputCfg.channels = AUDIO_CHANNEL_IN_MONO; in session_create_effect()
346 config->inputCfg.samplingRate, config->inputCfg.channels); in session_set_config()
351 session->config.inputCfg.channels != config->inputCfg.channels || in session_set_config()
352 session->config.outputCfg.channels != config->outputCfg.channels) in session_set_config()
/hardware/google/av/media/codecs/vorbis/
DC2SoftVorbisDec.cpp262 int32_t numChannels = mVi->channels; in process()
287 mVi->channels != numChannels) { in process()
288 ALOGV("vorbis: rate/channels changed: %ld/%d", mVi->rate, mVi->channels); in process()
290 numChannels = mVi->channels; in process()
379 size_t maxSamplesInBuffer = kMaxNumSamplesPerChannel * mVi->channels; in process()
422 int outSize = numFrames * sizeof(int16_t) * mVi->channels; in process()
/hardware/qcom/msm8996/kernel-headers/linux/
Dmsm_audio_sbc.h40 uint32_t channels; member
/hardware/qcom/msm8996/original-kernel-headers/linux/
Dmsm_audio_sbc.h28 uint32_t channels; member

12345