Home
last modified time | relevance | path

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

123456

/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()
DAudioHardwareGeneric.cpp68 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument
82 status_t lStatus = out->set(this, mFd, devices, format, channels, sampleRate); in openOutputStream()
102 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, in openInputStream() argument
122 status_t lStatus = in->set(this, mFd, devices, format, channels, sampleRate, acoustics); in openInputStream()
206 if (lChannels == 0) lChannels = channels(); in set()
211 (lChannels != channels()) || in set()
214 if (pChannels) *pChannels = channels(); in set()
256 snprintf(buffer, SIZE, "\tchannels: %d\n", channels()); in dump()
324 (*pChannels != channels()) || in set()
328 *pChannels = channels(); in set()
[all …]
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.cpp723 uint32_t *channels, in openOutputStream() argument
729 devices, *channels, *sampleRate); in openOutputStream()
781 alsa_handle.channels = VOIP_DEFAULT_CHANNEL_MODE; in openOutputStream()
828 err = out->set(format, channels, sampleRate, devices); in openOutputStream()
852 if (0 == *channels) { in openOutputStream()
853 alsa_handle.channels = info.AudioBlocksArray[info.nAudioBlocks-1].nChannels; in openOutputStream()
854 if (alsa_handle.channels > 6) { in openOutputStream()
855 alsa_handle.channels = 6; in openOutputStream()
857 *channels = audio_channel_out_mask_from_count(alsa_handle.channels); in openOutputStream()
859 alsa_handle.channels = AudioSystem::popCount(*channels); in openOutputStream()
[all …]
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.cpp253 header->channels = *(data + kOpusHeaderChannelsOffset); in ParseOpusHeader()
254 if (header->channels <= 0 || header->channels > kMaxChannels) { in ParseOpusHeader()
255 ALOGE("Invalid Header, wrong channel count: %d", header->channels); in ParseOpusHeader()
269 if (header->channels > kMaxChannelsWithDefaultLayout) { in ParseOpusHeader()
274 header->num_coupled = header->channels > 1; in ParseOpusHeader()
279 if (data_size < kOpusHeaderStreamMapOffset + header->channels) { in ParseOpusHeader()
281 "count: %d", header->channels); in ParseOpusHeader()
286 if (header->num_streams + header->num_coupled != header->channels) { in ParseOpusHeader()
290 for (int i = 0; i < header->channels; ++i) in ParseOpusHeader()
348 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/interfaces/audio/core/all-versions/vts/functional/2.0/
DAudioPrimaryHidlHalUtils.h59 static Result channelMasks(IStream* stream, hidl_vec<AudioChannelMask>& channels) { in channelMasks()
60 EXPECT_OK(stream->getSupportedChannelMasks(returnIn(channels))); in channelMasks()
61 return convertToResult(channels); in channelMasks()
/hardware/qcom/wlan/qcwcn/wifi_hal/
Dgscancommand.h39 wifi_channel channels[]; member
58 wifi_channel *channels; member
121 virtual void setChannels(int *channels);
/hardware/interfaces/audio/effect/2.0/
DIDownmixEffect.hal24 STRIP, // throw away the extra channels
25 FOLD // mix the extra channels with FL/FR
/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/5.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()

123456