



And ALSA see this:00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Trinity HDMI Audio Controller
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
Most of my programs are able to play through this hardware primarily the analog device since that is what I have for output now, but right now, my problem is that only one application can access the device at any given time. What is causing a lockdown of the device for each application? How can I allow all programs to access the device at any time?Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=HDMI,DEV=0
HDA ATI HDMI, HDMI 0
HDMI Audio Output
sysdefault:CARD=Generic
HD-Audio Generic, ALC887-VD Analog
Default Audio Device
front:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
Front speakers
surround21:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Digital
IEC958 (S/PDIF) Digital Audio Output



C1 is the one that has all functions, C0 is just digital/spdif which I am not working with at this time, just the analog output.by-path
controlC0
controlC1
hwC0D0
hwC1D0
pcmC0D3p
pcmC1D0c
pcmC1D0p
pcmC1D1p
pcmC1D2c
seq
timer




This at least points all audio to the correct audio device (the analog one), but still only one application can access the device at a time and flash in a browser is non-functional. I have seen threads like these:pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
Code: Select all
ctl.!default { type hw; card 1 }
# ALSA JACK PCM PLUGIN
# http://jackaudio.org/faq/routing_alsa.html
# http://www.alsa-project.org/main/index.php/Asoundrc
pcm.jackplug {
type plug
slave { pcm "rawjack" }
hint { description "JACK Audio Connection Kit" }
}
pcm.rawjack {
type jack
playback_ports {
0 system:playback_1
1 system:playback_2
}
capture_ports {
0 system:capture_1
1 system:capture_2
}
}
pcm.!default { type plug; slave { pcm "rawjack" } }

Despite this, I do have working sound via alsa. I did re-emerge alsa-plugins with jack USE flag (not sure if I had done that before) and was hoping that was the missing piece, but it doesnt appear to have done it. Not sure where to go with any of this. I would LOVE to not be using pulse.... LOVE to have a working JACK... and love to be worrying about some other configuration issue on my damn box! If you are willing to triage further, much appreciated!....
JACK compiled with System V SHM support.
loading driver ..
apparent rate = 44100
creating alsa driver ... hw:Generic,1|hw:Generic,0|128|3|44100|0|0|nomon|swmeter|-|32bit
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/conf.c:4590:(parse_args) Unknown parameter 1
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/conf.c:4723:(snd_config_expand) Parse arguments error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/control/control.c:954:(snd_ctl_open_noupdate) Invalid CTL hw:Generic,1
control open "hw:Generic,1" (No such file or directory)
configuring for 44100Hz, period = 128 frames (2.9 ms), buffer = 3 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 3 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 3 periods for playback
02:19:21.938 JACK connection change.
.........

Code: Select all
jackd -dalsa -dhw:1
No mpv/mplayer (which I guess is an indicator of gstreamer?)jackd 0.121.3
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:1|hw:1|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:1
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
jack main caught signal 2
It should be the same, actually. I have no /etc/asound.conf and use ~/.asoundrc instead but it should be just a matter of preference. Just take care to have only one "pcm.!default" and one "ctl.!default" at a time in each file or you'll have a conflict (and I don't know if the first wins or the last wins). Of course, ~/.asoundrc overrides /etc/asound.conf.phobos13013 wrote:Arrrgh, So I realize that I added your code to /etc/asound.conf not the ~/.asoundrc
OK, so jackd is starting.jackd 0.121.3
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:1|hw:1|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:1
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
jack main caught signal 2
I asked because I usually use mpv (very similar to mplayer), which has a command line options to select the audio output driver (alsa or jack).No mpv/mplayer (which I guess is an indicator of gstreamer?)


And if I provide a sample format (either one), I get:aplay: set_paramsSample format non available
Available formats:
- S16_LE
- S32_LE
But the thing is... If I play sound through an application, I get sound, just only one application can access the device (an no flash from in a browser...)aplay: Channels count not available
Ah, but that's not a device error. It looks like it doesn't like the file you're feeding it, try with another wav file. Or if you have sox installed, you can use the play command, which works with a wide range of formats.aplay: set_paramsSample format non available
Available formats:
- S16_LE
- S32_LE

