Skip to main content

Quirk

Enum Quirk 

Source
#[non_exhaustive]
pub enum Quirk {
Show 24 variants SkipClockValidation, IgnoreInvalidSampleRate, RequireVerifiedRate, SettleDelayMs(u64), PreferPadded24BitTransport, DsdSubslotSize(u8), DsdBigEndian, DsdBitReverse, ExplicitFeedbackPerServiceInterval, ControlMessageDelayUs(u64), InterfaceDelayMs(u64), SetInterfaceFirst, PlaybackUrbFixup, SkipSampleRateReadback, SkipImplicitFeedback, MixerPlaybackMinMute, MixerPlaybackLinearVolume, RawDsd32Be, FixedRate, ImplicitSilenceOnEmpty, SkipClockSelectorWrites, IgnoreOptionalControlErrors, TxLengthPrefix, PlaybackFirst,
}
Expand description

One behaviour switch for a device. Only switches the transport actually honours are listed.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

SkipClockValidation

The clock readback is unreliable (GET_CUR/GET_RANGE return 0 or fail). Permit acknowledged PCM SET in an unverified tier.

§

IgnoreInvalidSampleRate

The DAC reports a rate that differs from the one just set (some report 0 Hz) while playing correctly; zero remains unverified and positive mismatches are refused.

§

RequireVerifiedRate

Refuse to stream unless the DAC confirms the sampling frequency, even if DacConfig::require_verified_rate is off.

§

SettleDelayMs(u64)

Wait this many milliseconds after programming the clock.

§

PreferPadded24BitTransport

Prefer the 4-byte subslot over the 3-byte one for 24-bit PCM.

§

DsdSubslotSize(u8)

Override the subslot size (1, 2 or 4 bytes) of native DSD alternate settings, for devices whose descriptors are wrong or ambiguous.

§

DsdBigEndian

Native DSD words go on the wire most-significant byte first.

§

DsdBitReverse

Reverse the bit order within each native DSD byte.

§

ExplicitFeedbackPerServiceInterval

Decode four-byte high-speed feedback as frames per OUT service interval. Opt in only with a device trace proving these units (e.g. Linux UAC2 gadget). No built-in device enables this compatibility rule.

§

ControlMessageDelayUs(u64)

Wait after class-control requests, including failed replies.

§

InterfaceDelayMs(u64)

Wait after a successful SET_INTERFACE.

§

SetInterfaceFirst

Activate the proven playback alternate before clock programming.

§

PlaybackUrbFixup

Start with twelve URBs where the 255-packet cap permits.

§

SkipSampleRateReadback

Omit unreliable frequency GET_CUR; retain CLOCK_UNVERIFIED.

§

SkipImplicitFeedback

Refuse implicit sources for this device.

§

MixerPlaybackMinMute

The verified raw minimum means silence on playback volume controls.

§

MixerPlaybackLinearVolume

The playback raw range is linear amplitude from silence to unity.

§

RawDsd32Be

Exact source-backed RAW_DATA UAC2 alternate uses 32-bit big-endian words.

§

FixedRate

Skip a rate write only after fixed descriptor and exact live rate proof.

§

ImplicitSilenceOnEmpty

Replace at most one empty implicit completion with measured-cadence silence.

§

SkipClockSelectorWrites

Read current clock selector pins but never rewrite them.

§

IgnoreOptionalControlErrors

Skip unusable optional mixer controls; never waive rate, attenuation or SET proof.

§

TxLengthPrefix

Exact Zoom standard PCM OUT profile: four-byte LE audio-length prefix.

§

PlaybackFirst

Start bounded nominal OUT silence before a proven implicit IN source.

Trait Implementations§

Source§

impl Clone for Quirk

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Quirk

Source§

impl Debug for Quirk

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Quirk

Source§

impl PartialEq for Quirk

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Quirk

Auto Trait Implementations§

§

impl Forget for Quirk

§

impl Freeze for Quirk

§

impl Move for Quirk

§

impl RefUnwindSafe for Quirk

§

impl Send for Quirk

§

impl Sync for Quirk

§

impl Unpin for Quirk

§

impl UnsafeUnpin for Quirk

§

impl UnwindSafe for Quirk

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.