[PLUGIN] NanoSound CD plugin

My dac are suptronic x5000

My setting are vanilla config and nanosound plugin

Hi all,

Regarding using internal audio jack (non i2s), we got volumio control working by using “Hardware” mixer type and “PCM” Mixer Control Name

Make sure the NanoSound CD upsampling set to disable as internal audio does not support it.

internaljack.jpg

hardwarepcm.jpg

Hope this helps.

The /etc/asound.conf is just below (unchanged from auto reconfig audio):

defaults.pcm.card 0
defaults.ctl.card 0

ABOVE LINES WERE ADDED BY NANOSOUND CD

BELOW LINES WERE ADDED BY NANOSOUND CD

defaults.pcm.rate_converter “samplerate”

pcm_slave.x4 {
pcm “hw:1,0”
rate 176400
}

pcm_slave.x2 {
pcm “hw:1,0”
rate 88200
}

pcm.rate_convertx4 {
type rate
slave x4
converter “samplerate”
}

pcm.rate_convertx2 {
type rate
slave x2
converter “samplerate”
}

We have written a list of recommended volume control options for different DACs here.

Hope this helps!

Hi

I attached an ide cd drive to volumio. The drive work, I can see list of tracks in volumio and even when click the play button the numbers are running, but no Audio comes out. Other audio from NAS/Spotify comes out a usual. How can I inspect this?

I can’t get any CD to play.

Using lsusb, my player shows up as: Bus 001 Device 003: ID 13fd:0840 Initio Corporation INIC-1618L SATA.
Using ls /dev it is present as: sr0

This player works fine, both under Windows 10 and Linux Mint.

The “Eject CD” button in the plugin settings also works, but when inserting CD’s nothing happens.

The solution as posted by ThomasL fails due to missing dependencies.

The following packages have unmet dependencies:
libpam-systemd : Depends: systemd (= 215-17+deb8u8) but 215-17+deb8u7 is to be installed
systemd : Depends: libsystemd0 (= 215-17+deb8u7) but 215-17+deb8u8 is to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

Trying: apt-get -f install

Results in the following:

dpkg: warning: files list file for package ‘upmpdcli-qobuz’ missing; assuming package has no files currently installed
dpkg: warning: files list file for package ‘netplug’ missing; assuming package has no files currently installed
dpkg: warning: files list file for package ‘telnet’ missing; assuming package has no files currently installed
dpkg: warning: files list file for package ‘upmpdcli-gmusic’ missing; assuming package has no files currently installed
dpkg: warning: files list file for package ‘upmpdcli-tidal’ missing; assuming package has no files currently installed
(Reading database … 23000 files and directories currently installed.)
Preparing to unpack …/systemd_215-17+deb8u8_armhf.deb …
Unpacking systemd (215-17+deb8u8) over (215-17+deb8u7) …
dpkg: error processing archive /var/cache/apt/archives/systemd_215-17+deb8u8_armhf.deb (–unpack):
trying to overwrite ‘/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service’, which is also in package systemd-shim 9-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
addgroup: The group `systemd-journal’ already exists as a system group. Exiting.
Processing triggers for dbus (1.8.22-0+deb8u1) …
Errors were encountered while processing:
/var/cache/apt/archives/systemd_215-17+deb8u8_armhf.deb

Please try the auto config audio function in NanoSound CD plug in settings and reboot.

If problem persist, please try share the output of

aplay -l

and also your /etc/asound.conf file.

thanks

Thank you ! it worked !

A little kick.

I’ve installed the latest updates for volumio, but nothing has changed. The player is still visible via lsusb and ls /dev, it responds to the eject command via the plugin settings and I hear CD’s spin up after loading them.

However, nothing happens in the GUI, I don’t see any playlist appear and I don’t hear any audio play.

Do you have an idea what might be the cause of the problem?

I’m also attempting to get an Apple SuperDrive USB cd/dvd working with Nanosound CD pluging.
I’ve done the autoconfig and rebooted as it asked me to.
No luck
I’ve also tried the recommendations for sg_raw
No luck

The drive spins up and I can eject using the in app eject button.
When I try to rip a cd to Volumio it spins up and then aborts.

volumio@volumio:~$ cat /etc/asound.conf
#balbuze’s config file

There are four sets of four numbers (Enable/Disable, Frequency, Bandwidth, Gain). The final number is overall gain.

- Enable/disable: 1/0

- Frequency: 20 - 14000 Hz (Center Frequency)

- Bandwidth: 0.12 - 8 (Q factor) must have leading 0 if < 1

- Gain: -24 - 24 dB

- Master Gain -24 - 24 dB

pcm.outparameq {
type ladspa
slave.pcm “plughw:1”
path “/usr/lib/ladspa”
plugins [
{
id 2609
label “EqFA4p”
input {
controls [ 1 79 2.22 2.5 1 400 0.93 2.5 1 3720 1.47 1.1 1 11400 1.62 2.5 -2 ]
}
}
]
}

pcm.outplugin {
type plug

rate 44100

slave.pcm "pcm.outparameq"

}

volumio@volumio:~$ cat /proc/asound/modules
0 snd_bcm2835
1 snd_soc_hifiberry_dacplus
7 snd_aloop
volumio@volumio:~$ cat /proc/asound/cards
0 [ALSA ]: bcm2835_alsa - bcm2835 ALSA
bcm2835 ALSA
1 [sndrpihifiberry]: HifiberryDacp - snd_rpi_hifiberry_dacplus
snd_rpi_hifiberry_dacplus
7 [Loopback ]: Loopback - Loopback
Loopback 1
volumio@volumio:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 7/7
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ Pro HiFi pcm512x-hifi-0 [HiFiBerry DAC+ Pro HiFi pcm512x-hifi-0]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 7: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
Subdevices: 1/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
card 7: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
volumio@volumio:~$

For the record I am connecting through a powered USB hub to a Pi4 with HiFiberry DAC+ Pro.

Thanks for your help.

I’m having much the same issue as many of you.

I have an x86 running volumio (latest) and can play out its analogue or via my schiit modi3 dac just fine.

Plugin installs just fine. Interesting thing is the auto reconfig option when I have my output set the DAC doesn’t result in a working asound.conf, however I can restore that by pointing it to ‘card 5’ instead of ‘card S’.

The main issue is the Apple SuperDrive CD spins, reads and seems to play but there is NO audio – not via the DAC and not even via the in-built PCM.

How does the audio of the CD find its way to alsa? I can’t seem to see where that connection is established so it’s difficult to troubleshoot.

Any ideas?

Glen.

Hi All,

We would like to post a troubleshooting guide for NanoSound CD here:

  1. Check if USB CD drive is working. It should be mounted to /dev/cdrom

ls -al /dev/cdrom

It should return something like:

lrwxrwxrwx 1 root root 3 Jun 13 15:39 /dev/cdrom -> sr0

also try ejecting the cdrom

eject /dev/cdrom

For any reason, if it’s not mounted on /dev/cdrom, you may try this to force mount

mount -r /dev/sr0 /dev/cdrom

  1. NanoSound uses vlc+alsa for audio. The configuration is in /etc/asound.conf. Since the latest version v1.1.7, Nanosound CD will only add an include into /etc/asound.conf.

In /etc/asound.conf, check that it has:

</data/nanosound_cd/asound.conf>

Then check the content of /data/nanosound_cd/asound.conf. In /data/nanosound_cd/asound.conf the content depends on your DAC. You can use

aplay -l

and

cat /proc/asound/modules

to check the card number of your sound card.

For almost all i2s DAC, it should be card 1, below is our /proc/asound/modules

volumio@volumio:~$ cat /proc/asound/modules
0 snd_bcm2835
1 snd_soc_hifiberry_dacplus

Above tells you that your DAC is in card 1. bcm2835 is the internal sound card of Pi.

Here’s an example of /proc/asound/modules for our USB DAC

volumio@volumio:~$ cat /proc/asound/modules
0 snd_bcm2835
5 snd_usb_audio

  1. Once you have confirmed which DAC you are using, then you how you config. If you can using NanoSound CD full version with upsampling, turn upsampling to off first if your DAC doesn’t support the sampling rate.

If you are using i2s DAC and card 1, then your /data/nanosound_cd/asound.conf should be as below:

defaults.pcm.card 1
defaults.ctl.card 1

defaults.pcm.rate_converter "speexrate_best"

pcm_slave.x4 {
	pcm "hw:1,0"
    rate 176400
}

pcm_slave.x2 {
    pcm "hw:1,0"
    rate 88200
}

pcm.rate_convertx4 {
	type rate
	slave x4
	converter "speexrate_best"
}

pcm.rate_convertx2 {
    type rate
    slave x2
    converter "speexrate_best"
}

If you are using USB DAC, for example card 5 , then your /data/nanosound_cd/asound.conf should be as below:

defaults.pcm.rate_converter "speexrate_best"

pcm_slave.x4 {
        pcm "hw:1,0"
    rate 176400
}

pcm_slave.x2 {
    pcm "hw:1,0"
    rate 88200
}

pcm.rate_convertx4 {
        type rate
        slave x4
        converter "speexrate_best"
}

pcm.rate_convertx2 {
    type rate
    slave x2
    converter "speexrate_best"
}

Remember to reboot after you change the asound related settings!

This is very important

  1. Above should solve most of the issue, if you are having issue with cd-rom , for example if it’s mounted correctly, but it doesn’t load the CD / spin when you click “NanoSound CD”. There is a high chance that it’s lacking power and needed an external power supply. Pi only outputs 0.5A per usb port. We sell a Pioneer one which has two USB A cables into the Pi, which provides enough power to drive the cd/dvd usb drive.

Finally we hope this guide help you with all the troubleshooting!

If you need more help, you can also check out NanoSound CD Installation Guide

We have found the issue recent issue where NanoSound CD cannot load the song list when clicking on “NanoSound CD” icon.
The issue is due to the FREEDB (one of the album database we use) has been shutdown.

We have released a fix for armv7 cpu include Raspberry Pi. Please reinstall NanoSound CD or use the Upgrade Version button from the NanoSound CD plugin screen.

x86 version will be coming.

Thanks

Hi!
Has the fix for x86 been released? I have this exact problem. If it has not been released yet, can I tweak something manually to temporary fix it?

Hi, x86 version has been released with this fix.

Just reinstall Nanosound CD plugin. Thanks for the wait!

Even more good news! We have are now using a new CDDB which have improved the recent problems with fetching the CD meta. Please upgrade to 2020-08-09 version. It is available to both x86 and Pi platform.

Thank you gnudb team!

thanks!

The new version to extract artist and album names is now available in v1.2 for both x86 and arm versions.

More details are here

Hope you enjoy it!

@nanomesher,
Please help with my issue here:

Hi, have you tried using Mixer Control Name: PCM ?
Which DAC do you use?

The only two mixer options I have in volumio are software or none

Here are some of the config files from your website that you mention:

asound.conf


volumio@volumio:~$ cat /etc/asound.conf

pcm.softvolume {

type plug

slave.pcm "softvol"

}

 

pcm.softvol {

type softvol

slave {

pcm "plughw:2,0"

}

control {

name "SoftMaster"

card 2

device 0

}

max_dB 0.0

min_dB -50.0

resolution 100

}

/data/nanosound_cd/asound.conf


volumio@volumio:~$ cat /data/nanosound_cd/asound.conf

defaults.pcm.card 2

defaults.ctl.card 2

 

defaults.pcm.rate_converter "speexrate_best"

 

pcm_slave.x4 {

pcm "hw:2,0"

rate 176400

}

 

pcm_slave.x2 {

pcm "hw:2,0"

rate 88200

}

 

pcm.rate_convertx4 {

type rate

slave x4

converter "speexrate_best"

}

 

pcm.rate_convertx2 {

type rate

slave x2

converter "speexrate_best"

}

aplay -l


**** List of PLAYBACK Hardware Devices ****

card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]

Subdevices: 4/4

Subdevice #0: subdevice #0

Subdevice #1: subdevice #1

Subdevice #2: subdevice #2

Subdevice #3: subdevice #3

card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]

Subdevices: 1/1

Subdevice #0: subdevice #0

card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]

Subdevices: 1/1

Subdevice #0: subdevice #0

card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headpho nes]

Subdevices: 3/3

Subdevice #0: subdevice #0

Subdevice #1: subdevice #1

Subdevice #2: subdevice #2

card 2: sndrpirpidac [snd_rpi_rpi_dac], device 0: RPi-DAC HiFi pcm1794a-codec-0 [RPi-D AC HiFi pcm1794a-codec-0]

Subdevices: 0/1

Subdevice #0: subdevice #0

cat /proc/asound/modules


0 snd_bcm2835

1 snd_bcm2835

2 snd_soc_rpi_simple_soundcard

cat /proc/asound/cards


0 [ALSA ]: bcm2835_alsa - bcm2835 ALSA

bcm2835 ALSA

1 [Headphones ]: bcm2835_headphonbcm2835 Headphones - bcm2835 Headphones

bcm2835 Headphones

2 [sndrpirpidac ]: RPi-simple - snd_rpi_rpi_dac

snd_rpi_rpi_dac