Re: no .asoundrc

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

 



On 08/19/2012 01:57 AM, Anders Genell wrote:
>
> 18 aug 2012 kl. 20:03 skrev Doug <dmcgarrett@xxxxxxxxxxxxx>:
>
>> 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
>>
> Hm. It seems there is a typo somewhere in the asound.conf - which is likely my doing if you copied and pasted from my emails. Could you post your complete asound.conf here so we could try to debug it?
>
> Regards,
> /A
>
Here you go:

[doug@Linux1 etc]$ cat asound.conf
# asound.conf as per Anders Genell, 08/18/12, on 
alsa-user@xxxxxxxxxxxxxxxxxxxxx

#
# compose 8 channels from a stereo device and a 7.1 device, hw:0,0 
(Intel) and
# hw:1,7 (Nvidia)
#
#

pcm.dougs_multi {
         type multi;

         slaves.a.pcm "hw:0,0"; # This is the Intel card
         slaves.a.channels 2; # It is a stereo card
         slaves.b.pcm "hw:1,7"; # This is the Nvidia card
         slaves.b.channels 8; # It is a 7.1 card

# Bind channels of the new virtual sound card (dougs_multi) to physical 
channels
# on the two real sound cards.
         bindings.0.slave a;
         bindings.0.channel 0;
         bindings.1.slave a;
         bindings.1.channel 1;
         bindings.2.slave b;
         bindings.2.channel 0;
         bindings.3.slave b;
         bindings.3.channel 1;
         bindings.4.slave b;
         bindings.4.channel 2;
         bindings.5.slave b;
         bindings.5.channel 3;
         bindings.6.slave b;
         bindings.6.channel 4;
         bindings.7.slave b;
         bindings.7.channel 5;
         bindings.8.slave b;
         bindings.8.channel 6;
         bindings.9.slave b;
         bindings.9.channel 7;

}

# This is a "control device" adhering to the virtual sound card, which 
is mostly
# not needed, but we may as well create it while hacking.
ctl.dougs_multi{
         type hw;
         card 1;
}


#
# Remap 4 channels as interleaved.
# Use "plug" to make alsa automatically convert the format of the 
incoming sound
# from your software to something the multi understands.

pcm.!default {
         type plug;
         slave.pcm "dougs_multi";
         slave.channels 10;


# Here we route channels. The first number is incoming channel and the 
second is
# outgoing channel. The third is level, so you can choose to reduce the 
level
for
# some channels by choosing a number between 0 and 1.
# If you have som program playing stereo sound that will mean incoming 
channels
# 0 and 1. Those will be routed to channels 0 and 1 as well as 2 and 3 
of the
# multi device. That corresponds to the Intel card (channels 0 and 1) 
and the
# first two channels of the Nvidia card (channels 2 and 3).
         ttable.0.0 1; # In-channel 0 to out-channel 0 - Intel
         ttable.1.1 1; # In-channel 1 to out-channel 1 - Intel
         ttable.0.2 1; # In-channel 0 (again) to out-channel 2 - Nvidia
         ttable.1.3 1; # In-channel 1 (again) to out-channel 3 - Nvidia
         ttable.2.4 1;
         ttable.3.5 1;
         ttable.4.6 1;
         ttable.5.7 1;
         ttable.6.8 1;
         ttable.7.9 1;

}


# This will not be needed either, but we're on a roll here so why stop?
ctl.dougplug {
         type hw;
         card 1;
}

At a quick glance, I don't see anything obvious.  --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