<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>I have a theory that the $CARD doesn't work for me and may not for others because of the way in which the %f in a52:%f is generated.<br><br>Would I be right in saying that %f is incremented for each source or sink ie. you cannot have both iec958:0 and a52:0?<br><br>I see in my logs:<br>I: alsa-source.c: Successfully opened device hw:2.<br>I: alsa-mixer.c: Successfully attached to mixer 'hw:2'<br>...<br>I: alsa-sink.c: Successfully opened device iec958:0.<br>I: (alsa-lib)control.c: Invalid CTL iec958:0<br>I: alsa-mixer.c: Unable to attach to mixer iec958:0: No such file or directory<br>I: alsa-mixer.c: Successfully attached to mixer 'hw:0'<br>...<br>I: alsa-sink.c: Successfully opened device hdmi:1.<br>I: (alsa-lib)control.c: Invalid CTL hdmi:1<br>I: alsa-mixer.c: Unable to attach to mixer hdmi:1: No
such file or directory<br>I: alsa-mixer.c: Successfully attached to mixer 'hw:1'<br><br>I also see:<br>D: alsa-mixer.c: Checking for playback on Digital Surround 5.1 (IEC958/AC3) (iec958-ac3-surround-51)<br>D: alsa-util.c: Trying a52:0 with SND_PCM_NO_AUTO_FORMAT ...<br>D: alsa-util.c: Managed to open a52:0<br>D: alsa-util.c: Maximum hw buffer size is 21824 ms<br>D: alsa-util.c: Set buffer size first (to 3840 samples), period size second (to 480 samples).<br>D: alsa-mixer.c: Profile output:iec958-ac3-surround-51 supported.<br><br>But no "Successfully opened a52:0". My theory is that because :0 is already taken by iec958:0, Pulseaudio doesn't accept the a52:0 sink.<br><br>If I replace $CARD with 0, my log says:<br>I: alsa-sink.c: Successfully opened device a52:1.<br><br>Do you think my theory is correct? If not, any better one?<br><br>Cheers,<br>Mike<br><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> pl bossart <bossart.nospam@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> General PulseAudio Discussion <pulseaudio-discuss@mail.0pointer.de><br><b><span style="font-weight: bold;">Sent:</span></b> Tue, 13 July, 2010 21:21:50<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support<br></font><br>Adding this in /etc/asound.rc (more exactly<br>/etc/alsa/pulse-default.conf on my Fedora box) work fine:<br><br>pcm.a52 {<br> @args [CARD]<br> @args.CARD {<br> type string<br> }<br> type rate<br> slave {<br> pcm {<br> type a52<br> bitrate 448<br>
channels 6<br> card $CARD<br> }<br> rate 48000 #required somehow, otherwise nothing happens in PulseAudio<br> }<br>}<br><br>a52:0 is detected by PulseAudio and the encoded output shows as<br>'Digital Surround 5.1 (IEC958/AC3) in pavucontrol.<br><br></div></div>
</div><br>
</body></html>