You are not logged in.
Hi, my question turns simpler now: Sound can be played now with root account, but not an ordinary user account.
Below is the original question. It is almost solved when I use the USB2.0 port instead of 3.0 port as the audio output. Root user can play sound now, but not an ordinary user. Seems there's only 1 meter to the final solution. Any hint? Thanks!
---------------------orginal question below this line------------------------------
I got a pair of Audio Engine 2+ which are shipped with a bulit-in DAC, connected to USB port
When I plug the usb line, seems it is recognized correctly, and I set it as the default sound card using asoundconf. But there is no sound (when connecting to headphone output, it goes wells). Please help. Thanks!
[root@~]# cat /proc/asound/cards
0 [A2 ]: USB-Audio - Audioengine 2+
Audioengine Audioengine 2+ at usb-0000:04:00.0-2, full speed
1 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xdff40000 irq 132
2 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xdfe60000 irq 133
[root@s ~]# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default
Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=A2
Audioengine 2+, USB Audio
Default Audio Device
front:CARD=A2,DEV=0
Audioengine 2+, USB Audio
Front speakers
surround21:CARD=A2,DEV=0
Audioengine 2+, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=A2,DEV=0
Audioengine 2+, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=A2,DEV=0
Audioengine 2+, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=A2,DEV=0
Audioengine 2+, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=A2,DEV=0
Audioengine 2+, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=A2,DEV=0
Audioengine 2+, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=A2,DEV=0
Audioengine 2+, USB Audio
IEC958 (S/PDIF) Digital Audio Output
sysdefault:CARD=PCH
HDA Intel PCH, ALC892 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Digital
IEC958 (S/PDIF) Digital Audio Output
And drivers seem correct:
root@ ~]# lsmod |grep '^snd' |column -t
snd_hda_codec_hdmi 53248 1
snd_hda_codec_realtek 69632 1
snd_hda_codec_generic 69632 1 snd_hda_codec_realtek
snd_usb_audio 147456 1
snd_usbmidi_lib 28672 1 snd_usb_audio
snd_hda_intel 32768 5
snd_rawmidi 28672 1 snd_usbmidi_lib
snd_seq_device 16384 1 snd_rawmidi
snd_hda_codec 106496 4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
snd_hda_core 49152 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
snd_hwdep 16384 2 snd_usb_audio,snd_hda_codec
snd_pcm 86016 5 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
snd_timer 28672 1 snd_pcm
snd 65536 24 snd_hda_codec_realtek,snd_usb_audio,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_rawmidi,snd_hda_codec_generic,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,snd_seq_device
Here is the .asoundrc.asoundconf
defaults.ctl.card A2
defaults.pcm.device 0
defaults.pcm.subdevice -1
defaults.pcm.nonblock 1
defaults.pcm.compat 0
defaults.pcm.minperiodtime 5000
defaults.pcm.ipc_key 5678293
defaults.pcm.ipc_gid audio
defaults.pcm.ipc_perm 0660
defaults.pcm.dmix.max_periods 0
defaults.pcm.dmix.rate 48000
defaults.pcm.dmix.format "unchanged"
defaults.pcm.dmix.card defaults.pcm.card
defaults.pcm.dmix.device defaults.pcm.device
defaults.pcm.dsnoop.card defaults.pcm.card
defaults.pcm.dsnoop.device defaults.pcm.device
defaults.pcm.front.card defaults.pcm.card
defaults.pcm.front.device defaults.pcm.device
defaults.pcm.rear.card defaults.pcm.card
defaults.pcm.rear.device defaults.pcm.device
defaults.pcm.center_lfe.card defaults.pcm.card
defaults.pcm.center_lfe.device defaults.pcm.device
defaults.pcm.side.card defaults.pcm.card
defaults.pcm.side.device defaults.pcm.device
defaults.pcm.surround21.card defaults.pcm.card
defaults.pcm.surround21.device defaults.pcm.device
defaults.pcm.surround40.card defaults.pcm.card
defaults.pcm.surround40.device defaults.pcm.device
defaults.pcm.surround41.card defaults.pcm.card
defaults.pcm.surround41.device defaults.pcm.device
defaults.pcm.surround50.card defaults.pcm.card
defaults.pcm.surround50.device defaults.pcm.device
defaults.pcm.surround51.card defaults.pcm.card
defaults.pcm.surround51.device defaults.pcm.device
defaults.pcm.surround71.card defaults.pcm.card
defaults.pcm.surround71.device defaults.pcm.device
defaults.pcm.iec958.card defaults.pcm.card
defaults.pcm.iec958.device defaults.pcm.device
defaults.pcm.modem.card defaults.pcm.card
defaults.pcm.modem.device defaults.pcm.device
defaults.pcm.file_format "raw"
defaults.pcm.file_truncate true
defaults.rawmidi.card 0
defaults.rawmidi.device 0
defaults.rawmidi.subdevice -1
defaults.hwdep.card 0
defaults.hwdep.device 0
defaults.timer.class 2
defaults.timer.sclass 0
defaults.timer.card 0
defaults.timer.device 0
defaults.timer.subdevice 0
defaults.namehint.showall off
defaults.namehint.basic on
defaults.namehint.extended off
pcm.!default { type pulse }
ctl.!default { type pulse }
I also tried .asoundrc, but failed:
pcm.!default {
type hw
card A2
}
ctl.!default {
type hw
card A2
}
Last edited by city_nomad (2016-05-25 18:48:41)
Offline
city_nomad,
Can I get you to please fix your post using BBCode 'code' tags around your output. It will make your readers happy. It creates a text box, with an appropriate font and scroll bars.
Thanks
BTW, that link is also under all the message post boxes on the forums
Last edited by ewaller (2016-05-24 05:12:22)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Hi ewaller, thank you for the kind advice to a newbie. The post looks clearer now.
city_nomad,
Can I get you to please fix your post using BBCode 'code' tags around your output. It will make your readers happy. It creates a text box, with an appropriate fond and scroll bars.
Thanks
BTW, that link is also under all the message post boxes on the forums
Offline
It is almost solved when I use the USB2.0 port instead of 3.0 port as the audio output. Root user can play sound now, but not an ordinary user. Seems there's only 1 meter to the final solution. Any hint? Thanks!
Offline
[solved] ~/.asoundrc
pcm.!default {
type hw
card "A2"
device 0
}
ctl.!default {
type hw
card "A2"
}
defaults.pcm.!card "A2"
defaults.ctl.!card "A2"
defaults.pcm.!device 0
defaults.ctl.!device 0
Offline
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline