I've installed Debian Stretch onto a new HTPC and then updated it to Buster. This helper a lot with audio issues but I still haven't been able to get surround sound working over optical output. I'm seeing two cards, one of which corresponds to HDMI and DP outputs. For the other one, there's a toslink and five 3.5mm jacks (7.1 channel output plus input) on the back of the computer and two 3.5mm jacks (output and input) on the front of the computer.
I've got audio working with HDMI and I've gotten stereo audio from front and back 3.5mm jacks as well as the toslink. I'm stumped on toslink surround though, especially since I read that it doesn't actually support surround and for 5.1 playback, the audio needs to be encoded, and I haven't figured out where and how this happens.
Here's aplay -l for the relevant card:
Code: Select all
card 1: Generic_1 [HD-Audio Generic], device 0: ALC1220 Analog [ALC1220 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 1: ALC1220 Digital [ALC1220 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
And aplay -L:
Code: Select all
sysdefault:CARD=Generic_1
HD-Audio Generic, ALC1220 Analog
Default Audio Device
front:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC1220 Analog
Front speakers
surround21:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC1220 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC1220 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC1220 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC1220 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC1220 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC1220 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC1220 Digital
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC1220 Analog
Direct sample mixing device
dmix:CARD=Generic_1,DEV=1
HD-Audio Generic, ALC1220 Digital
Direct sample mixing device
dsnoop:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC1220 Analog
Direct sample snooping device
dsnoop:CARD=Generic_1,DEV=1
HD-Audio Generic, ALC1220 Digital
Direct sample snooping device
hw:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC1220 Analog
Direct hardware device without any conversions
hw:CARD=Generic_1,DEV=1
HD-Audio Generic, ALC1220 Digital
Direct hardware device without any conversions
plughw:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC1220 Analog
Hardware device with all software conversions
plughw:CARD=Generic_1,DEV=1
HD-Audio Generic, ALC1220 Digital
Hardware device with all software conversions
usbstream:CARD=Generic_1
HD-Audio Generic
USB Stream Output
I tried playing some noise with speaker-test:
Code: Select all
speaker-test -c 6 -l 1 -P 3 -D plughw:1,0
Code: Select all
speaker-test -c 6 -l 1 -P 3 -D plughw:1,1
It plays noise on the front left and right speakers, with only the optical cable connected, and reports other channels as "Unused". I've tried playing some video files with SMPlayer + mpv over Pulseaudio and with VLC using its own sound device selection. I've also tried some AC3 and DTS settings on SMPlayer and pavucontrol.
Here's pacmd list-cards output for the relevant card:
Code: Select all
index: 1
name: <alsa_card.pci-0000_38_00.6>
driver: <module-alsa-card.c>
owner module: 7
properties:
alsa.card = "1"
alsa.card_name = "HD-Audio Generic"
alsa.long_card_name = "HD-Audio Generic at 0xfe480000 irq 88"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:38:00.6"
sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:38:00.6/sound/card1"
device.bus = "pci"
device.vendor.id = "1022"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
device.product.id = "15e3"
device.product.name = "Family 17h (Models 10h-1fh) HD Audio Controller"
device.string = "1"
device.description = "Family 17h (Models 10h-1fh) HD Audio Controller"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
input:analog-stereo: Analoginen stereo Input (priority 65, available: no)
output:analog-stereo: Analoginen stereo Output (priority 6500, available: no)
output:analog-stereo+input:analog-stereo: Analoginen stereo, molemmat suunnat (priority 6565, available: no)
output:analog-surround-21: Analoginen tilaääni 2.1 Output (priority 1300, available: no)
output:analog-surround-21+input:analog-stereo: Analoginen tilaääni 2.1 Output + Analoginen stereo Input (priority 1365, available: no)
output:analog-surround-40: Analoginen tilaääni 4.0 Output (priority 1200, available: no)
output:analog-surround-40+input:analog-stereo: Analoginen tilaääni 4.0 Output + Analoginen stereo Input (priority 1265, available: no)
output:analog-surround-41: Analoginen tilaääni 4.1 Output (priority 1300, available: no)
output:analog-surround-41+input:analog-stereo: Analoginen tilaääni 4.1 Output + Analoginen stereo Input (priority 1365, available: no)
output:analog-surround-50: Analoginen tilaääni 5.0 Output (priority 1200, available: no)
output:analog-surround-50+input:analog-stereo: Analoginen tilaääni 5.0 Output + Analoginen stereo Input (priority 1265, available: no)
output:analog-surround-51: Analoginen tilaääni 5.1 Output (priority 1300, available: no)
output:analog-surround-51+input:analog-stereo: Analoginen tilaääni 5.1 Output + Analoginen stereo Input (priority 1365, available: no)
output:iec958-stereo: Digitaalinen stereo (IEC958) Output (priority 5500, available: unknown)
output:iec958-stereo+input:analog-stereo: Digitaalinen stereo (IEC958) Output + Analoginen stereo Input (priority 5565, available: unknown)
output:iec958-ac3-surround-51: Digitaalinen tilaääni 5.1 (IEC958/AC3) Output (priority 300, available: no)
output:iec958-ac3-surround-51+input:analog-stereo: Digitaalinen tilaääni 5.1 (IEC958/AC3) Output + Analoginen stereo Input (priority 365, available: no)
off: Poissa (priority 0, available: unknown)
active profile: <output:iec958-stereo+input:analog-stereo>
sinks:
alsa_output.pci-0000_38_00.6.iec958-stereo/#1: Family 17h (Models 10h-1fh) HD Audio Controller Digitaalinen stereo (IEC958)
sources:
alsa_output.pci-0000_38_00.6.iec958-stereo.monitor/#1: Monitor of Family 17h (Models 10h-1fh) HD Audio Controller Digitaalinen stereo (IEC958)
alsa_input.pci-0000_38_00.6.analog-stereo/#2: Family 17h (Models 10h-1fh) HD Audio Controller Analoginen stereo
ports:
analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-input-microphone"
analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-input-microphone"
analog-input-linein: Linjasisääntulo (priority 8100, latency offset 0 usec, available: no)
properties:
analog-output-lineout: Line Out (priority 9900, latency offset 0 usec, available: no)
properties:
analog-output-headphones: Analoginen kuulokeliitäntä (priority 9000, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"
iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
properties:
Code: Select all
pacmd set-card-profile 1 output:iec958-ac3-surround-51
So I've got no idea what's going on here or what to do about it, and I'd appreciate some help.