Skip to content

Instantly share code, notes, and snippets.

@andyjack
Last active February 18, 2023 20:42
Show Gist options
  • Save andyjack/3bd820effefb4aaa821961de0f60a823 to your computer and use it in GitHub Desktop.
Save andyjack/3bd820effefb4aaa821961de0f60a823 to your computer and use it in GitHub Desktop.

I have a Vantec NBA-200U audio USB device, it has a Digital S/PDIF in. I want to listen to SPDIF out from my MacBook.

I have a fairly stock Ubuntu 17.10 setup, but I think I had to apt-get install pavucontrol.

pavucontrol

  • Configuration
    • "CM106 Like Sound Device"
      • "Analog Stereo Output + Digital Stereo (IEC958) input"
  • Input Devices
    • CM106 Like Sound Device Digital Stereo (IEC958)
      • Port: Digital Input (S/PDIF)

alsamixer

  • Pick USB Sound Device with F6
  • Show F3 Playback
  • Arrow keys to "PCM Capture Source"
  • Change to IEC 958 In

add loopback

pacmd load-module module-loopback latency_msec=5

pavucontrol again

  • Go to Playback tab
  • Change Show to All Streams
  • set output device for loopback
  • Go to Recording tab
  • set input device for loopback

source setup

  • 2 ch, 44100 hz, 16bit
  • I haven't found out yet where to set sampling on the linux input, so I had to fiddle the source output instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment