Home
last modified time | relevance | path

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

123456789

/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
/hardware/interfaces/security/authgraph/default/src/
Dlib.rs33 channels: Mutex<Channels>, field
80 channels: Mutex::new(Channels { in_tx, out_rx }), in new()
90 let channels = self.channels.lock().unwrap(); in execute() localVariable
91 channels in execute()
95 Ok(channels.out_rx.recv().expect("failed to receive response")) in execute()
/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,
/hardware/interfaces/power/stats/aidl/vts/
DVtsHalPowerStatsTargetTest.cpp284 std::vector<Channel> channels; in TEST_P() local
285 ASSERT_OK(powerstats->getEnergyMeterInfo(&channels)); in TEST_P()
287 for (auto channel : channels) { in TEST_P()
294 std::vector<Channel> channels; in TEST_P() local
295 ASSERT_OK(powerstats->getEnergyMeterInfo(&channels)); in TEST_P()
297 for (auto channel : channels) { in TEST_P()
304 std::vector<Channel> channels; in TEST_P() local
305 ASSERT_OK(powerstats->getEnergyMeterInfo(&channels)); in TEST_P()
307 testUnique(channels, &Channel::name); in TEST_P()
312 std::vector<Channel> channels; in TEST_P() local
[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/interfaces/audio/core/all-versions/vts/functional/6.0/
DGenerators.cpp50 const auto& channels = profile->getChannels(); in generateOutputDeviceConfigParameters() local
53 std::vector<audio_channel_mask_t>(channels.begin(), channels.end()), in generateOutputDeviceConfigParameters()
113 const auto& channels = profile->getChannels(); in generateInputDeviceConfigParameters() local
116 std::vector<audio_channel_mask_t>(channels.begin(), channels.end()), in generateInputDeviceConfigParameters()
/hardware/synaptics/wlan/synadhd/wifi_hal/
Dlink_layer_stats.cpp66 wifi_channel_stat channels[]; member
84 wifi_channel_stat channels[]; // channel statistics member
220 (wifi_iface_stat *)((char *)&((wifi_radio_stat_internal *)data)->channels in handleResponse()
245 *per_radio_size = offsetof(wifi_radio_stat_internal_v2, channels) + channel_size; in convertToExternalRadioStatStructure()
262 memcpy(&(external_stat_ptr->channels), &(internal_stat_ptr->channels), in convertToExternalRadioStatStructure()
293 memcpy(&(external_stat_ptr->channels), &(internal_stat_ptr->channels), in convertToExternalRadioStatStructureLegacy()
/hardware/google/interfaces/bluetooth/bt_channel_avoidance/1.0/
DIBTChannelAvoidance.hal26 * This API must be invoked whenever channels map of Bluetooth need to
27 * changed because Bluetooth channels have conflict with wifi or cellular.
30 * the status of 79 channels. 0 means the channel is bad and 1 means
/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()
/hardware/interfaces/audio/core/all-versions/vts/functional/2.0/
DAudioPrimaryHidlHalUtils.h61 static Result channelMasks(IStream* stream, hidl_vec<AudioChannelMask>& channels) { in channelMasks()
62 EXPECT_OK(stream->getSupportedChannelMasks(returnIn(channels))); in channelMasks()
63 return convertToResult(channels); in channelMasks()
/hardware/google/gfxstream/guest/mesa/src/util/format/
Du_format_pack.py74 def generate_bitfields(channels, swizzles): argument
75 for channel in channels:
93 def generate_full_fields(channels, swizzles): argument
94 for channel in channels:
442 def unpack_from_bitmask(channels, swizzles): argument
449 src_channel = channels[i]
477 src_channel = channels[swizzle]
497 def unpack_from_struct(channels, swizzles): argument
504 src_channel = channels[swizzle]
539 def pack_into_bitmask(channels, swizzles): argument
[all …]
/hardware/interfaces/audio/effect/all-versions/default/util/
DEffectUtils.cpp53 config->channels = EnumBitfield<AudioChannelMask>(halConfig.channels); in effectBufferConfigFromHal()
67 halConfig->channels = static_cast<uint32_t>(config.channels); in effectBufferConfigToHal()
85 static_cast<audio_channel_mask_t>(halConfig.channels), in effectBufferConfigFromHal()
118 halConfig->channels = halConfigBase.channel_mask; in effectBufferConfigToHal()
/hardware/interfaces/wifi/1.5/
DIWifiChip.hal216 * provided, then the channels should be completely avoided for the provided Wifi modes instead
251 * Usable Wifi channels filter masks.
255 * Filter Wifi channels that should be avoided due to extreme
256 * cellular coexistence restrictions. Some Wifi channels can have
258 * seperation with neighboring cellular channels or when there
270 * channels are usable for SAP if device does not support DFS SAP mode.
271 * - P2P GO may not be supported on indoor channels in EU during
279 * Retrieve list of usable Wifi channels for the specified band &
282 * The list of usable Wifi channels in a given band depends on factors
287 * @param band |WifiBand| for which list of usable channels is requested.
[all …]
/hardware/interfaces/wifi/1.6/
DIWifiChip.hal32 * Usable Wifi channels filter masks.
36 * Filter Wifi channels that are supported for NAN3.1 Instant communication mode. This
64 * Retrieve list of usable Wifi channels for the specified band &
67 * The list of usable Wifi channels in a given band depends on factors
72 * @param band |WifiBand| for which list of usable channels is requested.
76 * interested in knowing usable channels for P2P CLI, P2P GO & NAN,
81 * channels based on additional criteria. If no filter is specified
82 * driver should return usable channels purely based on regulatory
90 * @return channels List of channels represented by |WifiUsableChannel|
96 * the 5GHz channels will have IFACE_MODE_SOFTAP bit set.
[all …]
/hardware/qcom/wlan/wcn6740/qcwcn/wifi_hal/
Dgscancommand.h39 wifi_channel channels[]; member
58 wifi_channel *channels; member
121 virtual void setChannels(int *channels);
/hardware/qcom/wlan/legacy/qcwcn/wifi_hal/
Dgscancommand.h39 wifi_channel channels[]; member
58 wifi_channel *channels; member
121 virtual void setChannels(int *channels);

123456789