You are not logged in.
I just installed Arch Linux and can't get my USB audio mixer to work. When using it on Windows, it acts as an external sound card, and works great! But for some reason, when I tell KDE Control Module to change the sound card to PCM2902 Audio Codec, and click OK, it just switches back to Juniper HDMI Audio. I can't get it to stay. If I click Apply, and switch Sound Device to Recording instead of Playback, the meter registers sound from my microphone! (Which is plugged into the mixer.) So the mixer is at least half-working... but it's the less important half. Any ideas?
I have PulseAudio and pulseaudio-alsa installed. I'm not sure if KMix/KDE is using PulseAudio, though, or if it's using ALSA. Not sure how to find that out.
Last edited by YAOMTC (2014-09-20 03:39:53)
Offline
aplay -lL; lspci -vvnn | grep -A1 '040[1-3]'; cat /proc/asound/modules; amixer -c 0; amixer -c 1; amixer -c 2;
lsusb #if there is a usb sound card;
# or use the alsa-info script
fuser -v /dev/snd/*Offline
$ aplay -lL
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default:CARD=SB
HDA ATI SB, ALC889 Analog
Default Audio Device
sysdefault:CARD=SB
HDA ATI SB, ALC889 Analog
Default Audio Device
front:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
Front speakers
surround21:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=SB,DEV=0
HDA ATI SB, ALC889 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=HDMI,DEV=0
HDA ATI HDMI, HDMI 0
HDMI Audio Output
default:CARD=CODEC
USB Audio CODEC, USB Audio
Default Audio Device
sysdefault:CARD=CODEC
USB Audio CODEC, USB Audio
Default Audio Device
front:CARD=CODEC,DEV=0
USB Audio CODEC, USB Audio
Front speakers
surround21:CARD=CODEC,DEV=0
USB Audio CODEC, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=CODEC,DEV=0
USB Audio CODEC, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=CODEC,DEV=0
USB Audio CODEC, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=CODEC,DEV=0
USB Audio CODEC, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=CODEC,DEV=0
USB Audio CODEC, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=CODEC,DEV=0
USB Audio CODEC, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=CODEC,DEV=0
USB Audio CODEC, USB Audio
IEC958 (S/PDIF) Digital Audio Output
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC889 Analog [ALC889 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC889 Digital [ALC889 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 3: CODEC [USB Audio CODEC], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0$ lspci -vvnn | grep -A1 '040[1-3]'
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) [1002:4383] (rev 40)
Subsystem: Gigabyte Technology Co., Ltd Device [1458:a002]
--
01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Juniper HDMI Audio [Radeon HD 5700 Series] [1002:aa58]
Subsystem: ASUSTeK Computer Inc. Device [1043:aa58]I just created alsa-base.conf with some module options so I'm gonna restart to see what happens, will post the rest after.
Offline
You missed some commands. Post this instead:
fuser -v /dev/snd/*;
for i in /proc/asound/card[0-9]*; do echo "--- $i ---";amixer -c $(cat $i/id); done;
lsusb #if there is a usb sound card;"Some module options"?
# Setting usb as default
options snd-hda-intel index=1,2
options snd-usb-audio index=0 # add vid and pid
# Setting azalia as default, usb as second
options snd-hda-intel index=0,2
options snd-usb-audio index=1 # add vid and pidEdit: Missed the last part of last sentence, still post the above instead.
Last edited by emeres (2014-09-19 22:29:12)
Offline
To be specific, here's the alsa-base.conf I created
EDIT: This is incorrect, don't use this
options snd slots=snd_usb_audio
options snd_usb_audio index=0
options snd_hda_codec_hdmi index=1
options snd_hda_intel index=2Here's the output of those:
$ fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: chris 588 F.... pulseaudio
/dev/snd/controlC1: chris 588 F.... pulseaudio
/dev/snd/controlC2: chris 588 F.... pulseaudio
/dev/snd/controlC3: chris 588 F.... pulseaudio
/dev/snd/pcmC0D0c: chris 588 F...m pulseaudio
/dev/snd/pcmC0D0p: chris 588 F...m pulseaudio
/dev/snd/pcmC1D3p: chris 588 F...m pulseaudio
/dev/snd/pcmC2D0c: chris 588 F...m pulseaudio
/dev/snd/pcmC2D0p: chris 588 F...m pulseaudio
/dev/snd/pcmC3D0c: chris 588 F...m pulseaudio
/dev/snd/timer: chris 588 f.... pulseaudio$ for i in /proc/asound/card[0-9]*; do echo "--- $i ---";amixer -c $(cat $i/id); done;
--- /proc/asound/card0 ---
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 128
Mono:
Front Left: Playback 115 [90%] [-13.00dB] [on]
Front Right: Playback 115 [90%] [-13.00dB] [on]
--- /proc/asound/card1 ---
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
--- /proc/asound/card2 ---
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 64
Mono: Playback 44 [69%] [-20.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 64
Mono:
Front Left: Playback 62 [97%] [0.00dB] [on]
Front Right: Playback 62 [97%] [0.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 64
Mono:
Front Left: Playback 62 [97%] [0.00dB] [on]
Front Right: Playback 62 [97%] [0.00dB] [on]
Simple mixer control 'Front Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Front Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Surround',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 64
Mono:
Front Left: Playback 0 [0%] [-62.00dB] [off]
Front Right: Playback 0 [0%] [-62.00dB] [off]
Simple mixer control 'Center',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 64
Mono: Playback 0 [0%] [-62.00dB] [off]
Simple mixer control 'LFE',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 64
Mono: Playback 0 [0%] [-62.00dB] [off]
Simple mixer control 'Side',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 64
Mono:
Front Left: Playback 0 [0%] [-62.00dB] [off]
Front Right: Playback 0 [0%] [-62.00dB] [off]
Simple mixer control 'Line',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Line Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control 'CD',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Beep',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 46
Front Left: Capture 28 [61%] [12.00dB] [on]
Front Right: Capture 28 [61%] [12.00dB] [on]
Simple mixer control 'Capture',1
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 46
Front Left: Capture 0 [0%] [-16.00dB] [off]
Front Right: Capture 0 [0%] [-16.00dB] [off]
Simple mixer control 'Capture',2
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 46
Front Left: Capture 0 [0%] [-16.00dB] [off]
Front Right: Capture 0 [0%] [-16.00dB] [off]
Simple mixer control 'Digital',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 120
Front Left: Capture 60 [50%] [0.00dB]
Front Right: Capture 60 [50%] [0.00dB]
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Rear Mic' 'Front Mic' 'Line' 'CD'
Item0: 'Line'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Rear Mic' 'Front Mic' 'Line' 'CD'
Item0: 'Rear Mic'
Simple mixer control 'Input Source',2
Capabilities: cenum
Items: 'Rear Mic' 'Front Mic' 'Line' 'CD'
Item0: 'Rear Mic'
Simple mixer control 'Rear Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Rear Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
--- /proc/asound/card3 ---$ lsusb
Bus 011 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 010 Device 006: ID 045e:028e Microsoft Corp. Xbox360 Controller
Bus 010 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 003: ID 04d9:a070 Holtek Semiconductor, Inc.
Bus 008 Device 002: ID 05c7:2012 Qtronix Corp.
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 08bb:2902 Texas Instruments PCM2902 Audio Codec
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubEDIT: Oh, and after restart, that alsa-base.conf doesn't seem to have fixed anything. Let me try tweaking it to be more like your example... Okay, looks like the only difference is sda_hda_intel has two values for index. Made it 2,3 but I don't think that'll change anything for this.
EDIT2: Nope, nothing
Last edited by YAOMTC (2014-09-19 23:28:33)
Offline
Read the part about modules: https://bbs.archlinux.org/viewtopic.php … 1#p1457681
And be so kind and mark this configuration as incorrect/inefficient.
Which one is which? I should have added their name ids. Card 0 is the amixer output the usb card? You appear to have no controls in card 3. You can edit and replace your previous post for amixer with this:
for i in /proc/asound/card[0-9]*; do ID=$(cat $i/id); echo "--- $ID $i ---";amixer -c $ID; done;Module snd_hda_codec_hdmi does not accept index, the hdmi uses snd-hda-intel as well.
Edit: Also I just had a thread with the same hardware:
https://bbs.archlinux.org/viewtopic.php?id=187064
Edit2: Go through my troubleshooting suggestions there, especially run speaker-test with pulseaudio killed. Then report back with results/error output.
Last edited by emeres (2014-09-19 23:01:53)
Offline
Well I removed the 'slots' line from alsa-base.conf, since that should be redundant (right?) and the "PCM2902 Audio Codec" item no longer appears in Sound Card in KDE Control Module. Huh.
I'm reading lboyer's thread, and I can't figure out exactly what he did to solve his issue. But I'll try speaker-test for starters (just killed pulseaudio)...
speaker-test 1.0.28
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Playback open error: -2,No such file or directoryWell that's interesting. Let me see what else I can try in that thread...
Offline
Yes it is redundant. What exact command did you use? The modprobe configuration that you posted above is still not marked as incorrect, please correct that. Just add a comment.
Make sure pulasudio does not autospawn. The main aspects should be in the other thread. Read it thoroughly.
speaker-test -c 2 -t wav -D plug:"dmix:{CARD CODEC DEV 0}"Offline
Edited!
By "exact command" do you mean speaker-test? I think I just ran it without any parameters. Just tried what you provided:
$ speaker-test -c 2 -t wav -D plug:"dmix:{CARD CODEC DEV 0}"
speaker-test 1.0.28
Playback device is plug:dmix:{CARD CODEC DEV 0}
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
ALSA lib confmisc.c:768:(parse_card) cannot find card 'CODEC'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
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 device
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 device
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM dmix:{CARD CODEC DEV 0}
Playback open error: -19,No such deviceThat's weird, now CODEC is missing from `aplay -lL' too.
$ aplay -lL
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default:CARD=SB
HDA ATI SB, ALC889 Analog
Default Audio Device
sysdefault:CARD=SB
HDA ATI SB, ALC889 Analog
Default Audio Device
front:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
Front speakers
surround21:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0
HDA ATI SB, ALC889 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=SB,DEV=0
HDA ATI SB, ALC889 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=HDMI,DEV=0
HDA ATI HDMI, HDMI 0
HDMI Audio Output
**** List of PLAYBACK Hardware Devices ****
card 1: SB [HDA ATI SB], device 0: ALC889 Analog [ALC889 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: SB [HDA ATI SB], device 1: ALC889 Digital [ALC889 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 0/1
Subdevice #0: subdevice #0EDIT: Oh and I forgot to mention, yes, pulseaudio is autospawning. I use `pulseaudio --kill' but it just reappears in the process list. I see in the Wiki a way to disable that, fixing that now. (There we go, fixed.)
EDIT2: Oh yeah, and here's some lines I thought were relevant from `dmesg'.
[ 5.248851] usb 11-3: new full-speed USB device number 5 using ohci-pci
...
[ 5.905564] usb 11-4: new full-speed USB device number 6 using ohci-pci
...
[ 6.182750] cx23885[0]: registered ALSA audio device
[ 6.205489] usb 8-2: new full-speed USB device number 2 using ohci-pci
...
[ 6.373735] input: Burr-Brown from TI USB Audio CODEC as /devices/pci0000:00/0000:00:12.0/usb8/8-2/8-2:1.3/0003:08BB:2902.0006/input/input17
[ 6.374206] hid-generic 0003:08BB:2902.0006: input,hidraw4: USB HID v1.00 Device [Burr-Brown from TI USB Audio CODEC ] on usb-0000:00:12.0-2/input3
[ 6.389669] snd-usb-audio 8-2:1.0: cannot find the slot for index 0 (range 0-2), error: -16
[ 6.389718] usb 8-2: cannot create card instance 0
[ 6.389745] snd-usb-audio: probe of 8-2:1.0 failed with error -5
[ 6.389765] usbcore: registered new interface driver snd-usb-audioLast edited by YAOMTC (2014-09-19 23:43:12)
Offline
Try this instead, when the card is initialized correctly:
speaker-test -c 2 -t wav -D plughw:CODECDmesg indicates the usb card is not loaded correctly. Reinsert it or reboot without it, then plug it in. I would have recommended using nrpacks parameter, but this have been recently dropped, maybe it changed now.
You have a dvb card? One of the HVRs maybe? I have another thread with one of those.
Edit: Minor errors.
Last edited by emeres (2014-09-19 23:57:45)
Offline
I actually have two PCI capture cards, one is a TV broadcast capture card (ATSC) connected to a TV antenna, and the other is an HDMI/component capture card, I think it's a Colossus or something? I may just reboot to my older Windows SSD when I want to use them. Or I'll fix it later on, fortunately I'm not needing those right now.
Anyway, I just unplugged my mixer, restarted, and plugged it in again, and it still isn't reappearing in `aplay -lL'. Let me try a different USB port...
Nope, nothing. What did I do...
Offline
Does the mixer use an external power supply? Did you powered the mixer down, waited few minutes to let it discharge completely, and then power it back up?
Maybe you could participate in the other thread afterwards, any relevant information is welcome.
Offline
The mixer is actually USB-powered. On Windows, audio goes out from the computer over USB to the mixer (and the mixer outputs the mixed audio to whatever analog outputs, like my speakers (RCA) and headphones (3.5mm)), and anything that (on the mixer) is directed to go into a recording mix (like my microphone) goes back over the USB to the computer. So it uses one USB cable for power, input, and output.
Last edited by YAOMTC (2014-09-20 00:45:47)
Offline
Then start over, drop the modprobe options and reboot, attach the mixer and post dmesg/journarctl. '[A]play -l' and 'amixer -c CODEC' should show the card.
Offline
Ah yes, there we go! Now it's back.
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC889 Analog [ALC889 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC889 Digital [ALC889 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 2: CODEC [USB Audio CODEC], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0$ amixer -c CODEC
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 128
Mono:
Front Left: Playback 115 [90%] [-13.00dB] [on]
Front Right: Playback 115 [90%] [-13.00dB] [on]EDIT: Let's retry this while we're at it.
speaker-test -c 2 -t wav -D plughw:CODEC
speaker-test 1.0.28
Playback device is plughw:CODEC
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Playback open error: -16,Device or resource busyLast edited by YAOMTC (2014-09-20 01:25:34)
Offline
Probably occupied by pulseaudio, run 'fuser -v /dev/snd/*' to make sure. Kill PA, repeat speaker-test.
Offline
Ah, I think it is:
$ fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: chris 422 F.... kded4
chris 582 F.... kmix
chris 623 F.... pulseaudio
/dev/snd/controlC1: chris 422 F.... kded4
chris 582 F.... kmix
chris 623 F.... pulseaudio
/dev/snd/controlC2: chris 422 F.... kded4
chris 582 F.... kmix
chris 623 F.... pulseaudio
/dev/snd/controlC3: chris 623 F.... pulseaudio
/dev/snd/pcmC0D0c: chris 623 F...m pulseaudio
/dev/snd/pcmC0D0p: chris 623 F...m pulseaudio
/dev/snd/pcmC1D3p: chris 623 F...m pulseaudio
/dev/snd/pcmC2D0c: chris 623 F...m pulseaudio
/dev/snd/pcmC2D0p: chris 623 F...m pulseaudio
/dev/snd/pcmC3D0c: chris 623 F...m pulseaudio
/dev/snd/timer: chris 623 f.... pulseaudioHey cool, it worked!
speaker-test -c 2 -t wav -D plughw:CODEC
speaker-test 1.0.28
Playback device is plughw:CODEC
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 262144
Period size range from 48 to 131072
Using max buffer size 262144
Periods = 4
was set period_size = 65536
was set buffer_size = 262144
0 - Front Left
1 - Front Right
Time per period = 5.514016
0 - Front Left
1 - Front Right
Time per period = 5.513266
0 - Front Left
1 - Front Right
Time per period = 5.516623
0 - Front Left
1 - Front Right
^CTime per period = 3.946106So the issue, then, is pulseaudio? Since it seems to work fine with alsa, right?
(Man, it felt good to hear sound coming out.)
EDIT: Here's a picture of it, in case you're curious what it looks like.
http://imgur.com/8dsOCtBl
EDIT2: Made image a link.
Last edited by YAOMTC (2014-09-20 02:48:06)
Offline
Can you select the usb card in pavucontrol, when PA is running of course?
Offline
"PCM2902 Audio Codec Digital Stereo" shows up, but the only port I can select for it is "Digital Output (S/PDIF)". Which makes me think it might be trying to make the audio go out over the motherboard's SPDIF port, which is unused.
In the Configuration tab, I can set a profile for PCM2902 Audio Codec, but the only options that might make sense are "Digital Stereo Duplex (IEC958)", Digital Stereo Output, or Digital Stereo Input.
This seems to offer the same options as KDE Control Module, actually, under Audio Hardware Setup.
http://i.imgur.com/rXjIiCt.png
EDIT: Made picture a link instead.
Last edited by YAOMTC (2014-09-20 02:43:01)
Offline
First read this, the part about images, otherwise one of the moderators will remind you of it. And those images are not particularly useful anyway, links to high resolution pictures are better.
The usb sound card accepts only digital audio wrapped in usb protocol, so you need to choose a digital output/input. PCM2902 is a usb codec from TI, so this is it. I have too little experience with KDE and PA, so there might be other issues and conflicts here, that I am not aware of. The other digial output is either from you mainboard or the hdmi in your gpu.
Edit1/2: Clarification. I typed for too long, too many errors.
Last edited by emeres (2014-09-20 02:33:49)
Offline
Okay I just removed the gstreamer backend for phonon and installed vlc instead. Didn't seem to make a difference, but it might have. I started pulseaudio and started pavucontrol again, and when I adjust the output level on PCM2902[...] I can hear the popping noise clearly, and I can see the bar below respond. So pulseaudio can output to the mixer after all, the issue may be with KDE. I'll look into this further.
Offline
SOLVED!
https://wiki.archlinux.org/index.php/Pu … es_and_Qt4
PulseAudio will automatically be used by KDE/Qt4 applications. It is supported by default in the KDE sound mixer. For more information see the KDE page in the PulseAudio wiki. One useful tidbit from that page is to add
load-module module-device-managerto /etc/pulse/default.pa
That's what was missing this whole time, that one line in a config file! Wow.
Thanks for your effort, emeres!
Offline
You are welcome.
Offline