SOLVED: Please help installing alsa-lib-a52pcm

Hi all,

Just switched from Mint to Manjaro. My system with 5.1 surround sound (via S/PDIF, coaxial) was working fine after installing libasound2-plugins-extra package and a few modifications in /etc/pulse/default.pa.

I didn’t manage to get the surround sound working in Manjaro but I read that alsa-lib-a52pcm is required. However, I cannot install it from AUR (AUR (en) - alsa-lib-a52pcm ) due to depedency problem. I succeeded to install the libavreample from AUR, but alsa-lib-a52pcm cannot be installed due to conflicts.

conflicting files:
- alsa-lib-a52pcm: /usr/bin/aserver already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/asoundef.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/asoundlib.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/conf.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/control.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/control_external.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/error.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/global.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/hwdep.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/input.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/mixer.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/mixer_abst.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/output.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/pcm.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/pcm_external.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/pcm_extplug.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/pcm_ioplug.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/pcm_old.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/pcm_plugin.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/pcm_rate.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/rawmidi.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/seq.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/seq_event.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/seq_midi_event.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/seqmid.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/sound/asoc.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/sound/asound_fm.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/sound/emu10k1.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/sound/hdsp.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/sound/hdspm.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/sound/sb16_csp.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/sound/sscape_ioctl.h already exists in filesystem (owned by alsa-lib)
- alsa-lib-a52pcm: /usr/include/alsa/sound/tlv.h already exists in filesystem

How to successfully install it (step by step Tried to makechrootpkg as informed in the AUR page but it claims that my system doesn*t understand “makechrootpkg” command.

/etc/pulse/default.pa:

#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

# This startup script is used only if PulseAudio is started per-user
# (i.e. not in system mode)

.fail

### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

### Automatically augment property information from .desktop files
### stored in /usr/share/application
load-module module-augment-properties

### Should be after module-*-restore but before module-*-detect
load-module module-switch-on-port-available

### Load audio drivers statically
### (it's probably better to not load these drivers manually, but instead
### use module-udev-detect -- see below -- for doing this automatically)
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
#load-module module-null-sink
#load-module module-pipe-sink

### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Use the static hardware detection module (for systems that lack udev support)
load-module module-detect
.endif

### Automatically connect sink and source if JACK server is present
.ifexists module-jackdbus-detect.so
.nofail
load-module module-jackdbus-detect channels=2
.fail
.endif

### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy
.endif

.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif

### Load several protocols
load-module module-dbus-protocol
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix

### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp
#load-module module-zeroconf-publish

### Load the RTP receiver module (also configured via paprefs, see above)
#load-module module-rtp-recv

### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
#load-module module-rtp-send source=rtp.monitor

### Load additional modules from GSettings. This can be configured with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might conflict with manually
### loaded modules.
.ifexists module-gsettings.so
.nofail
load-module module-gsettings
.fail
.endif


### Automatically restore the default sink/source when changed by the user
### during runtime
### NOTE: This should be loaded as early as possible so that subsequent modules
### that look up the default sink/source get the right value
load-module module-default-device-restore

### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams

### Make sure we always have a sink around, even if it is a null sink.
load-module module-always-sink

### Honour intended role device property
load-module module-intended-roles

### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle

### If autoexit on idle is enabled we want to make sure we only quit
### when no local session needs us anymore.
.ifexists module-console-kit.so
load-module module-console-kit
.endif
.ifexists module-systemd-login.so
load-module module-systemd-login
.endif

### Enable positioned event sounds
load-module module-position-event-sounds

### Cork music/video streams when a phone stream is active
load-module module-role-cork

### Modules to allow autoloading of filters (such as echo cancellation)
### on demand. module-filter-heuristics tries to determine what filters
### make sense, and module-filter-apply does the heavy-lifting of
### loading modules and rerouting streams.
load-module module-filter-heuristics
load-module module-filter-apply

### Make some devices default
set-default-sink alsa_output.pci-0000_00_14.2.iec958-ac3-surround-51
#set-default-source alsa_output.pci-0000_00_14.2.iec958-stereo.monitor

/home/myname/.asoundrc:

pcm.a52 {
  @args [CARD]
  @args.CARD {
    type string
  }
  type rate
  slave {
    pcm {
      type a52
      bitrate 448
      channels 6
      card $CARD
    }
    rate 48000
  }
}

Did you follow the instructions in the pinned comment?

EDIT: I see that you were attempting that. First install the following:

sudo pacman -Syu --needed base-devel git manjaro-tools-pkg

Then follow the instructions in the pinned comment except use mkchrootpkg instead of makechrootpkg.

Also please use Preformatted text </> instead of Quote " for logs and such. I’ve done it for you this time.

Cannot - makechrootpkg isnt possible in manjaro.

(I would like to hunt down the exec so I can see what exactly its doing/automating…)

[EDIT - found it in devtools arch package: makechrootpkg.in - devtools.git - The official devtools repository]

1 Like

Thank you for your help.

After installing those packages:

$ mkchrootpkg -c -r $CHROOT
/usr/bin/mkchrootpkg: option requires an argument -- r
Usage: mkchrootpkg [options] -r <chrootdir> [--] [makepkg args]
      Run this script in a PKGBUILD dir to build a package inside a
      clean chroot. Arguments passed to this script after the
      end-of-options marker (--) will be passed to makepkg.

      The chroot dir consists of the following directories:
      <chrootdir>/{root, copy} but only "root" is required
      by default. The working copy will be created as needed

      The chroot "root" directory must be created via the following
      command:
      mkchroot <chrootdir>/root base-devel

      Default makepkg args: -s --noconfirm -L

      Flags:
        -h         This help
        -c         Clean the chroot before building
        -u         Update the working copy of the chroot before building
                   This is useful for rebuilds without dirtying the pristine
                   chroot
        -r <dir>   The chroot dir to use
        -I <pkg>   Install a package into the working copy of the chroot
        -l <copy>  The directory to use as the working copy of the chroot
                   Useful for maintaining multiple copies
                   Default: nkorpi
        -n         Run namcap on the package
        -T         Build in a temporary directory

What is the correct command to launch it?

edit: after successful launch of mkchroot $CHROOT/root base-devel, same result with mkchrootpkg.

In those instructions, the $CHROOT variable is already defined.

From the Arch wiki:

To make a clean chroot, create a directory in which the chroot will reside. For example, $HOME/chroot.

$ mkdir ~/chroot

Define the CHROOT variable:

$ CHROOT=$HOME/chroot

Now create the chroot (the sub directory root is required because the $CHROOT directory will get other sub directories for clean working copies).

Remember, we’re using mkchroot instead of mkarchroot:

$ mkchroot $CHROOT/root base-devel

Now you’re ready to start following the original instructions using mkchrootpkg instead of makechrootpkg.

Thanks. Went through the installation.

Only differs were that pkg.tar.zst’s were created instead of pkg.tar.xz’s so I used those “zst”-suffixes in pacman -U -commands.

Installation was successful, so thank you.

No digital surround is available through S/PDIF, though. This was my original problem.

Edit: I mark this as solved. I will start a new thread.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.