asound.conf not work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi


I want set mixing plugin for acces more programs to my sound card.
e.g. : 2 times run aplay. first instance work but in second aplay i get error:


ALSA lib pcm_hw.c:1242:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy
aplay: error.c: 139: snd_err_msg_default: Assertion `0' failed.


And when i try set only alias for my sound card it doesn't work.


- i have set enviromnet variables:
LIBASOUND_PCM_DUMP=1
LIBASOUND_DEBUG=2


my asound.conf file in /etc :


pcm.test {
type hw
card 0
device 0
}


when i try exec command: "aplay -D test cd8.wav"


[root@device pjproject]# aplay -D test cd8.wav
Playing WAVE 'cd8.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
ALSA ERROR hw_params: set (CHANNELS)
value = 1 : Invalid argument
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: [8000 48000]
PERIOD_TIME: (166 255000]
PERIOD_SIZE: [8 2040]
PERIOD_BYTES: [32 8160]
PERIODS: [1 256]
BUFFER_TIME: (166 4096000]
BUFFER_SIZE: [8 32768]
BUFFER_BYTES: [32 131072]
TICK_TIME: ALL
aplay: set_params:905: Channels count non available



when i try add channels parameter to asound.conf:


pcm.test {
type hw
card 0
device 0
channels 1
}


[root@device pjproject]# aplay -D test cd8.wav
Playing WAVE 'cd8.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
aplay: set_params:878: Broken configuration for this PCM: no configurations available


so maybe "channels" attribute is not suported in pcm secion


but when i try:


aplay cd8.wav


it works.


some alsa info:
########################################


[root@device pjproject]# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.17.


########################################


[root@device pjproject]# aplay --version
aplay: version 1.0.14 by Jaroslav Kysela <perex@xxxxxxx>


########################################


[root@device pjproject]# aplay -L
default:CARD=UCB1400
UCB1400,
Default Audio Device
null
Discard all samples (playback) or generate zero samples (capture)


`########################################


[root@device pjproject]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: UCB1400 [UCB1400], device 0: PXA2xx-PCM []
Subdevices: 1/1
Subdevice #0: subdevice #0


########################################


[root@device pjproject]# cat /proc/asound/card0/pcm0p/info
card: 0
device: 0
subdevice: 0
stream: PLAYBACK
id: PXA2xx-PCM
name:
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1


########################################


[root@device pjproject]# cat /proc/asound/card0/codec97\#0/ac97\#0-0
0-0/0: Philips UCB1400


PCI Subsys Vendor: 0x0000
PCI Subsys Device: 0x0000


Capabilities : -loudness-
DAC resolution : 20-bit
ADC resolution : 20-bit
3D enhancement : No 3D Stereo Enhancement


Current setup
Mic gain : +0dB [+0dB]
POP path : pre 3D
Sim. stereo : off
3D enhancement : off
Loudness : off
Mono output : MIX
Mic select : Mic1
ADC/DAC loopback : off
Extended ID : codec=0 rev=0 DSA=0 VRA
Extended status : VRA
PCM front DAC : 8000Hz
PCM ADC : 44100Hz


########################################


Can somebody help me find where is problem?


thanks













------------------------------------------------------------------------------
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux