#!/bin/sh # Reports what audio a rooted webOS TV actually exposes. # # Which capture backend works depends on the model and firmware: some sets run # PulseAudio with a monitor source, some only offer ALSA, some need an external # helper. Run this once on the TV and the answer is usually obvious. # # On the TV: # sh tv-probe.sh # # From here, over the Homebrew Channel's ssh: # ssh -p 9922 root@TV-IP 'sh -s' < tools/tv-probe.sh # ares-shell --device tv -r "$(cat tools/tv-probe.sh)" # # Reads only. Nothing here changes the TV. header() { printf '\n=== %s\n' "$1" } have() { command -v "$1" >/dev/null 2>&1 } show() { # show