PulseAudio on OpenWRT with MPD and other Stuff: Difference between revisions

Line 60: Line 60:


There's a bunch of stuff about Cookies (one of PulseAudio's security methods), anonymous authentication, etc., but this is the simplest and works without changing PulseAudio's default configuration.
There's a bunch of stuff about Cookies (one of PulseAudio's security methods), anonymous authentication, etc., but this is the simplest and works without changing PulseAudio's default configuration.
=== Surround Sound ===
First thing to do is this, enable or put this item in the /etc/pulse/default.conf file: <code>default-sample-channels = 6</code>
Then add all of the below instead (to cut down on any pops and hisses;


===Bluetooth (AKA Bluez)===
===Bluetooth (AKA Bluez)===
Line 92: Line 97:
===ALSA Related Commands===
===ALSA Related Commands===


==== Starting and Stopping ALSA ====
====Starting and Stopping ALSA====
Good luck!  Ain't no ALSA service.  Oh, wait, try the following (it's the only solution besides restarting that seems to work, because modpropbe seems to be 'neutered' on OpenWRT with no additional 'modprobe package' available);
Good luck!  Ain't no ALSA service.  Oh, wait, try the following (it's the only solution besides restarting that seems to work, because modpropbe seems to be 'neutered' on OpenWRT with no additional 'modprobe package' available);


* "Stop ALSA Service": echo '1-1' > /sys/bus/usb/drivers/usb/unbind
*"Stop ALSA Service": echo '1-1' > /sys/bus/usb/drivers/usb/unbind
* "Start ALSA Service": echo '1-1' > /sys/bus/usb/drivers/usb/bind
*"Start ALSA Service": echo '1-1' > /sys/bus/usb/drivers/usb/bind
* ...followed by: alsactl restore
*...followed by: alsactl restore
* ...and just as a note, stopping and starting pulseaudio has the net effect of re-reading the /etc/asound.conf file.
*...and just as a note, stopping and starting pulseaudio has the net effect of re-reading the /etc/asound.conf file.
*...and pkill -9 pulseaudio (works great if the process is 'stuck', and don't forget okpg install procps-ng-pkill)


alsactl<span> </span>: Good for testing basic sound device settings (Top Tip: By default, for whatever reason, the "state" (AKA stored configuration) Directory (/var/lib/alsa) does not exist, so create it.
alsactl<span> </span>: Good for testing basic sound device settings (Top Tip: By default, for whatever reason, the "state" (AKA stored configuration) Directory (/var/lib/alsa) does not exist, so create it.
Line 458: Line 464:
<br />
<br />


=== Rough Notes; ===
===Rough Notes;===
The below two items are functionally equivalent;
The below two items are functionally equivalent;
----pcm.LINE {
----pcm.LINE {