Skip to main content

Quirk

Enum Quirk 

Source
#[non_exhaustive]
pub enum Quirk { SkipClockValidation, IgnoreInvalidSampleRate, RequireVerifiedRate, SettleDelayMs(u64), PreferPadded24BitTransport, DsdSubslotSize(u8), DsdBigEndian, DsdBitReverse, ExplicitFeedbackPerServiceInterval, }
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). Trust SET_CUR for PCM and skip verification.

§

IgnoreInvalidSampleRate

The DAC reports a rate that differs from the one just set (some report 0 Hz) while playing correctly; do not refuse over the mismatch (PCM).

§

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.

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.