You are not logged in.
Pages: 1
Hey there,
I guess it is a classic here, but as a beginner i am struggling with getting my audio set up corretly. I have an Audiotrak Prodigy HD2 so I defined the HD2
$ cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xf7f10000 irq 29
1 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xf7e40000 irq 30
2 [HD2 ]: Prodigy71HD2 - Audiotrak Prodigy HD2
Audiotrak Prodigy HD2 at 0xd080, irq 17
to be used instead of the onboard sound:
$sudo nano ~/.asoundrc
pcm.!default {
type hw
card HD2
}
ctl.!default {
type hw
card HD2
}
And I think everything is fine from the Alsamixer:
But still I got no sound. So I'd be thankfully if someone could give me a hint.
Last edited by funkaddict (2018-08-13 21:34:56)
Offline
What are you attempting to play audio with?
FWIW can you post
amixer -c2
aplay -lL
speaker-test -Dhw:2,0 -c2 #Does this one produce noise?
Also please only post thumbnails or links to images
Last edited by V1del (2018-08-13 19:37:09)
Offline
Also please only post thumbnails or links to images
Sorry, I didn't get it the first time how to correctly post images / links. I'll change that.
What are you attempting to play audio with?
I have tried to play a file with vlc so far, as well as video playback in firefox.
$ amixer -c2
Simple mixer control 'Front',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 170 [67%] [-3.52dB]
Front Right: Playback 177 [69%] [-3.17dB]
Simple mixer control 'IEC958',0
Capabilities: penum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
Item0: 'PCM Out'
Simple mixer control 'IEC958 Output',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958',1
Capabilities: penum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
Item0: 'PCM Out'
Simple mixer control 'H/W',0
Capabilities: penum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
Item0: 'PCM Out'
Simple mixer control 'Multi Track Internal Clock',0
Capabilities: enum
Items: '8000' '9600' '11025' '12000' '16000' '22050' '24000' '32000' '44100' '48000' '64000' '88200' '96000' '176400' '192000' 'IEC958 In'
Item0: '44100'
Simple mixer control 'Multi Track Rate Locking',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Multi Track Rate Reset',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
$ aplay -lL
null
Discard all samples (playback) or generate zero samples (capture)
sysdefault:CARD=PCH
HDA Intel PCH, VT2020 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, VT2020 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, VT2020 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, VT2020 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, VT2020 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, VT2020 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, VT2020 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, VT2020 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, VT2020 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=HDMI,DEV=0
HDA ATI HDMI, HDMI 0
HDMI Audio Output
sysdefault:CARD=HD2
Audiotrak Prodigy HD2, ICE1724
Default Audio Device
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: VT2020 Analog [VT2020 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: VT2020 Digital [VT2020 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: VT2020 Alt Analog [VT2020 Alt Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: HD2 [Audiotrak Prodigy HD2], device 0: ICE1724 [ICE1724]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: HD2 [Audiotrak Prodigy HD2], device 1: ICE1724 IEC958 [ICE1724 IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
Unfortunately the following also does not produce any sound.
$ speaker-test -Dhw:2,0 -c2
speaker-test 1.1.6
Playback device is hw:2,0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Sample format not available for playback: Invalid argument
Setting of hwparams failed: Invalid argument
Offline
Okay, I think I found the error. It was a combination of mistakes I did with my audio hardware and the fact that no sound from firefox will be submitted. When I now started a local mp4 file in vlc. it played audio. Nevertheless I didn't understand why speaker-test does not work here. And I have to find out, how to manage firefox to play audio.
Last edited by funkaddict (2018-08-13 21:34:41)
Offline
Firefox requires PulseAudio to have sound now, so just installing and enabling that package should be enough to get sound in firefox. If you don't want or need the full pulse audio, you can also install apulse from the AUR.
Last edited by circleface (2018-08-13 21:48:53)
Offline
If you don't want or need the full pulse audio, you can also install apulse from the AUR.
Thank you, I will have a look on this as I learned so far, that it makes sense to avoide pulse audio, where that is possible.
Offline
As this is the first time I installed a package from the AUR I am not sure, if I did it correctly:
git clone https://aur.archlinux.org/apulse.git
I decided to make one folder for all packages under /home/user/packages
Thus, I moved the folder which was cloned from AUR to /home/user/packages. So in /home/user/packages/apulse there is the apulse.install and the PKGBUILD file now. When running
cd /home/user/packages/apulse
makepkg -sic
No errors occur and it seams that the package was build and installed without problems.
But I still got no sound from firefox. Do I have to make adjustments to apulse/firefox/Alsa?
When I start apulse firefox it outputs this:
apulse firefox
(firefox:1300): Gtk-WARNING **: 20:09:43.856: Locale not supported by C library.
Using the fallback 'C' locale.
(/usr/lib/firefox/firefox:1356): Gtk-WARNING **: 20:09:44.232: Locale not supported by C library.
Using the fallback 'C' locale.
(/usr/lib/firefox/firefox:1439): Gtk-WARNING **: 20:09:45.240: Locale not supported by C library.
Using the fallback 'C' locale.
###!!! [Parent][DispatchAsyncMessage] Error: PClientSourceOp::Msg___delete__ Route error: message sent to unknown actor ID
[apulse] [error] do_connect_pcm: can't set sample format 14 ("FLOAT_LE") for playback device "default". Error code -22 (Invalid argument)
[apulse] [error] do_connect_pcm: failed to open ALSA device. Apulse does no resampling or format conversion, leaving that task to ALSA plugins. Ensure that selected device is capable of playing a particular sample format at a particular rate. They have to be supported by either hardware directly, or by "plug" and "dmix" ALSA plugins which will perform required conversions on CPU.
[Child 1356, MediaPlayback #2] WARNING: 7fad97740100 OpenCubeb() failed to init cubeb: file /build/firefox/src/mozilla-unified/dom/media/AudioStream.cpp, line 390
[Child 1356, MediaPlayback #2] WARNING: Decoder=7fad93d343e0 [OnMediaSinkAudioError]: file /build/firefox/src/mozilla-unified/dom/media/MediaDecoderStateMachine.cpp, line 3716
###!!! [Parent][DispatchAsyncMessage] Error: PClientSourceOp::Msg___delete__ Route error: message sent to unknown actor ID
###!!! [Parent][DispatchAsyncMessage] Error: PClientSourceOp::Msg___delete__ Route error: message sent to unknown actor ID
###!!! [Parent][DispatchAsyncMessage] Error: PClientSourceOp::Msg___delete__ Route error: message sent to unknown actor ID
###!!! [Parent][DispatchAsyncMessage] Error: PClientSourceOp::Msg___delete__ Route error: message sent to unknown actor ID
[apulse] [error] do_connect_pcm: can't open playback device "default". Error code -16 (Device or resource busy)
[apulse] [error] do_connect_pcm: failed to open ALSA device. Apulse does no resampling or format conversion, leaving that task to ALSA plugins. Ensure that selected device is capable of playing a particular sample format at a particular rate. They have to be supported by either hardware directly, or by "plug" and "dmix" ALSA plugins which will perform required conversions on CPU.
[Child 1356, MediaPlayback #4] WARNING: 7fad8e791e80 OpenCubeb() failed to init cubeb: file /build/firefox/src/mozilla-unified/dom/media/AudioStream.cpp, line 390
[Child 1356, MediaPlayback #4] WARNING: Decoder=7fad93d343e0 [OnMediaSinkAudioError]: file /build/firefox/src/mozilla-unified/dom/media/MediaDecoderStateMachine.cpp, line 3716
Last edited by funkaddict (2018-08-15 18:12:28)
Offline
I have never used apulse before, but it does seem some configuration of firefox is necessary. Check https://wiki.archlinux.org/index.php/Fi … a_playback
Offline
Pages: 1