Home
last modified time | relevance | path

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

/system/media/audio/include/system/
Daudio.h295 audio_channel_mask_t channel_mask; // channel mask member
336 audio_channel_mask_t channel_mask; member
367 audio_channel_mask_t channel_mask; member
403 audio_channel_mask_t channel_mask; /* channels which gain an be controlled. member
419 audio_channel_mask_t channel_mask; /* channels which gain value follows. member
490 audio_channel_mask_t channel_mask; /* channel mask if applicable */ member
1310 if (lhs->channel_mask != rhs->channel_mask) return false; in audio_gain_config_are_equal()
1311 for (int i = 0; i < __builtin_popcount(lhs->channel_mask); ++i) { in audio_gain_config_are_equal()
1368 lhs->channel_mask == rhs->channel_mask) && in audio_port_configs_are_equal()
/system/bt/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc100 uint32_t channel_mask; member
187 int chan_count = audio_channel_count_from_out_mask(cfg.channel_mask); in calc_audiotime_usec()
488 common->cfg.channel_mask = AUDIO_CHANNEL_IN_MONO; in ha_read_input_audio_config()
491 common->cfg.channel_mask = AUDIO_CHANNEL_IN_STEREO; in ha_read_input_audio_config()
596 stream_config.channel_mask = AUDIO_CHANNEL_OUT_MONO; in ha_read_output_audio_config()
600 stream_config.channel_mask = AUDIO_CHANNEL_OUT_STEREO; in ha_read_output_audio_config()
609 stream_config.channel_mask = AUDIO_CHANNEL_OUT_STEREO; in ha_read_output_audio_config()
615 common->cfg.channel_mask = stream_config.channel_mask; in ha_read_output_audio_config()
702 switch (common->cfg.channel_mask) { in ha_write_output_audio_config()
714 ERROR("Invalid channel mask: 0x%x", common->cfg.channel_mask); in ha_write_output_audio_config()
[all …]
/system/bt/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc113 uint32_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/
Dstream_apis.cc45 << ", channels=" << StringPrintf("%#x", config.channel_mask) in operator <<()
188 return audio_cfg.channel_mask; in out_get_channels()
274 out->channel_mask_ = audio_cfg.channel_mask; in out_set_parameters()
391 if (audio_cfg.channel_mask == AUDIO_CHANNEL_OUT_MONO) { in out_get_parameters()
394 if (audio_cfg.channel_mask == AUDIO_CHANNEL_OUT_STEREO) { in out_get_parameters()
672 if (config->channel_mask == AUDIO_CHANNEL_OUT_MONO && config->format == AUDIO_FORMAT_PCM_16_BIT) { in adev_open_output_stream()
676 config->channel_mask = AUDIO_CHANNEL_OUT_STEREO; in adev_open_output_stream()
679 out->channel_mask_ = config->channel_mask; in adev_open_output_stream()
Ddevice_port_proxy.cc257 audio_cfg->channel_mask = kBluetoothDefaultOutputChannelModeMask; in LoadAudioConfig()
267 audio_cfg->channel_mask = kBluetoothDefaultOutputChannelModeMask; in LoadAudioConfig()
281 audio_cfg->channel_mask = in LoadAudioConfig()