Thank you for your donation!


No sound from USB audio card
#1
Hi,
I have recently installed moode audio 4.1 on a raspberry pi zero. Ir looks gret, but I can not get any sound from the USB audio card.
I can play via HDMI.


I have tried to edit asound.conf (with reboot).
Code:
pi@moode:/etc $ cat /etc/asound.conf 
pcm.!default  {
type hw
card 1
device 0
}
ctl.!default {
type hw
card 1
device 0
}



The USB card has been checked, with: 


Code:
[color=#000000]aplay /usr/share/sounds/alsa/Front_Center.wav -D sysdefault:CARD=1[/color]

It works, but still no sound when playing with moode web interface.

Some more information:

Code:
[color=#000000]pi@moode:/etc $ 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 ALSA [bcm2835 IEC958/HDMI]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
 Subdevices: 1/1
 Subdevice #0: subdevice #0[/color]

Any idea/suggestio?
Reply
#2
(06-30-2018, 07:48 AM)baudoin Wrote: Hi,
I have recently installed moode audio 4.1 on a raspberry pi zero. Ir looks gret, but I can not get any sound from the USB audio card.
I can play via HDMI.


I have tried to edit asound.conf (with reboot).
Code:
pi@moode:/etc $ cat /etc/asound.conf 
pcm.!default  {
type hw
card 1
device 0
}
ctl.!default {
type hw
card 1
device 0
}



The USB card has been checked, with: 


Code:
[color=#000000]aplay /usr/share/sounds/alsa/Front_Center.wav -D sysdefault:CARD=1[/color]

It works, but still no sound when playing with moode web interface.

Some more information:

Code:
[color=#000000]pi@moode:/etc $ 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 ALSA [bcm2835 IEC958/HDMI]
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
 Subdevices: 1/1
 Subdevice #0: subdevice #0[/color]

Any idea/suggestio?

Which card is it?

what does
Code:
aplay -L

 give?
Has it previously worked and if so with what?
More information may help
Reply
#3
1. Revert your edits to asound.conf or moOde audio configuration will be broken.

Perform the following steps:

1) Menu, Configure, Audio, I2S audio device: None
2) MPD options: EDIT SETTINGS
3) leave Volume control set to "Software"
4) set Audio device to "USB audio device" then APPLY
5) Verify playback is working

If still no audio then post the output from System info and I'lll have a look

Menu, Configure, System then Menu System info.

-Tim
Reply
#4
Hi Tim

I'm having the same issue with a couple of different USB DACs.

I've followed the instructions you gave above but to no avail.

Only thing maybe of note is that I'm using an old original Pi which seems to be struggling a little.....couldn't see min hardware specs anywhere so assumed it should be ok???

Grateful for any insight Smile

Thanks,
Ian

S Y S T E M    P A R A M E T E R S  

Date and time = 2018-09-25 12:55:45
System uptime = up 1 minute
Timezone = America/Detroit
moOde = Release 4.2 2018-07-11

Host name = moode
ETH0  IP = 192.168.34.180
ETH0  MAC = b8:27:eb:3b:99:ae
WLAN0 IP = unassigned
WLAN0 MAC = no adapter
WiFi country = US

HDWR REV = Pi-1B 256MB
SoC = BCM2835
CORES = 1
ARCH = armv6l
RASPBIAN = 9.4
KERNEL = 4.14.54+
KTIMER FREQ = 100 Hz
USB BOOT = not available
Warranty = OK

ROOT size = 15G
ROOT used = 12%
ROOT avail = 13G
FS expand = expanded
MEM free = 28 MB
MEM used = 45 MB
Temperature = 42.8°C

CPU GOV = performance
MPD SCHDPOL = TS
P3-WIFI = None
P3-BT = None
HDMI = Off
ETH0 CHECK = On
MAX USB CUR = On
UAC2 FIX = On
SSH server = Off

LED0 = on
LED1 = not accessible

 C O R E    S E R V E R S  

PHP-FPM = 7.0.30
NGINX = 1.10.3
SQLite = 3.16.2

 C P U    L O A D  

CPU %usr %sys %idle
all 22.50 20.00 54.50
0 22.50 20.00 54.50

 P R O C E S S    L O A D  

PRI RTPRIO COMMAND         %MEM PSR %CPU
19      - systemd          2.5   0  5.8
29      - mpd              7.8   0  4.4
19      - sysinfo.sh       1.3   0  3.4
19      - systemd-journal  1.9   0  2.5
19      - php-fpm7.0       6.7   0  2.0
19      - agetty           0.9   0  2.0
19      - mmcqd/0          0.0   0  1.8
19      - kworker/0:1      0.0   0  1.6
19      - systemd-udevd    1.6   0  1.5

 C L O C K    F R E Q U E N C I E S  

    arm   = 700 MHz       pwm   = 0 MHz
    core  = 250 MHz       emmc  = 200 MHz
    h264  = 250 MHz       pixel = 0 MHz
    isp   = 250 MHz       vec   = 0 MHz
    v3d   = 250 MHz       hdmi  = 0 MHz
    uart  = 47 MHz       dpi   = 0 MHz

SD card = 50 MHz

 S Y S T E M    V O L T A G E S  

core = 1.2000V
sdram controller = 1.2000V
sdram I/O = 1.2000V
sdram chip = 1.2250V

 U I  C U S T O M I Z A T I O N S  

Theme = Standard
Accent color = Bluejeans
Alpha blend = 1.0
Adaptive background = No
Background image = No
Playback history = No
Extra metadata = Yes
Library = Artist

 A U D I O    P A R A M E T E R S  

Audio device = USB audio device
Interface = USB
Hdwr volume = Controller detected
Mixer name = PCM
Output stream = Closed
ALSA version = 1.1.3-5+rpi3
SoX version = 0.1.2-2

Volume knob = 0
Volume mute = Unmuted

Bluetooth controller = Off
Airplay receiver = Off
Squeezelite = Off
UPnP client = Off
DLNA server = Off

Rotary encoder = Off
Encoder params = 100 2 3 4 5
Crossfeed = Off
Parametric EQ = Off
Graphic EQ = Off
Auto-shuffle = Off
Autoplay = Off
MPD crossfade = Off

 M P D    S E T T I N G S  

Version = 0.20.20
Volume control = software
ALSA device = hw:1
SoX resampling = disabled
SoX quality = very high
SoX multithreading = off
Audio buffer (kb) = 4096
Buffer before play = 10%
Output buffer size (kb) = 81920
Volume normalization = no
DSD over PCM (DoP) = no
Replay gain = off

 B L U E T O O T H    S E T T I N G S  

Bluetooth ver = 5.49
Bluealsa ver = Turn BT on for version info
Speaker sharing = No
Resume MPD = No

 A I R P L A Y    S E T T I N G S  

Version = 3.1.7
Friendly name = Moode Airplay
ALSA device = hw:1
Volume mixer = auto
Resume MPD = No
Output bit depth = S16
Output sample rate = 44100
Session interruption = no
Session timeout (ms) = 120
Audio buffer (secs) = 0.0

 S Q U E E Z E L I T E    S E T T I N G S  

Version = 1.8.7-1052 "DSD/SRC enabled"
Friendly name = Moode
ALSA device = hw:0
ALSA params = 80:4::1
Output buffers = 40000:100000
Task priority = 45
Codec list = flac,pcm,mp3,ogg,aac,alac,dsd
Resume MPD = No
Other options = -W -D 500 -R E -S /var/loca

 M O O D E    L O G  

   20180925 125113 worker: - Start
   20180925 125113 worker: Successfully daemonized
   20180925 125114 worker: Session loaded
   20180925 125114 worker: Debug logging (off)
   20180925 125114 worker: - Platform
   20180925 125119 worker: Host (moode)
   20180925 125119 worker: Hdwr (Pi-1B 256MB)
   20180925 125119 worker: Arch (armv6l)
   20180925 125119 worker: Rasp (9.4)
   20180925 125119 worker: Kver (4.14.54+)
   20180925 125119 worker: Ktyp (Standard)
   20180925 125119 worker: Gov  (performance)
   20180925 125119 worker: Rel  (Moode 4.2 2018-07-11)
   20180925 125119 worker: Upd  (None)
   20180925 125119 worker: MPD  (0.20.20)
   20180925 125119 worker: USB boot not enabled yet
   20180925 125120 worker: File system expanded
   20180925 125120 worker: HDMI port off
   20180925 125121 worker: File check ok
   20180925 125121 worker: - Network
   20180925 125121 worker: eth0 exists
   20180925 125121 worker: eth0 (192.168.34.180)
   20180925 125121 worker: wlan0 does not exist
   20180925 125121 worker: - Audio
   20180925 125122 worker: ALSA outputs unmuted
   20180925 125122 worker: ALSA card number (1)
   20180925 125122 worker: Audio output (USB audio device)
   20180925 125122 worker: ALSA mixer name (PCM)
   20180925 125122 worker: MPD volume control (software)
   20180925 125122 worker: Hdwr volume controller exists
   20180925 125122 worker: - Services
   20180925 125122 worker: Reset renderer active
   20180925 125125 worker: MPD started
   20180925 125125 worker: MPD scheduler policy (time-share)
   20180925 125125 worker: Configure MPD outputs
   20180925 125125 worker: MPD output 1 ALSA default (on)
   20180925 125125 worker: MPD output 2 ALSA crossfeed (off)
   20180925 125125 worker: MPD output 3 ALSA parametric eq (off)
   20180925 125125 worker: MPD output 4 ALSA graphic eq (off)
   20180925 125125 worker: MPD output 5 ALSA bluetooth (off)
   20180925 125125 worker: MPD crossfade (off)
   20180925 125125 worker: - Music sources
   20180925 125125 worker: USB sources (none attached)
   20180925 125126 wrk_sourcemount(): Mount error: (username specified with no parameter)
   20180925 125126 worker: NAS sources (mountall initiated)
   20180925 125126 worker: - Miscellaneous
   20180925 125126 worker: Volume level (0) restored
   20180925 125126 worker: Maintenance interval (21600)
   20180925 125126 worker: Screen saver timeout (Never)
   20180925 125126 worker: Watchdog started
   20180925 125127 worker: Ready
Reply
#5
I don't see anything suspicious in the System info dump.

Try examining MPD log to see if there are any output errors when you try and Play a track or Radio station. Also open moOde Audio config screen and verify that ALSA volume (%) = 100

cat /var/log/mpd/log

-Tim
Reply
#6
Thanks Tim.....

Looking at the logs, it seems the build never fully completed although the Web gui started ok (but painfully slow)

I'm now using a new PI 3 B+ (which I should have waited for in the first place).
On the 3 B+ it built correctly and is playing back via the USB dac happily.
Reply


Forum Jump: