Home
last modified time | relevance | path

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

1234

/hardware/bsp/intel/peripheral/libmraa/examples/
Diio_driver.c55 mraa_iio_channel* channels = mraa_iio_get_channels(iio_device0); in interrupt() local
59 if (channels[i].enabled) { in interrupt()
60 printf("channel %d - bytes %d\n", channels[i].index, channels[i].bytes); in interrupt()
61 switch (channels[i].bytes) { in interrupt()
63 printword(*(uint16_t*) (data + channels[i].location), &channels[i]); in interrupt()
/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,
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 …]
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);
DAudioUsbALSA.cpp91 status_t AudioUsbALSA::getCap(char * type, int &channels, int &sampleRate) in getCap() argument
148 channels = 1; in getCap()
150 channels = 2; in getCap()
278 status_t AudioUsbALSA::setHardwareParams(pcm *txHandle, uint32_t sampleRate, uint32_t channels, int… in setHardwareParams() argument
299 ALOGV("Setting period size:%d samplerate:%d, channels: %d",periodBytes,sampleRate, channels); in setHardwareParams()
303 channels - 1 ? 32 : 16); in setHardwareParams()
305 channels); in setHardwareParams()
390 uint32_t channels; in RecordingThreadEntry() local
779 uint32_t channels; in PlaybackThreadEntry() local
DAudioUtil.cpp125 unsigned char channels[16]; in getHDMIAudioSinkCaps() local
175 channels [nIndex] = (sad[nIndex] & 0x7) + 1; in getHDMIAudioSinkCaps()
185 pInfo->AudioBlocksArray[i].nChannels = channels[i]; in getHDMIAudioSinkCaps()
/hardware/libhardware_legacy/include/hardware_legacy/
DAudioHardwareInterface.h61 virtual uint32_t channels() const = 0;
72 uint32_t frameSize() const { return audio_channel_count_from_out_mask(channels())* in frameSize()
143 virtual uint32_t channels() const = 0;
154 uint32_t frameSize() const { return audio_channel_count_from_in_mask(channels())* in frameSize()
257 uint32_t *channels=0,
264 uint32_t *channels=0,
273 uint32_t *channels,
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
Dlink_layer_stats.cpp42 wifi_channel_stat channels[]; member
108 (wifi_iface_stat *)((char *)&((wifi_radio_stat_internal *)data)->channels in handleResponse()
137 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
123 virtual void setChannels(int *channels);
/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.c296 session->config.inputCfg.channels = AUDIO_CHANNEL_IN_MONO; in session_create_effect()
299 session->config.outputCfg.channels = AUDIO_CHANNEL_IN_MONO; in session_create_effect()
343 config->inputCfg.samplingRate, config->inputCfg.channels); in session_set_config()
348 session->config.inputCfg.channels != config->inputCfg.channels || in session_set_config()
349 session->config.outputCfg.channels != config->outputCfg.channels) in session_set_config()
/hardware/intel/audio_media/hdmi/
Dtinyaudio_hw.c106 .channels = 2,
139 uint32_t channels; member
239 out->pcm_config.channels, in start_output_stream()
270 activeChannel = out->pcm_config.channels; in start_output_stream()
272 …ALOGV("Initialized PCM device for channels %d handle = %d",out->pcm_config.channels, (int)activePc… in start_output_stream()
572 ALOGV("%s enter for bytes = %d channels = %d",__func__,bytes, out->pcm_config.channels); in out_write()
590 if((!out->pcm) || (activeChannel != out->pcm_config.channels)){ in out_write()
718 out->pcm_config.channels = popcount(config->channel_mask); in adev_open_output_stream()

1234