Home
last modified time | relevance | path

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

/haiku/src/add-ons/kernel/drivers/audio/usb/
H A DStream.cpp53 for (int i = 0; i < fAlternates.Count(); i++) { in _ChooseAlternate()
54 if (fAlternates[i]->Interface() == 0) { in _ChooseAlternate()
59 if (fAlternates[i]->Format() == 0) { in _ChooseAlternate()
64 if (fAlternates[i]->Format()->fFormatType in _ChooseAlternate()
67 "is not supported.\n", i, fAlternates[i]->Format()->fFormatType); in _ChooseAlternate()
71 switch (fAlternates[i]->Interface()->fFormatTag) { in _ChooseAlternate()
80 "supported.\n", i, fAlternates[i]->Interface()->fFormatTag); in _ChooseAlternate()
85 = static_cast<TypeIFormatDescriptor*>(fAlternates[i]->Format()); in _ChooseAlternate()
93 if (fAlternates[i]->Interface()->fFormatTag == USB_AUDIO_FORMAT_PCM) { in _ChooseAlternate()
118 = fAlternates[fActiveAlternate]->Endpoint(); in _ChooseAlternate()
[all …]
H A DAudioStreamingInterface.cpp460 fAlternates.Add(new(std::nothrow) AudioStreamAlternate(alt, ASInterface, in AudioStreamingInterface()
469 for (Vector<AudioStreamAlternate*>::Iterator I = fAlternates.Begin(); in ~AudioStreamingInterface()
470 I != fAlternates.End(); I++) in ~AudioStreamingInterface()
473 fAlternates.MakeEmpty(); in ~AudioStreamingInterface()
480 if (fAlternates[fActiveAlternate]->Interface() != NULL) in TerminalLink()
481 return fAlternates[fActiveAlternate]->Interface()->fTerminalLink; in TerminalLink()
506 uint32 rates = fAlternates[fActiveAlternate]->GetSamplingRateIds(); in GetFormatsAndRates()
507 uint32 formats = fAlternates[fActiveAlternate]->GetFormatId(); in GetFormatsAndRates()
H A DAudioStreamingInterface.h156 Vector<AudioStreamAlternate*> fAlternates; variable
/haiku/src/kits/device/
H A DUSBInterface.cpp26 fAlternates(NULL), in BUSBInterface()
43 if (fAlternates != NULL) { in ~BUSBInterface()
45 delete fAlternates[i]; in ~BUSBInterface()
46 delete[] fAlternates; in ~BUSBInterface()
182 if (fAlternateCount > 0 && fAlternates != NULL) { in AlternateAt()
186 return fAlternates[alternateIndex]; in AlternateAt()
194 fAlternates = new(std::nothrow) BUSBInterface *[fAlternateCount]; in AlternateAt()
195 if (fAlternates == NULL) in AlternateAt()
199 fAlternates[i] = new(std::nothrow) BUSBInterface(fConfiguration, fIndex, in AlternateAt()
203 return fAlternates[alternateIndex]; in AlternateAt()
/haiku/headers/os/device/
H A DUSBKit.h297 mutable BUSBInterface ** fAlternates; variable