<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Ok. But my question then is why does the A52 profile not appear in Sound Preferences when I put card $CARD, but it does appear if I put card 0 or "card { @func iadd 
integers [ $CARD -2 ]
 }" (to map a52:2 to card 0)?<br><br>Thanks,<br>Mike<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Tanu Kaskinen &lt;tanuk@iki.fi&gt;<br><b><span style="font-weight: bold;">To:</span></b> pulseaudio-discuss@mail.0pointer.de<br><b><span style="font-weight: bold;">Sent:</span></b> Thu, 15 July, 2010 8:22:45<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [pulseaudio-discuss] Cannot have iec958:0 and a52:0 simultaneously?<br></font><br>On Wed, 2010-07-14 at 19:10 +0000, Michael Rans wrote:<br>&gt; I have a theory that the $CARD doesn't work for me and may not for<br>&gt; others because of the way in which the %f in a52:%f is generated.<br>&gt; <br>&gt; Would I be right in saying that %f is incremented for each source or<br>&gt; sink ie. you
 cannot have both iec958:0 and a52:0?<br><br>No, you wouldn't. %f is the index that alsa assigns to cards. You can<br>see it for example in /proc/asound/cards. So you can have both iec958:0<br>and a52:0. Not simultaneously, though, because a52 uses the same device<br>as iec958:0, but you can switch between them using pulseaudio's card<br>profiles.<br><br>&gt; I see in my logs:<br>&gt; I: alsa-source.c: Successfully opened device hw:2.<br>&gt; I: alsa-mixer.c: Successfully attached to mixer 'hw:2'<br>&gt; ...<br>&gt; I: alsa-sink.c: Successfully opened device iec958:0.<br>&gt; I: (alsa-lib)control.c: Invalid CTL iec958:0<br>&gt; I: alsa-mixer.c: Unable to attach to mixer iec958:0: No such file or<br>&gt; directory<br>&gt; I: alsa-mixer.c: Successfully attached to mixer 'hw:0'<br>&gt; ...<br>&gt; I: alsa-sink.c: Successfully opened device hdmi:1.<br>&gt; I: (alsa-lib)control.c: Invalid CTL hdmi:1<br>&gt; I: alsa-mixer.c: Unable to attach to mixer hdmi:1:
 No such file or<br>&gt; directory<br>&gt; I: alsa-mixer.c: Successfully attached to mixer 'hw:1'<br>&gt; <br>&gt; I also see:<br>&gt; D: alsa-mixer.c: Checking for playback on Digital Surround 5.1<br>&gt; (IEC958/AC3) (iec958-ac3-surround-51)<br>&gt; D: alsa-util.c: Trying a52:0 with SND_PCM_NO_AUTO_FORMAT ...<br>&gt; D: alsa-util.c: Managed to open a52:0<br>&gt; D: alsa-util.c: Maximum hw buffer size is 21824 ms<br>&gt; D: alsa-util.c: Set buffer size first (to 3840 samples), period size<br>&gt; second (to 480 samples).<br>&gt; D: alsa-mixer.c: Profile output:iec958-ac3-surround-51 supported.<br>&gt; <br>&gt; But no "Successfully opened a52:0". My theory is that because :0 is<br>&gt; already taken by iec958:0, Pulseaudio doesn't accept the a52:0 sink.<br><br>My theory is that the three first snippets are printed when sink and<br>source objects are actually created in pulseaudio, while the last<br>snippet is from the profile scanning phase. The reason
 why you don't see<br>"Successfully opened a52:0" is that the a52 sink is not created<br>automatically - you'll have to select the right card profile first to<br>get "Successfully opened a52:0" in the log.<br><br>&gt; If I replace $CARD with 0, my log says:<br>&gt; I: alsa-sink.c: Successfully opened device a52:1.<br><br>If you replace $CARD with 0, then the a52 device will always use card 0.<br>Pulseaudio still thinks that it has opened the a52 on card 1, which<br>happens to be your usb mic (or webcam)...<br><br>-- <br>Tanu Kaskinen<br><br><br>_______________________________________________<br>pulseaudio-discuss mailing list<br><a ymailto="mailto:pulseaudio-discuss@mail.0pointer.de" href="mailto:pulseaudio-discuss@mail.0pointer.de">pulseaudio-discuss@mail.0pointer.de</a><br><a href="https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss" target="_blank">https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss</a><br></div></div>
</div><br>



      </body></html>