I have alsa working. aplay -l and aplay -L produce the following outputs, respectively:
root@osmc:/etc# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: imxspdif [imx-spdif], device 0: S/PDIF PCM snd-soc-dummy-dai-0
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: imxhdmisoc [imx-hdmi-soc], device 0: i.MX HDMI Audio Tx hdmi-hifi-0
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
root@osmc:/etc# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=imxspdif
imx-spdif,
Default Audio Device
sysdefault:CARD=imxspdif
imx-spdif,
Default Audio Device
iec958:CARD=imxspdif,DEV=0
imx-spdif,
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=imxspdif,DEV=0
imx-spdif,
Direct sample mixing device
dsnoop:CARD=imxspdif,DEV=0
imx-spdif,
Direct sample snooping device
hw:CARD=imxspdif,DEV=0
imx-spdif,
Direct hardware device without any conversions
plughw:CARD=imxspdif,DEV=0
imx-spdif,
Hardware device with all software conversions
default:CARD=imxhdmisoc
imx-hdmi-soc,
Default Audio Device
sysdefault:CARD=imxhdmisoc
imx-hdmi-soc,
Default Audio Device
hdmi:CARD=imxhdmisoc,DEV=0
imx-hdmi-soc,
HDMI Audio Output
dmix:CARD=imxhdmisoc,DEV=0
imx-hdmi-soc,
Direct sample mixing device
dsnoop:CARD=imxhdmisoc,DEV=0
imx-hdmi-soc,
Direct sample snooping device
hw:CARD=imxhdmisoc,DEV=0
imx-hdmi-soc,
Direct hardware device without any conversions
plughw:CARD=imxhdmisoc,DEV=0
imx-hdmi-soc,
Hardware device with all software conversions
default:CARD=Device
USB PnP Sound Device, USB Audio
Default Audio Device
sysdefault:CARD=Device
USB PnP Sound Device, USB Audio
Default Audio Device
front:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
Front speakers
surround21:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
Direct sample mixing device
dsnoop:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
Direct sample snooping device
hw:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
Direct hardware device without any conversions
plughw:CARD=Device,DEV=0
USB PnP Sound Device, USB Audio
Hardware device with all software conversions
I can manipulate the /etc/asound.conf file to default to the USB sound card by modifying it from:
defaults.ctl.card 1
defaults.pcm.card 1
to:
defaults.ctl.card 2
defaults.pcm.card 2
But I can’t seem to get OSMC to recognize anything other than the device number for the card. Any hints on how I might be able to change the asound.conf file that OSMC will recognize a card name instead?
Cheers,
Ian