Re: no .asoundrc

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

 



On 08/18/2012 12:45 PM, Anders Genell wrote:
>
>>>
>>> The .state is NOT a replacement for the .conf. You should leave the .state as is, and create the .conf with the suggested content. The .state contains all the settings that has been set using e.g. alsamixer, i.e. playback and recording levels etc. If you have changed some levels and want to keep them permanent you can store them in an updated .state file by issuing
>>> sudo alsactl store
>>> which overwrites the /var/lib/alsa/asound.state file with a newer version.
>>> One thing you might need, if you use programs in which you cannot choose specific alsa devices, as is the case for realplayer I believe, is to set your newly created device as default. It can be done by changing the name of your virtual sound card from dougplug to !default in asound.conf:
>>>
>>>
>>>
>>> pcm.!default{
>>>          type plug
>>>          slave.pcm "dougs_multi"
>>> ...
>>>
>>>
>>> The exclamation mark is needed to override the built in use of the name "default" in alsa (which always points to hw:0,0) and is not actually part of the name.
>>>
>>> Give it a try and let us know how it works.
>>>
>>> Regards,
>>> /A
>>>
>> OK, made that modification.  No change in performance: when asound.conf is present, there is no sound. RealPlayer box appears for ~0.1 second and vanishes.
>>
>> I think I must be missing something. The system just doesn't like asound.conf!
>>
>> --doug
>>
> Mysterious indeed. Could you try if there is sound using
>
> speaker-test -c 2 -D default
> or if you have a wav file to use
> aplay -D default file.wav
>
> What distro are you using?
>
> Regards,
> /A
>
In reverse order:  I am using PCLinuxOS,  Kernel 3.2.18.  KDE 4.6.5.
Found a .wav file and snapped on it--it played locally only.  (At least 
it played!)  Then input the aplay command
with the filename, and nothing came out anywhere, but a text file was 
printed:

[doug@Linux1 ~]$ aplay -D default 
/home/doug/.wine/drive_c/MC10demo/DATA/ode_to_joy.wav
ALSA lib conf.c:1686:(snd_config_load1) _toplevel_:70:9:Unexpected char
ALSA lib conf.c:3406:(config_file_open) /etc/asound.conf may be old or 
corrupted: consider to remove or fix it
*** glibc detected *** aplay: munmap_chunk(): invalid pointer: 
0xb7499611 ***
======= Backtrace: =========
/lib/i686/libc.so.6(+0x6a961)[0xb7494961]
/usr/lib/libasound.so.2(snd_config_substitute+0x6d)[0xb75f964d]
======= Memory map: ========
08048000-08057000 r-xp 00000000 08:09 519554     /usr/bin/aplay
08057000-08058000 rw-p 0000e000 08:09 519554     /usr/bin/aplay
08cf8000-08d19000 rw-p 00000000 00:00 0          [heap]
b71f2000-b720d000 r-xp 00000000 08:09 1032 /lib/libgcc_s-4.5.2.so.1
b720d000-b720e000 rw-p 0001b000 08:09 1032 /lib/libgcc_s-4.5.2.so.1
b7229000-b7429000 r--p 00000000 08:09 270782 
/usr/share/locale/locale-archive
b7429000-b742a000 rw-p 00000000 00:00 0
b742a000-b758b000 r-xp 00000000 08:09 875 /lib/i686/libc-2.13.so
b758b000-b758c000 ---p 00161000 08:09 875 /lib/i686/libc-2.13.so
b758c000-b758e000 r--p 00161000 08:09 875 /lib/i686/libc-2.13.so
b758e000-b758f000 rw-p 00163000 08:09 875 /lib/i686/libc-2.13.so
b758f000-b7592000 rw-p 00000000 00:00 0
b7592000-b75a7000 r-xp 00000000 08:09 879 /lib/i686/libpthread-2.13.so
b75a7000-b75a8000 r--p 00014000 08:09 879 /lib/i686/libpthread-2.13.so
b75a8000-b75a9000 rw-p 00015000 08:09 879 /lib/i686/libpthread-2.13.so
b75a9000-b75ac000 rw-p 00000000 00:00 0
b75ac000-b75ae000 r-xp 00000000 08:09 1022 /lib/libdl-2.13.so
b75ae000-b75af000 r--p 00001000 08:09 1022 /lib/libdl-2.13.so
b75af000-b75b0000 rw-p 00002000 08:09 1022 /lib/libdl-2.13.so
b75b0000-b75d4000 r-xp 00000000 08:09 877 /lib/i686/libm-2.13.so
b75d4000-b75d5000 r--p 00023000 08:09 877 /lib/i686/libm-2.13.so
b75d5000-b75d6000 rw-p 00024000 08:09 877 /lib/i686/libm-2.13.so
b75d6000-b76c8000 r-xp 00000000 08:09 523380 /usr/lib/libasound.so.2.0.0
b76c8000-b76cc000 rw-p 000f2000 08:09 523380 /usr/lib/libasound.so.2.0.0
b76cc000-b76d3000 r-xp 00000000 08:09 881 /lib/i686/librt-2.13.so
b76d3000-b76d4000 r--p 00006000 08:09 881 /lib/i686/librt-2.13.so
b76d4000-b76d5000 rw-p 00007000 08:09 881 /lib/i686/librt-2.13.so
b76ef000-b76f0000 r--p 0032e000 08:09 270782 
/usr/share/locale/locale-archive
b76f0000-b76f1000 rw-p 00000000 00:00 0
b76f1000-b770b000 r-xp 00000000 08:09 984        /lib/ld-2.13.so
b770b000-b770c000 r-xp 00000000 00:00 0          [vdso]
b770c000-b770d000 r--p 0001a000 08:09 984        /lib/ld-2.13.so
b770d000-b770e000 rw-p 0001b000 08:09 984        /lib/ld-2.13.so
bfebe000-bfee0000 rw-p 00000000 00:00 0          [stack]
Aborted


Installed and ran speaker-test with options you specified.  No sound 
came out anywhere.  Here is the
text file that it printed:

[doug@Linux1 ~]$ speaker-test -c 2 -D default

speaker-test 1.0.24.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib conf.c:1686:(snd_config_load1) _toplevel_:70:9:Unexpected char
ALSA lib conf.c:3406:(config_file_open) /etc/asound.conf may be old or 
corrupted: consider to remove or fix it
*** glibc detected *** speaker-test: munmap_chunk(): invalid pointer: 
0xb7584611 ***
======= Backtrace: =========
/lib/i686/libc.so.6(+0x6a961)[0xb757f961]
/usr/lib/libasound.so.2(snd_config_substitute+0x6d)[0xb76be64d]
======= Memory map: ========
08048000-0804d000 r-xp 00000000 08:09 527326 /usr/bin/speaker-test
0804d000-0804e000 rw-p 00004000 08:09 527326 /usr/bin/speaker-test
09df4000-09e15000 rw-p 00000000 00:00 0          [heap]
b72d4000-b72ef000 r-xp 00000000 08:09 1032 /lib/libgcc_s-4.5.2.so.1
b72ef000-b72f0000 rw-p 0001b000 08:09 1032 /lib/libgcc_s-4.5.2.so.1
b730b000-b750b000 r--p 00000000 08:09 270782 
/usr/share/locale/locale-archive
b750b000-b750c000 rw-p 00000000 00:00 0
b750c000-b7513000 r-xp 00000000 08:09 881 /lib/i686/librt-2.13.so
b7513000-b7514000 r--p 00006000 08:09 881 /lib/i686/librt-2.13.so
b7514000-b7515000 rw-p 00007000 08:09 881 /lib/i686/librt-2.13.so
b7515000-b7676000 r-xp 00000000 08:09 875 /lib/i686/libc-2.13.so
b7676000-b7677000 ---p 00161000 08:09 875 /lib/i686/libc-2.13.so
b7677000-b7679000 r--p 00161000 08:09 875 /lib/i686/libc-2.13.so
b7679000-b767a000 rw-p 00163000 08:09 875 /lib/i686/libc-2.13.so
b767a000-b767e000 rw-p 00000000 00:00 0
b767e000-b7693000 r-xp 00000000 08:09 879 /lib/i686/libpthread-2.13.so
b7693000-b7694000 r--p 00014000 08:09 879 /lib/i686/libpthread-2.13.so
b7694000-b7695000 rw-p 00015000 08:09 879 /lib/i686/libpthread-2.13.so
b7695000-b7697000 rw-p 00000000 00:00 0
b7697000-b7699000 r-xp 00000000 08:09 1022 /lib/libdl-2.13.so
b7699000-b769a000 r--p 00001000 08:09 1022 /lib/libdl-2.13.so
b769a000-b769b000 rw-p 00002000 08:09 1022 /lib/libdl-2.13.so
b769b000-b778d000 r-xp 00000000 08:09 523380 /usr/lib/libasound.so.2.0.0
b778d000-b7791000 rw-p 000f2000 08:09 523380 /usr/lib/libasound.so.2.0.0
b7791000-b77b5000 r-xp 00000000 08:09 877 /lib/i686/libm-2.13.so
b77b5000-b77b6000 r--p 00023000 08:09 877 /lib/i686/libm-2.13.so
b77b6000-b77b7000 rw-p 00024000 08:09 877 /lib/i686/libm-2.13.so
b77d0000-b77d1000 rw-p 00000000 00:00 0
b77d1000-b77d2000 r--p 0032e000 08:09 270782 
/usr/share/locale/locale-archive
b77d2000-b77d3000 rw-p 00000000 00:00 0
b77d3000-b77ed000 r-xp 00000000 08:09 984        /lib/ld-2.13.so
b77ed000-b77ee000 r-xp 00000000 00:00 0          [vdso]
b77ee000-b77ef000 r--p 0001a000 08:09 984        /lib/ld-2.13.so
b77ef000-b77f0000 rw-p 0001b000 08:09 984        /lib/ld-2.13.so
bfcf8000-bfd1a000 rw-p 00000000 00:00 0          [stack]
Aborted

Obviously, I am in way over my head!  I hope all of this means something 
to you!

--doug

-- 
Blessed are the peacekeepers...for they shall be shot at from both sides. --A.M. Greeley


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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