Home
last modified time | relevance | path

Searched refs:alsa (Results 1 – 25 of 31) sorted by relevance

12

/hardware/interfaces/audio/aidl/default/alsa/
DModuleAlsa.cpp38 auto deviceProfile = alsa::getDeviceProfile(*audioPort); in populateConnectedDevicePort()
42 auto proxy = alsa::readAlsaDeviceInfo(*deviceProfile); in populateConnectedDevicePort()
48 std::vector<AudioChannelLayout> channels = alsa::getChannelMasksFromProfile(profile); in populateConnectedDevicePort()
49 std::vector<int> sampleRates = alsa::getSampleRatesFromProfile(profile); in populateConnectedDevicePort()
55 alsa::c2aidl_pcm_format_AudioFormatDescription(profile->formats[i]); in populateConnectedDevicePort()
DStreamAlsa.cpp37 mConfig(alsa::getPcmConfig(getContext(), mIsInput)), in StreamAlsa()
74 alsa::DeviceProxy proxy; in start()
79 proxy = alsa::openProxyForExternalDevice( in start()
83 proxy = alsa::openProxyForAttachedDevice( in start()
127 alsa::resetTransferredFrames(mAlsaDeviceProxies[0], position->frames); in refinePosition()
DUtils.cpp38 namespace aidl::android::hardware::audio::core::alsa { namespace
211 alsa::getChannelLayoutMaskFromChannelCount(profile->channel_counts[i], isInput); in getChannelMasksFromProfile()
215 auto indexMask = alsa::getChannelIndexMaskFromChannelCount(profile->channel_counts[i]); in getChannelMasksFromProfile()
225 if (audioDevice.address.getTag() != AudioDeviceAddress::Tag::alsa) { in getDeviceProfile()
229 auto& alsaAddress = audioDevice.address.get<AudioDeviceAddress::Tag::alsa>(); in getDeviceProfile()
253 config.channels = alsa::getChannelCountFromChannelMask(context.getChannelLayout(), isInput); in getPcmConfig()
258 config.format = alsa::aidl2c_AudioFormatDescription_pcm_format(context.getFormat()); in getPcmConfig()
DMixer.h33 namespace aidl::android::hardware::audio::core::alsa {
DUtils.h37 namespace aidl::android::hardware::audio::core::alsa {
DMixer.cpp41 namespace aidl::android::hardware::audio::core::alsa { namespace
/hardware/interfaces/audio/aidl/default/usb/
DUsbAlsaMixerControl.h45 std::shared_ptr<alsa::Mixer> getAlsaMixer(int card);
46 std::map<int, std::shared_ptr<alsa::Mixer>> getAlsaMixers();
51 std::map<int, std::shared_ptr<alsa::Mixer>> mMixerControls GUARDED_BY(mLock);
DStreamUsb.cpp45 std::vector<alsa::DeviceProfile> connectedDeviceProfiles; in setConnectedDevices()
47 auto profile = alsa::getDeviceProfile(connectedDevice, mIsInput); in setConnectedDevices()
73 std::vector<alsa::DeviceProfile> StreamUsb::getDeviceProfiles() { in getDeviceProfiles()
74 std::vector<alsa::DeviceProfile> connectedDevices; in getDeviceProfiles()
108 if (auto deviceProfile = alsa::getDeviceProfile(device, mIsInput); in setHwVolume()
DUsbAlsaMixerControl.cpp36 auto alsaMixer = std::make_shared<alsa::Mixer>(card); in setDeviceConnectionState()
87 std::shared_ptr<alsa::Mixer> UsbAlsaMixerControl::getAlsaMixer(int card) { in getAlsaMixer()
93 std::map<int, std::shared_ptr<alsa::Mixer>> UsbAlsaMixerControl::getAlsaMixers() { in getAlsaMixers()
DModuleUsb.cpp120 auto profile = alsa::getDeviceProfile(audioPort); in onExternalDeviceConnectionChanged()
/hardware/interfaces/audio/aidl/default/primary/
DPrimaryMixer.h31 class PrimaryMixer : public alsa::Mixer {
39 PrimaryMixer() : alsa::Mixer(kAlsaCard) {} in PrimaryMixer()
DStreamPrimary.cpp94 std::vector<alsa::DeviceProfile> StreamPrimary::getDeviceProfiles() { in getDeviceProfiles()
95 static const std::vector<alsa::DeviceProfile> kBuiltInSource{ in getDeviceProfiles()
96 alsa::DeviceProfile{.card = primary::PrimaryMixer::kAlsaCard, in getDeviceProfiles()
100 static const std::vector<alsa::DeviceProfile> kBuiltInSink{ in getDeviceProfiles()
101 alsa::DeviceProfile{.card = primary::PrimaryMixer::kAlsaCard, in getDeviceProfiles()
/hardware/interfaces/audio/common/all-versions/default/tests/
Dhidlutils6_tests.cpp43 return lhs.address.alsa == rhs.address.alsa; in operator ==()
92 usbHeadset.address.alsa = {1, 2}; in TEST()
/hardware/interfaces/audio/aidl/default/include/core-impl/
DStreamAlsa.h49 virtual std::vector<alsa::DeviceProfile> getDeviceProfiles() = 0;
58 std::vector<alsa::DeviceProxy> mAlsaDeviceProxies;
DStreamUsb.h40 std::vector<alsa::DeviceProfile> getDeviceProfiles() override;
43 std::vector<alsa::DeviceProfile> mConnectedDeviceProfiles GUARDED_BY(mLock);
DStreamPrimary.h36 std::vector<alsa::DeviceProfile> getDeviceProfiles() override;
/hardware/interfaces/audio/aidl/default/
DAndroid.bp67 "alsa/Mixer.cpp",
68 "alsa/ModuleAlsa.cpp",
69 "alsa/StreamAlsa.cpp",
70 "alsa/Utils.cpp",
/hardware/qcom/audio/legacy/alsa_sound/
DAndroid.mk50 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-alsa
134 LOCAL_MODULE:= alsa.msm8960
/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.h216 device.address.alsa.card, device.address.alsa.device); in deviceAddressToHalImpl()
254 int status = sscanf(halDeviceAddress, "card=%d;device=%d", &device->address.alsa.card, in deviceAddressFromHalImpl()
255 &device->address.alsa.device); in deviceAddressFromHalImpl()
/hardware/google/graphics/common/libv4l2/
Dmedia.h85 } alsa; member
/hardware/google/gchips/include/
Dmedia.h85 } alsa; member
/hardware/interfaces/audio/common/all-versions/default/7.0/
DHidlUtils.cpp1095 device->address.alsa({}); in audioUsageFromHal()
1097 auto& alsa = device->address.alsa(); in audioUsageFromHal() local
1098 int status = sscanf(halDeviceAddress, "card=%d;device=%d", &alsa.card, &alsa.device); in audioUsageFromHal()
1140 if (device.address.getDiscriminator() == DeviceAddress::Address::hidl_discriminator::alsa) { in audioUsageFromHal()
1141 const auto& alsa = device.address.alsa(); in audioUsageFromHal() local
1142 snprintf(halDeviceAddress, AUDIO_DEVICE_MAX_ADDRESS_LEN, "card=%d;device=%d", alsa.card, in audioUsageFromHal()
1143 alsa.device); in audioUsageFromHal()
/hardware/interfaces/audio/core/all-versions/vts/functional/7.1/
DAudioPrimaryHidlHalTest.cpp31 address.address.alsa({0, 0}); in TEST_P()
/hardware/interfaces/audio/2.0/
Dtypes.hal70 } alsa; // used for USB_*
/hardware/interfaces/audio/core/all-versions/vts/functional/4.0/
DAudioPrimaryHidlHalTest.cpp139 address.address.alsa({0, 0});

12