Configuring 5.1 Audio (new thread)

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Caboose30
Level 1
Level 1
Posts: 19
Joined: Wed Nov 07, 2018 1:19 am

Configuring 5.1 Audio (new thread)

Post by Caboose30 »

Greetings! I know this is an old thread at this point, but I'm having some similar issues. I tried following along and I'm afraid I didn't get the results that the other gentleman did. Would you be willing to give me a hand as well?
User avatar
MrEen
Level 21
Level 21
Posts: 14190
Joined: Mon Jun 12, 2017 8:39 pm

Re: Configuring 5.1 Audio

Post by MrEen »

Hi Caboose30,

I'm going to split your request off into a separate topic. Don't be afraid in the future to start your own topics.

For starters, let's get a look at your sound setup with this command:

Code: Select all

curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999
That will have a URL on the last line pointing to the info.
Caboose30
Level 1
Level 1
Posts: 19
Joined: Wed Nov 07, 2018 1:19 am

Re: Configuring 5.1 Audio (new thread)

Post by Caboose30 »

Understood, I appreciate your help. Here's the line it spit out when it finished.
https://termbin.com/g6nu
User avatar
MrEen
Level 21
Level 21
Posts: 14190
Joined: Mon Jun 12, 2017 8:39 pm

Re: Configuring 5.1 Audio (new thread)

Post by MrEen »

What have you got connected and how is it connected for audio? Speakers via 3.5mm jacks? Optical connected speakers? HDMI connected monitor speakers? Receiver connected via any of the previous methods?
Caboose30
Level 1
Level 1
Posts: 19
Joined: Wed Nov 07, 2018 1:19 am

Re: Configuring 5.1 Audio (new thread)

Post by Caboose30 »

It's the same as the dude in the last post, which is why I piggybacked off if it. It's an ALC1220-VB chip(codec) via toslink to older Logitech 5.1 surround speakers. They support WMA, Dolby and DTS.
User avatar
MrEen
Level 21
Level 21
Posts: 14190
Joined: Mon Jun 12, 2017 8:39 pm

Re: Configuring 5.1 Audio (new thread)

Post by MrEen »

Okay, gotcha.

First off, you have some files that don't look right:

Code: Select all

</home/caboose/.asoundrc.asoundconf>
pcm.!default { type pulse }
ctl.!default { type pulse }
You might need to delete those/that.

Starting at this post, have you already done that stuff?

I also see you didn't change the default sample rate to 48000 in /etc/pulse/daemon.conf.

Here's what the other user had for the a52.conf file when it worked:

Code: Select all

pcm.a52 {
@args [CARD]
@args.CARD {
type string
}
type rate
slave {
pcm {
type a52
bitrate 448
channels 6
card $CARD
}
rate 48000 #required somehow, otherwise nothing happens in PulseAudio
}
}

pcm.!default {
type hw
card PCH
}
ctl.!default {
type hw
card PCH
}
Caboose30
Level 1
Level 1
Posts: 19
Joined: Wed Nov 07, 2018 1:19 am

Re: Configuring 5.1 Audio (new thread)

Post by Caboose30 »

MrEen wrote:
Sun Oct 18, 2020 3:05 pm
Okay, gotcha.

First off, you have some files that don't look right:

Code: Select all

</home/caboose/.asoundrc.asoundconf>
pcm.!default { type pulse }
ctl.!default { type pulse }
You might need to delete those/that.

Starting at this post, have you already done that stuff?

I also see you didn't change the default sample rate to 48000 in /etc/pulse/daemon.conf.

Here's what the other user had for the a52.conf file when it worked:

Code: Select all

pcm.a52 {
@args [CARD]
@args.CARD {
type string
}
type rate
slave {
pcm {
type a52
bitrate 448
channels 6
card $CARD
}
rate 48000 #required somehow, otherwise nothing happens in PulseAudio
}
}

pcm.!default {
type hw
card PCH
}
ctl.!default {
type hw
card PCH
}
I swear I went in there and changed the sample rate. I'll comb back through everything and redo the steps. Thanks for pointing that out!
User avatar
MrEen
Level 21
Level 21
Posts: 14190
Joined: Mon Jun 12, 2017 8:39 pm

Re: Configuring 5.1 Audio (new thread)

Post by MrEen »

You're welcome. I'm hopeful we can get this going! :D
Caboose30
Level 1
Level 1
Posts: 19
Joined: Wed Nov 07, 2018 1:19 am

Re: Configuring 5.1 Audio (new thread)

Post by Caboose30 »

Okay, I went through those steps again and logged back in after typing "sudo init 6". The sample rate change stayed and all other file modifications appear to have stayed changed as well. However it all falls apart when I open pavucontrol - everything there is the same as it was before.
Last edited by Caboose30 on Sun Oct 18, 2020 3:54 pm, edited 1 time in total.
Caboose30
Level 1
Level 1
Posts: 19
Joined: Wed Nov 07, 2018 1:19 am

Re: Configuring 5.1 Audio (new thread)

Post by Caboose30 »

Sorry, to clarify, the only surround options available to me are analog.
User avatar
MrEen
Level 21
Level 21
Posts: 14190
Joined: Mon Jun 12, 2017 8:39 pm

Re: Configuring 5.1 Audio (new thread)

Post by MrEen »

Let's see pacmd list-cards please.
Caboose30
Level 1
Level 1
Posts: 19
Joined: Wed Nov 07, 2018 1:19 am

Re: Configuring 5.1 Audio (new thread)

Post by Caboose30 »

Here you are!

5 card(s) available.
index: 0
name: &lt;alsa_card.usb-Generic_FULL_HD_1080P_Webcam_200901010001-02&gt;
driver: &lt;module-alsa-card.c&gt;
owner module: 7
properties:
alsa.card = &quot;4&quot;
alsa.card_name = &quot;FULL HD 1080P Webcam&quot;
alsa.long_card_name = &quot;Generic FULL HD 1080P Webcam at usb-0000:09:00.1-6.3.4, high speed&quot;
alsa.driver_name = &quot;snd_usb_audio&quot;
device.bus_path = &quot;pci-0000:09:00.1-usb-0:6.3.4:1.2&quot;
sysfs.path = &quot;/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:09:00.1/usb1/1-6/1-6.3/1-6.3.4/1-6.3.4:1.2/sound/card4&quot;
udev.id = &quot;usb-Generic_FULL_HD_1080P_Webcam_200901010001-02&quot;
device.bus = &quot;usb&quot;
device.vendor.id = &quot;0bda&quot;
device.vendor.name = &quot;Realtek Semiconductor Corp.&quot;
device.product.id = &quot;58bb&quot;
device.product.name = &quot;FULL HD 1080P Webcam&quot;
device.serial = &quot;Generic_FULL_HD_1080P_Webcam_200901010001&quot;
device.form_factor = &quot;webcam&quot;
device.string = &quot;4&quot;
device.description = &quot;FULL HD 1080P Webcam&quot;
module-udev-detect.discovered = &quot;1&quot;
device.icon_name = &quot;camera-web-usb&quot;
profiles:
input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
input:iec958-stereo: Digital Stereo (IEC958) Input (priority 55, available: unknown)
off: Off (priority 0, available: unknown)
active profile: &lt;off&gt;
ports:
analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: unknown)
properties:
device.icon_name = &quot;audio-input-microphone&quot;
iec958-stereo-input: Digital Input (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
properties:

index: 1
name: &lt;alsa_card.usb-BLUE_MICROPHONE_Blue_Snowball_201305-00&gt;
driver: &lt;module-alsa-card.c&gt;
owner module: 8
properties:
alsa.card = &quot;3&quot;
alsa.card_name = &quot;Blue Snowball&quot;
alsa.long_card_name = &quot;BLUE MICROPHONE Blue Snowball at usb-0000:09:00.1-6.4, full speed&quot;
alsa.driver_name = &quot;snd_usb_audio&quot;
device.bus_path = &quot;pci-0000:09:00.1-usb-0:6.4:1.0&quot;
sysfs.path = &quot;/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:09:00.1/usb1/1-6/1-6.4/1-6.4:1.0/sound/card3&quot;
udev.id = &quot;usb-BLUE_MICROPHONE_Blue_Snowball_201305-00&quot;
device.bus = &quot;usb&quot;
device.vendor.id = &quot;0d8c&quot;
device.vendor.name = &quot;C-Media Electronics, Inc.&quot;
device.product.id = &quot;0005&quot;
device.product.name = &quot;Blue Snowball&quot;
device.serial = &quot;BLUE_MICROPHONE_Blue_Snowball_201305&quot;
device.string = &quot;3&quot;
device.description = &quot;Blue Snowball&quot;
module-udev-detect.discovered = &quot;1&quot;
device.icon_name = &quot;audio-card-usb&quot;
profiles:
input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
off: Off (priority 0, available: unknown)
active profile: &lt;input:analog-stereo&gt;
sources:
alsa_input.usb-BLUE_MICROPHONE_Blue_Snowball_201305-00.analog-stereo/#0: Blue Snowball Analog Stereo
ports:
analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: unknown)
properties:
device.icon_name = &quot;audio-input-microphone&quot;
index: 2
name: &lt;alsa_card.pci-0000_0e_00.1&gt;
driver: &lt;module-alsa-card.c&gt;
owner module: 9
properties:
alsa.card = &quot;0&quot;
alsa.card_name = &quot;HD-Audio Generic&quot;
alsa.long_card_name = &quot;HD-Audio Generic at 0xf7aa0000 irq 181&quot;
alsa.driver_name = &quot;snd_hda_intel&quot;
device.bus_path = &quot;pci-0000:0e:00.1&quot;
sysfs.path = &quot;/devices/pci0000:00/0000:00:03.1/0000:0c:00.0/0000:0d:00.0/0000:0e:00.1/sound/card0&quot;
device.bus = &quot;pci&quot;
device.vendor.id = &quot;1002&quot;
device.vendor.name = &quot;Advanced Micro Devices, Inc. [AMD/ATI]&quot;
device.product.id = &quot;aaf8&quot;
device.product.name = &quot;Vega 10 HDMI Audio [Radeon Vega 56/64]&quot;
device.string = &quot;0&quot;
device.description = &quot;Vega 10 HDMI Audio [Radeon Vega 56/64]&quot;
module-udev-detect.discovered = &quot;1&quot;
device.icon_name = &quot;audio-card-pci&quot;
profiles:
output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: unknown)
output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: unknown)
output:hdmi-stereo-extra5: Digital Stereo (HDMI 6) Output (priority 5700, available: no)
output:hdmi-surround-extra5: Digital Surround 5.1 (HDMI 6) Output (priority 600, available: no)
output:hdmi-surround71-extra5: Digital Surround 7.1 (HDMI 6) Output (priority 600, available: no)
off: Off (priority 0, available: unknown)
active profile: &lt;off&gt;
ports:
hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
properties:
device.icon_name = &quot;video-display&quot;
hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: yes)
properties:
device.icon_name = &quot;video-display&quot;
device.product.name = &quot;SAMSUNG&quot;
hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
properties:
device.icon_name = &quot;video-display&quot;
hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
properties:
device.icon_name = &quot;video-display&quot;
hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: yes)
properties:
device.icon_name = &quot;video-display&quot;
device.product.name = &quot;AORUS FI27Q-P&quot;
hdmi-output-5: HDMI / DisplayPort 6 (priority 5400, latency offset 0 usec, available: no)
properties:
device.icon_name = &quot;video-display&quot;
index: 3
name: &lt;alsa_card.usb-C-Media_Electronics_Inc._USB_Advanced_Audio_Device-00&gt;
driver: &lt;module-alsa-card.c&gt;
owner module: 10
properties:
alsa.card = &quot;2&quot;
alsa.card_name = &quot;USB Advanced Audio Device&quot;
alsa.long_card_name = &quot;C-Media Electronics Inc. USB Advanced Audio Device at usb-0000:10:00.3-4.3, ful&quot;
alsa.driver_name = &quot;snd_usb_audio&quot;
device.bus_path = &quot;pci-0000:10:00.3-usb-0:4.3:1.0&quot;
sysfs.path = &quot;/devices/pci0000:00/0000:00:08.1/0000:10:00.3/usb5/5-4/5-4.3/5-4.3:1.0/sound/card2&quot;
udev.id = &quot;usb-C-Media_Electronics_Inc._USB_Advanced_Audio_Device-00&quot;
device.bus = &quot;usb&quot;
device.vendor.id = &quot;0d8c&quot;
device.vendor.name = &quot;C-Media Electronics, Inc.&quot;
device.product.id = &quot;01c2&quot;
device.product.name = &quot;USB Advanced Audio Device&quot;
device.serial = &quot;C-Media_Electronics_Inc._USB_Advanced_Audio_Device&quot;
device.string = &quot;2&quot;
device.description = &quot;USB Advanced Audio Device&quot;
module-udev-detect.discovered = &quot;1&quot;
device.icon_name = &quot;audio-card-usb&quot;
profiles:
input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
input:iec958-stereo: Digital Stereo (IEC958) Input (priority 55, available: unknown)
off: Off (priority 0, available: unknown)
active profile: &lt;off&gt;
ports:
analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: unknown)
properties:
device.icon_name = &quot;audio-input-microphone&quot;
iec958-stereo-input: Digital Input (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
properties:

index: 4
name: &lt;alsa_card.pci-0000_10_00.4&gt;
driver: &lt;module-alsa-card.c&gt;
owner module: 11
properties:
alsa.card = &quot;1&quot;
alsa.card_name = &quot;HD-Audio Generic&quot;
alsa.long_card_name = &quot;HD-Audio Generic at 0xf7900000 irq 183&quot;
alsa.driver_name = &quot;snd_hda_intel&quot;
device.bus_path = &quot;pci-0000:10:00.4&quot;
sysfs.path = &quot;/devices/pci0000:00/0000:00:08.1/0000:10:00.4/sound/card1&quot;
device.bus = &quot;pci&quot;
device.vendor.id = &quot;1022&quot;
device.vendor.name = &quot;Advanced Micro Devices, Inc. [AMD]&quot;
device.product.id = &quot;1487&quot;
device.product.name = &quot;Starship/Matisse HD Audio Controller&quot;
device.string = &quot;1&quot;
device.description = &quot;Starship/Matisse HD Audio Controller&quot;
module-udev-detect.discovered = &quot;1&quot;
device.icon_name = &quot;audio-card-pci&quot;
profiles:
input:analog-stereo: Analog Stereo Input (priority 65, available: no)
output:analog-stereo: Analog Stereo Output (priority 6500, available: no)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: no)
output:analog-surround-21: Analog Surround 2.1 Output (priority 1300, available: no)
output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + Analog Stereo Input (priority 1365, available: no)
output:analog-surround-40: Analog Surround 4.0 Output (priority 1200, available: no)
output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (priority 1265, available: no)
output:analog-surround-41: Analog Surround 4.1 Output (priority 1300, available: no)
output:analog-surround-41+input:analog-stereo: Analog Surround 4.1 Output + Analog Stereo Input (priority 1365, available: no)
output:analog-surround-50: Analog Surround 5.0 Output (priority 1200, available: no)
output:analog-surround-50+input:analog-stereo: Analog Surround 5.0 Output + Analog Stereo Input (priority 1265, available: no)
output:analog-surround-51: Analog Surround 5.1 Output (priority 1300, available: no)
output:analog-surround-51+input:analog-stereo: Analog Surround 5.1 Output + Analog Stereo Input (priority 1365, available: no)
output:iec958-stereo: Digital Stereo (IEC958) Output (priority 5500, available: unknown)
output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (priority 5565, available: no)
off: Off (priority 0, available: unknown)
active profile: &lt;output:iec958-stereo&gt;
sinks:
alsa_output.pci-0000_10_00.4.iec958-stereo/#0: Starship/Matisse HD Audio Controller Digital Stereo (IEC958)
sources:
alsa_output.pci-0000_10_00.4.iec958-stereo.monitor/#1: Monitor of Starship/Matisse HD Audio Controller Digital Stereo (IEC958)
ports:
analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
properties:
device.icon_name = &quot;audio-input-microphone&quot;
analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: no)
properties:
device.icon_name = &quot;audio-input-microphone&quot;
analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
properties:

analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: no)
properties:

analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
properties:
device.icon_name = &quot;audio-headphones&quot;
iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
properties:
User avatar
MrEen
Level 21
Level 21
Posts: 14190
Joined: Mon Jun 12, 2017 8:39 pm

Re: Configuring 5.1 Audio (new thread)

Post by MrEen »

Okay, we still don't have the proper iec958 setting yet.

Did you delete ~/.asoundrc.asoundconf yet?
Caboose30
Level 1
Level 1
Posts: 19
Joined: Wed Nov 07, 2018 1:19 am

Re: Configuring 5.1 Audio (new thread)

Post by Caboose30 »

I didn't delete the files, but I deleted the contents of the one that had anything in it. They both contain nothing that isn't commented out.
User avatar
MrEen
Level 21
Level 21
Posts: 14190
Joined: Mon Jun 12, 2017 8:39 pm

Re: Configuring 5.1 Audio (new thread)

Post by MrEen »

Okay, let's check this again:

Code: Select all

curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999
Caboose30
Level 1
Level 1
Posts: 19
Joined: Wed Nov 07, 2018 1:19 am

Re: Configuring 5.1 Audio (new thread)

Post by Caboose30 »

Here you are sir.
https://termbin.com/21rs
User avatar
MrEen
Level 21
Level 21
Posts: 14190
Joined: Mon Jun 12, 2017 8:39 pm

Re: Configuring 5.1 Audio (new thread)

Post by MrEen »

I still don't like seeing this stuff:

Code: Select all

!!ALSA configuration files
!!------------------------

!!User specific config file (~/.asoundrc)

# ALSA library configuration file

# Include settings that are under the control of asoundconf(1).
# (To disable these settings, comment out this line.)
#</home/caboose/.asoundrc.asoundconf>



!!asoundconf-generated config file

# ALSA library configuration file managed by asoundconf(1).
#
# MANUAL CHANGES TO THIS FILE WILL BE OVERWRITTEN!
#
# Manual changes to the ALSA library configuration should be implemented
# by editing the ~/.asoundrc file, not by editing this file.
But I admit I'm not sure what is causing the second one. Your a52.conf file is in /usr/share/alsa/alsa.conf.d/, correct?

In fact, let's look at it with cat /usr/share/alsa/alsa.conf.d/a52.conf

EDIT: Does /etc/asound.conf exist? Or /etc/asoundconf?
Caboose30
Level 1
Level 1
Posts: 19
Joined: Wed Nov 07, 2018 1:19 am

Re: Configuring 5.1 Audio (new thread)

Post by Caboose30 »

First, a52.conf:

pcm.a52 {
@args [CARD]
@args.CARD {
type string
}
type rate
slave {
pcm {
type a52
bitrate 448
channels 6
card $CARD
}
rate 48000 #required somehow, otherwise nothing happens in PulseAudio
}
}

pcm.!default {
type hw
card PCH
}
ctl.!default {
type hw
card PCH
}

There is nothing with 'asound' in it in the /etc directory. No file or subdirectory.
User avatar
MrEen
Level 21
Level 21
Posts: 14190
Joined: Mon Jun 12, 2017 8:39 pm

Re: Configuring 5.1 Audio (new thread)

Post by MrEen »

Okay, the lack of indenting might be causing this. Here's the beginning what the file should look like:

Code: Select all

pcm.a52 {
  @args [CARD]
  @args.CARD {
    type string
  }
  type rate
  slave {
    pcm {
      type a52
      bitrate 448
      channels 6
      card $CARD
    }
  rate 48000 #required somehow, otherwise nothing happens in PulseAudio
  }
}
pcm.!default {
	type hw
    card Generic_1
}
ctl.!default {
	type hw
    card Generic_1
}
Notice that I also caught another issue and have changed PCH to Generic_1. That would certainly prevent this from working!
Caboose30
Level 1
Level 1
Posts: 19
Joined: Wed Nov 07, 2018 1:19 am

Re: Configuring 5.1 Audio (new thread)

Post by Caboose30 »

I'm going to have to run through this tomorrow and continue then. Thanks for your help! Sorry if I seem brusque, seems like I never get a break from work.
Post Reply

Return to “Hardware Support”