:: Re: [DNG] Devuan on Raspberry Pi 3B…
Página Principal
Delete this message
Reply to this message
Autor: al3xu5 / dotcommon
Data:  
Para: dng
Assunto: Re: [DNG] Devuan on Raspberry Pi 3B+. Sound card driver installation.
Il giorno giovedì 14/03/2019 23:23:52 +0100
Edward Bartolo <edbarx@???> ha scritto:

> I have a raspberry Pi with a Pi DAC Pro sound for which there is no
> driver installed. Searching online takes me to readily prepared
> operating system images that I do not want to use as I am using
> Devuan. Does anyone know what I should do to be able to use the Pi DAC
> Pro sound card under Devuan?


I think the 1st thing is the ALSA setup.

Configuration files are:
~/.asoundrc
/etc/modprobe.d/alsausb.conf


I have a barebone computer working as audio server, with an external Audiolab
DAC connected via USB:

~~~
$ cat /proc/asound/cards
 0 [MDAC     ]: USB-Audio - Audiolab M-DAC
                Lakewest Audio Audiolab M-DAC at usb-0000:00:1d.0-1.6, full
speed
 1 [HDMI     ]: HDA-Intel - HDA Intel HDMI
                HDA Intel HDMI at 0xf7d00000 irq 43
$ lsusb
...
Bus 001 Device 004: ID 0451:adac Texas Instruments, Inc. 
...
~~~


As an example of what your setup might be, here is my ~/.asoundrc :

~~~
pcm.!default{
  type plug
  slave {
    pcm "hw:0,0"
    channels 2
  }
}
~~~


and, using a usb connection, my /etc/modprobe.d/alsausb.conf :

~~~
# ALSA portion
options snd cards_limit=2
alias snd-card-0 snd-usb-audio
alias snd-card-1 snd-hda_intel
options snd-usb-audio index=0
options snd-hda_intel index=1
# OSS/Free portion
alias sound-slot-0 snd-usb-audio
alias sound-slot-1 snd-hda-intel
~~~

There are also a lot of system optimization you can do if you want you machine
being a better bit-perfect real-time audio...


Anyway, other setup is required if you are using a software audio server.
I have mpd running, and here (as na example) is the content of my mpd
configuration file /ect/mpd.conf (the DAC setup is in the
`audio_output`section) :

~~~
# Files and directories #######################################################
## music directory: local files
music_directory        "/media/AUDIO/AudioHiFi"
## playlist directory
playlist_directory    "/home/mmusr/.mpd/playlists"
## other
db_file                "/home/mmusr/.mpd/database"
log_file            "/var/log/mpd/mpd.log"
sticker_file        "/home/mmusr/.mpd/sticker.sql"
pid_file            "/tmp/mpd.pid"
state_file            "/tmp/mpd.state"


# General music daemon options ################################################
## user / group that MPD will run as
user                "mpdusr"
## Network
bind_to_address        "localhost"
port                "6600"
## Other daemon settings
log_level            "default"
restore_paused        "yes"
auto_update            "no"
state_file_interval "300"


# Symbolic link behavior ######################################################
#
# following symbolic links outside of the configured music_directory
#follow_outside_symlinks    "yes"
# following symbolic links inside of the configured music_directory
#follow_inside_symlinks        "yes"


# Zeroconf / Avahi Service Discovery ##########################################
zeroconf_enabled    "no"


# Input #######################################################################
input {
        plugin "curl"
}


# Audio Output ################################################################
## ALSA output 
audio_output {
    type                "alsa"
    name                "MDAC"
    device                "hw:0,0"
    mixer_type            "none"
    replay_gain_handler    "none"
    dsd_usb                "no"
    auto_resample        "no"
    auto_channels        "no"
    auto_format            "no"
}


# Character Encoding ##########################################################
filesystem_charset        "UTF-8"
id3v1_encoding            "UTF-8"


# Playlist plugins ############################################################
playlist_plugin {
    name "cue"
    enabled "yes"
}
playlist_plugin {
    name "embcue"
    enabled "yes"
}
playlist_plugin {
    name "flac"
    enabled "yes"
}
playlist_plugin {
    name "m3u"
    enabled "yes"
}
playlist_plugin {
    name "extm3u"
    enabled "yes"
}
playlist_plugin {
    name "rss"
    enabled "yes"
}
~~~


Obviously, you should refer to *your* specific hardware and software
configuration, having a closer look to the ALSA (and MPD if used) documentation.

Hope it helps.
Regards



--
al3xu5

Say NO to copyright, patents, trademarks and any industrial design restrictions.
________________________________________________________________________________
Public GPG/PGP key block
ID:           4096 bit RSA key 69C5977BF94CFE23
Fingerprint:  59C6 9DC7 CD4B CF2F A190  E3DE 69C5 977B F94C FE23