Home
last modified time | relevance | path

Searched refs:channel_mask (Results 1 – 6 of 6) sorted by relevance

/system/bt/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc122 uint32_t channel_mask; member
209 int chan_count = audio_channel_count_from_out_mask(cfg.channel_mask); in calc_audiotime_usec()
510 common->cfg.channel_mask = AUDIO_CHANNEL_IN_MONO; in ha_read_input_audio_config()
513 common->cfg.channel_mask = AUDIO_CHANNEL_IN_STEREO; in ha_read_input_audio_config()
618 stream_config.channel_mask = AUDIO_CHANNEL_OUT_MONO; in ha_read_output_audio_config()
622 stream_config.channel_mask = AUDIO_CHANNEL_OUT_STEREO; in ha_read_output_audio_config()
631 stream_config.channel_mask = AUDIO_CHANNEL_OUT_STEREO; in ha_read_output_audio_config()
637 common->cfg.channel_mask = stream_config.channel_mask; in ha_read_output_audio_config()
724 switch (common->cfg.channel_mask) { in ha_write_output_audio_config()
736 ERROR("Invalid channel mask: 0x%x", common->cfg.channel_mask); in ha_write_output_audio_config()
[all …]
/system/media/audio/include/system/
Daudio.h355 audio_channel_mask_t channel_mask; // channel mask member
402 audio_channel_mask_t channel_mask; member
436 audio_channel_mask_t channel_mask; member
469 audio_channel_mask_t channel_mask; /* channels which gain an be controlled. member
485 audio_channel_mask_t channel_mask; /* channels which gain value follows. member
588 audio_channel_mask_t channel_mask; /* channel mask if applicable */ member
816 if (lhs->channel_mask != rhs->channel_mask) return false; in audio_gain_config_are_equal()
817 for (int i = 0; i < __builtin_popcount(lhs->channel_mask); ++i) { in audio_gain_config_are_equal()
883 lhs->channel_mask == rhs->channel_mask) && in audio_port_configs_are_equal()
893 lhs->channel_mask == rhs->channel_mask) && in audio_gains_are_equal()
[all …]
/system/bt/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc113 audio_channel_mask_t channel_mask; member
203 int chan_count = audio_channel_count_from_out_mask(cfg.channel_mask); in calc_audiotime_usec()
507 common->cfg.channel_mask = AUDIO_CHANNEL_IN_MONO; in a2dp_read_input_audio_config()
510 common->cfg.channel_mask = AUDIO_CHANNEL_IN_STEREO; in a2dp_read_input_audio_config()
609 stream_config.channel_mask = AUDIO_CHANNEL_OUT_MONO; in a2dp_read_output_audio_config()
613 stream_config.channel_mask = AUDIO_CHANNEL_OUT_STEREO; in a2dp_read_output_audio_config()
622 stream_config.channel_mask = AUDIO_CHANNEL_OUT_STEREO; in a2dp_read_output_audio_config()
628 common->cfg.channel_mask = stream_config.channel_mask; in a2dp_read_output_audio_config()
709 switch (common->cfg.channel_mask) { in a2dp_write_output_audio_config()
721 ERROR("Invalid channel mask: 0x%x", common->cfg.channel_mask); in a2dp_write_output_audio_config()
[all …]
/system/bt/audio_bluetooth_hw/
Ddevice_port_proxy.cc291 audio_cfg->channel_mask = kBluetoothDefaultOutputChannelModeMask; in LoadAudioConfig()
303 audio_cfg->channel_mask = kBluetoothDefaultOutputChannelModeMask; in LoadAudioConfig()
318 audio_cfg->channel_mask = in LoadAudioConfig()
330 audio_cfg->channel_mask = kBluetoothDefaultInputChannelModeMask; in LoadAudioConfig()
342 audio_cfg->channel_mask = kBluetoothDefaultInputChannelModeMask; in LoadAudioConfig()
359 audio_cfg->channel_mask = InputChannelModeToAudioFormat(pcm_cfg.channelMode); in LoadAudioConfig()
Dstream_apis.cc45 << ", channels=" << StringPrintf("%#x", config.channel_mask) in operator <<()
235 return audio_cfg.channel_mask; in out_get_channels()
321 out->channel_mask_ = audio_cfg.channel_mask; in out_set_parameters()
442 if (audio_cfg.channel_mask == AUDIO_CHANNEL_OUT_MONO) { in out_get_parameters()
445 if (audio_cfg.channel_mask == AUDIO_CHANNEL_OUT_STEREO) { in out_get_parameters()
727 if (config->channel_mask == AUDIO_CHANNEL_OUT_MONO && config->format == AUDIO_FORMAT_PCM_16_BIT) { in adev_open_output_stream()
731 config->channel_mask = AUDIO_CHANNEL_OUT_STEREO; in adev_open_output_stream()
734 out->channel_mask_ = config->channel_mask; in adev_open_output_stream()
811 return audio_cfg.channel_mask; in in_get_channels()
1188 in->channel_mask_ = config->channel_mask; in adev_open_input_stream()
/system/media/tests/
Dsystemaudio_tests.cpp292 .channel_mask = AUDIO_CHANNEL_OUT_FRONT_LEFT,
298 .channel_mask = AUDIO_CHANNEL_OUT_FRONT_LEFT,
489 config->channel_mask = audio_port_config_has_input_direction(config) ? in fillFakeAudioPortConfigInfo()
628 updateFieldAndCompare(static_cast<audio_channel_mask_t>(rhs.channel_mask << 1), in TEST_F()
629 &audio_gain::channel_mask, &lhs, &rhs, audio_gains_are_equal); in TEST_F()
659 updateConfigFieldAndCompare(AUDIO_CHANNEL_NONE, &audio_port_config::channel_mask, in TEST_P()