<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=4822&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] firefox and asound.conf]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=4822</link>
		<description><![CDATA[The most recent posts in [SOLVED] firefox and asound.conf.]]></description>
		<lastBuildDate>Wed, 26 Jan 2022 23:33:46 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] firefox and asound.conf]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34200#p34200</link>
			<description><![CDATA[<p>I appologise, HoaS. I was on my way out yesterday when I posted that comment (Public holiday here in Aus).</p><p>I&#039;ll check out the link, thank you.</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Wed, 26 Jan 2022 23:33:46 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34200#p34200</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] firefox and asound.conf]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34189#p34189</link>
			<description><![CDATA[<div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>I have had those lines in my /home/glenn/.asoundrc for quite some time ... it didn&#039;t iron out any wrinkles for my system.</p></div></blockquote></div><p>That&#039;s not really surprising because as I explained above <em>that file does absolutely nothing at all</em>. All it does is set card &quot;0&quot; as the default output but ALSA names the default card &quot;0&quot; so it&#039;s already set.</p><p>You probably want:</p><div class="codebox"><pre><code>defaults.pcm.card 1
defaults.ctl.card 1</code></pre></div><p>^ That works for every laptop I have ever owned that has an HDMI audio output. It sets the analogue card as the default and so makes FF produce sound without needing PulseAudio to hold your hand.</p><p>EDIT: this was clearly explained in the ArchWiki link I gave earlier but obviously clicking on a link is far too much work... <img src="http://dev1galaxy.org/img/smilies/roll.png" width="15" height="15" alt="roll" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 26 Jan 2022 15:24:06 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34189#p34189</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] firefox and asound.conf]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34180#p34180</link>
			<description><![CDATA[<div class="quotebox"><cite>yolobro wrote:</cite><blockquote><div><p>FF is somehow fixated on using the &quot;default&quot; sound output.<br />Having my asound.conf like this, fixed it and i can control FF*s sound output:</p><div class="codebox"><pre><code>defaults.pcm.card 0
defaults.ctl.card 0</code></pre></div></div></blockquote></div><p>I have had those lines in my /home/glenn/.asoundrc for quite some time ... it didn&#039;t iron out any wrinkles for my system.</p><p>Currently I don&#039;t have /etc/asound.conf on my system, only in old backups.</p><p>This file is from October 2020 (ascii I think)</p><div class="codebox"><pre class="vscroll"><code>pcm.!default {
    type plug
    slave.pcm &quot;dmixer&quot;
}

pcm.dmixer  {
     type dmix
     ipc_key 1024
     slave {
        pcm &quot;hw:0,0&quot;
        period_time 0
        period_size 1024
        buffer_size 4096
        rate 48000
    }
    bindings {
        0 0
        1 1
    }
}

ctl.dmixer {
    type hw
     card UA25EX
}

ctl.equal {
    type equal;
}

pcm.plugequal {
    type equal;
    # Modify the line below if you do not
    # want to use sound card 0.
    #slave.pcm &quot;plughw:0,0&quot;;
    # by default we want to play from more sources at time:
    slave.pcm &quot;plug:dmix&quot;;
}

# pcm.equal {
# If you do not want the equalizer to be your
# default soundcard comment the following
# line and uncomment the above line. (You can
# choose it as the output device by addressing
# it with specific apps,eg mpg123 -a equal 06.Back_In_Black.mp3)
pcm.!default {
    type plug;
    slave.pcm plugequal;
}</code></pre></div><p>In this case, where would I insert those 2 lines? Thank you</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Wed, 26 Jan 2022 08:08:45 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34180#p34180</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] firefox and asound.conf]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34159#p34159</link>
			<description><![CDATA[<div class="quotebox"><cite>yolobro wrote:</cite><blockquote><div><p>FF is somehow fixated on using the &quot;default&quot; sound output.</p></div></blockquote></div><p>This has been the case for years, and the various bug reports regarding it simply get closed as &quot;WONTFIX or &quot;WORKSFORME&quot;. <br />I don&#039;t know what the FF devs (or more likely a committee) think is so hard about providing an about:config setting to select the sound PCM (or officially supporting anything but pulseaudio to begin with for that matter), but apparently that&#039;s how it is.<br />They certainly appear to have enough manpower to work on constant and pointless UI changes though...</p><p>There is MediaElement.setSinkId, but it AFAICT that only enables an underlying API, i.e. the <em>possibility</em> of switching the audio output... Actually implementing device selection is left to extensions. <img src="http://dev1galaxy.org/img/smilies/roll.png" width="15" height="15" alt="roll" /></p>]]></description>
			<author><![CDATA[dummy@example.com (steve_v)]]></author>
			<pubDate>Tue, 25 Jan 2022 04:23:39 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34159#p34159</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] firefox and asound.conf]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34158#p34158</link>
			<description><![CDATA[<p>But card 0 is always the default anyway, that&#039;s why it&#039;s called &quot;0&quot; <img src="http://dev1galaxy.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>Just remove the file.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 24 Jan 2022 20:33:51 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34158#p34158</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] firefox and asound.conf]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34156#p34156</link>
			<description><![CDATA[<p>FF is somehow fixated on using the &quot;default&quot; sound output.<br />Having my asound.conf like this, fixed it and i can control FF*s sound output:</p><div class="codebox"><pre><code>defaults.pcm.card 0
defaults.ctl.card 0</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (yolobro)]]></author>
			<pubDate>Mon, 24 Jan 2022 20:14:25 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34156#p34156</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] firefox and asound.conf]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34131#p34131</link>
			<description><![CDATA[<p>With my humble apologies to the OP for this egregious digression:</p><div class="quotebox"><cite>steve_v wrote:</cite><blockquote><div><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>192kHz</p></div></blockquote></div><p>I&#039;m sure your pet bats just love it. <img src="http://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p></div></blockquote></div><p>Although my hearing is limited to ~10kHz (I&#039;m getting old now) it is still has the time-domain discrimination required to appreciate the quality imparted by higher sampling rates than those imposed by the Red Book (CD) standard.[1][2][3][4][5][6]</p><p>And now back to the thread...</p><p>[1] Jackson, H. M., Capp, M. D. and Stuart, J. R., &#039;The audibility of typical digital audio filters in a high-fidelity playback system&#039;, 9174, 137th AES Convention, (2014).<br />[2] Gabor, D., &#039;Theory of Communication&#039;, Journal of the Institution of Electrical Engineers, 93, III, p.429, (November 1946). <a href="http://dx.doi.org/10.1049/ji-1.1947.0015" rel="nofollow">http://dx.doi.org/10.1049/ji-1.1947.0015</a>. <br />[3] Gabor, D., &#039;Acoustical Quanta and the Theory of Hearing&#039;, Nature, 159, pp.591–594, (1947). <a href="http://dx.doi.org/10.1038/159591a0" rel="nofollow">http://dx.doi.org/10.1038/159591a0</a>. <br />[4] Oppenheim, J. M. and Magnasco, M. O., &#039;Human Time-Frequency Acuity Beats the Fourier Uncertainty Principle&#039;, Phys. Rev. Lett., 110, 044301, (2013). <a href="http://dx.doi.org/10.1103/PhysRevLett.110.044301" rel="nofollow">http://dx.doi.org/10.1103/PhysRevLett.110.044301</a>. <br />[5] Oppenheim, J. M., et al., &#039;Minimal Bounds on Nonlinearity in Auditory Processing&#039; (Jan 2013). arXiv:1301.0513 q-bio.NC. <br />[6] Maka, M, Sobieszczyk, P, et al., &#039;Hearing overcomes uncertainty relation&#039;, Euro Physics News 46 #1, pp.27–31.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 23 Jan 2022 13:26:57 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34131#p34131</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] firefox and asound.conf]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34126#p34126</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>192kHz</p></div></blockquote></div><p>I&#039;m sure your pet bats just love it. <img src="http://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>Sarcasm and HiFi religious wars aside (though I think Harry would like a word), sure. If you just want to chuck the PCM stream at something else to make sense of, ALSAs default conversions are probably unhelpful.</p><p>In this case though, it appears we&#039;re dealing with a motherboard codec, and a realtek one at that. This is precisely the kind of device the ALSA defaults are aimed at.</p><p>That realtek chip has considerably worse SNR and frequency response than the last amp I built... And that one was based on a design from the early &#039;80s.<br />Direct hardware access and high sample-rates would be completely pointless here even if the chipset supported hardware mixing, which it doesn&#039;t.</p><p>The notes I left myself in my asound.conf suggest that I have had problems in the past with Firefox (and apulse) using a default device that isn&#039;t a plug. I don&#039;t remember exactly why, but it gels with FF working if the OP removes that direct hw: routing.<br />The other problem, i.e. not using dmix with motherboard audio, should be pretty obvious.</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>It&#039;s better to use the device identifier rather than the card number because the latter can change from one boot to the next.</p></div></blockquote></div><p>It is indeed, but it&#039;s probably worth noting that the old soundcard-shuffle can also be prevented by passing the &#039;index&#039; option to the module, e.g. in /etc/modprobe.d/alsa.conf.</p>]]></description>
			<author><![CDATA[dummy@example.com (steve_v)]]></author>
			<pubDate>Sun, 23 Jan 2022 10:59:05 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34126#p34126</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] firefox and asound.conf]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34125#p34125</link>
			<description><![CDATA[<div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>it seems you have the same problem (no sound with some programs, firefox, palemoon, and other web-browsers) I get when ever I have tried to live without Pulse Audio on my system(s).</p></div></blockquote></div><p>The OP says that sound in FF works just fine if no /etc/asoundrc is created. I can also confirm that FF audio is completely functional without PulseAudio (or JACK, or PipeWire). You probably just need to set the default output device to your non-HDMI output: <a href="https://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture#Set_the_default_sound_card" rel="nofollow">https://wiki.archlinux.org/title/Advanc … sound_card</a></p><div class="quotebox"><cite>steve_v wrote:</cite><blockquote><div><p>useful functionality ALSA provides</p></div></blockquote></div><p>I would not describe the default ALSA behaviour of software resampling to 48kHz as in any way &quot;useful&quot; for those who have invested in expensive external DACs with hardware-based convertors and custom digital filters <img src="http://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>But anyway that would only be appropriate for digital outputs. Addressing the hardware directly doesn&#039;t seem sensible for an analogue sound card.</p><p>FWIW I use this to prevent ALSA ruining the 24-bit 192kHz music files I stream from Qobuz:</p><div class="codebox"><pre><code>pcm.Digital {
   type hw
   card A20
}

ctl.!default {
   type hw
   card A20
}

pcm.!default {
   type plug
   slave {
      pcm &quot;Digital&quot;
      rate &quot;unchanged&quot;
   }
}</code></pre></div><p>^ That example disables software resampling for my Audiolab M-DAC+, which is identified in the output of <span class="bbc">aplay -l</span> as <span class="bbc">A20</span>. It&#039;s better to use the device identifier rather than the card number because the latter can change from one boot to the next.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 23 Jan 2022 09:27:28 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34125#p34125</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] firefox and asound.conf]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34121#p34121</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Why are you attempting to address the soundcard directly?</p></div></blockquote></div><p>To break anything that needs format/samplerate conversion or stream mixing? Just a guess.</p><p>There&#039;s a whole lot of (mis)information on the web regarding &quot;bit perfect&quot; audiophool configurations that disable most of the useful functionality ALSA provides... Not saying that&#039;s what&#039;s going on here, but I can&#039;t really think of any other reason for an asound.conf like that.</p>]]></description>
			<author><![CDATA[dummy@example.com (steve_v)]]></author>
			<pubDate>Sun, 23 Jan 2022 00:29:20 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34121#p34121</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] firefox and asound.conf]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34119#p34119</link>
			<description><![CDATA[<div class="quotebox"><cite>yolobro wrote:</cite><blockquote><div><p>Hi all,</p><p>I have this issue with firefox.<br />Audio will work out-of-the-box. But once I have a /etc/asound.conf, sound is gone.<br />These are the error messages:</p><p>aplay -L shows</p><div class="codebox"><pre><code>...
default
hw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC236 Analog
    Direct hardware device without any conversions
...</code></pre></div><p>Card 0, device 0 is the normal laptop speaker. aplay works with this device.</p><p>my /etc/asound.conf</p><div class="codebox"><pre><code>pcm.!default {
    type hw
    card 0
    device 0
}

ctl.!default {
    type hw
    card 0
    device 0
}</code></pre></div><p>This config will work with everything (aplay, mpg123) but firefox.</p><p>I dont use pulseaudio.</p><p>Any hints? Thanks!</p></div></blockquote></div><p>Hi, I am interested in your post because it seems you have the same problem (no sound with some programs, firefox, palemoon, and other web-browsers) I get when ever I have tried to live without Pulse Audio on my system(s).</p><p>I don&#039;t have a solution, But I am watching for a solution. Thank you</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Sat, 22 Jan 2022 23:35:03 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34119#p34119</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] firefox and asound.conf]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34106#p34106</link>
			<description><![CDATA[<p>Why are you attempting to address the soundcard directly? What is the point of creating asound.conf if the card is already set as the default output device?</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 22 Jan 2022 11:46:42 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34106#p34106</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] firefox and asound.conf]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34066#p34066</link>
			<description><![CDATA[<p>Hi all,</p><p>I have this issue with firefox.<br />Audio will work out-of-the-box. But once I have a /etc/asound.conf, sound is gone.<br />These are the error messages:</p><p>aplay -L shows</p><div class="codebox"><pre><code>...
default
hw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC236 Analog
    Direct hardware device without any conversions
...</code></pre></div><p>Card 0, device 0 is the normal laptop speaker. aplay works with this device.</p><p>my /etc/asound.conf</p><div class="codebox"><pre><code>pcm.!default {
    type hw
    card 0
    device 0
}

ctl.!default {
    type hw
    card 0
    device 0
}</code></pre></div><p>This config will work with everything (aplay, mpg123) but firefox.</p><p>I dont use pulseaudio.</p><p>Any hints? Thanks!</p>]]></description>
			<author><![CDATA[dummy@example.com (yolobro)]]></author>
			<pubDate>Fri, 21 Jan 2022 12:21:19 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34066#p34066</guid>
		</item>
	</channel>
</rss>
