Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save kylemanna/951542b25073ff67f73d2c3ddac556cb to your computer and use it in GitHub Desktop.

Select an option

Save kylemanna/951542b25073ff67f73d2c3ddac556cb to your computer and use it in GitHub Desktop.

Khada's Tone Board DAC via XMOS USB

https://www.khadas.com/tone

Contents of card directory files under /proc/asound for reference.

File id

Control

File pcm0p/info

card: 4
device: 0
subdevice: 0
stream: PLAYBACK
id: USB Audio
name: USB Audio
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1

File pcm0p/sub0/info

card: 4
device: 0
subdevice: 0
stream: PLAYBACK
id: USB Audio
name: USB Audio
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1

File pcm0p/sub0/status

closed

File pcm0p/sub0/hw_params

closed

File pcm0p/sub0/sw_params

closed

File usbid

20b1:000a

File usbbus

001/096

File stream0

XMOS Khadas Tone Control at usb-0000:00:14.0-2.3, high speed : USB Audio

Playback:
  Status: Stop
  Interface 1
    Altset 1
    Format: S32_LE
    Channels: 2
    Endpoint: 1 OUT (ASYNC)
    Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000, 705600, 768000
    Data packet interval: 125 us
    Bits: 32
  Interface 1
    Altset 2
    Format: S16_LE
    Channels: 2
    Endpoint: 1 OUT (ASYNC)
    Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000, 705600, 768000
    Data packet interval: 125 us
    Bits: 16
  Interface 1
    Altset 3
    Format: SPECIAL DSD_U32_BE
    Channels: 2
    Endpoint: 1 OUT (ASYNC)
    Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000, 705600, 768000
    Data packet interval: 125 us
    Bits: 32

File usbmixer

USB Mixer: usb_id=0x20b1000a, ctrlif=0, ctlerr=0
Card: XMOS Khadas Tone Control at usb-0000:00:14.0-2.3, high speed
  Unit: 10
    Control: name="Khadas Tone Control  Playback Volume", index=1
    Info: id=10, control=2, cmask=0x0, channels=1, type="S16"
    Volume: min=-32512, max=0, dBmin=-12700, dBmax=0
  Unit: 10
    Control: name="Khadas Tone Control  Playback Volume", index=0
    Info: id=10, control=2, cmask=0x3, channels=2, type="S16"
    Volume: min=-32512, max=0, dBmin=-12700, dBmax=0
  Unit: 10
    Control: name="Khadas Tone Control  Playback Switch", index=1
    Info: id=10, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN"
    Volume: min=0, max=1, dBmin=0, dBmax=0
  Unit: 10
    Control: name="Khadas Tone Control  Playback Switch", index=0
    Info: id=10, control=1, cmask=0x3, channels=2, type="INV_BOOLEAN"
    Volume: min=0, max=1, dBmin=0, dBmax=0
  Unit: 41
    Control: name="XMOS Internal Clock Validity", index=0
    Info: id=41, control=2, cmask=0x0, channels=1, type="BOOLEAN"
    Volume: min=0, max=1, dBmin=0, dBmax=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment