Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Problems with USB soundcard in HP ProLiant gen8

Need help with peripherals or devices?
Post Reply
Message
Author
valhala
Posts: 2
Joined: 2016-12-08 17:02

[SOLVED] Problems with USB soundcard in HP ProLiant gen8

#1 Post by valhala »

Hi everyone!

I have a USB sound-card that alsaplayer recognizes:

Code: Select all

root@gnulinux:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
But when I try to play a MP3 or WAV audio formats displays a error like that:

Code: Select all

root@gnulinux:~# aplay music.mp3 
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error:No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:722: audio open error: No such file or directory
And similar error its going on when I try to do a speaker-test:

Code: Select all

root@gnulinux:~#  speaker-test 

speaker-test 1.0.28

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
Playback open error: -2,No such file or directory
I supposed that the problem is that somewhere is defined the sound-card by default the card '0' and in my configuration it seems to be that the USB card is the card '1'.

Can anybody help me?
Last edited by valhala on 2016-12-22 17:33, edited 1 time in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Problems with USB soundcard in HP ProLiant gen8

#2 Post by Head_on_a_Stick »

Either install PulseAudio and use pavucontrol to set the default output device or modify your system configuration files to allow ALSA to do this without PulseAudio:

https://wiki.archlinux.org/index.php/Ad ... sound_card
deadbang

valhala
Posts: 2
Joined: 2016-12-08 17:02

Re: Problems with USB soundcard in HP ProLiant gen8

#3 Post by valhala »

Head_on_a_Stick wrote:Either install PulseAudio and use pavucontrol to set the default output device or modify your system configuration files to allow ALSA to do this without PulseAudio:

https://wiki.archlinux.org/index.php/Ad ... sound_card
I followed the tutorial of ALSA without PulseAudio, specifically I used the "Alternative method" and It works perfectly.

Thank you!

Post Reply