Re: [Alsa-user] making an asoundrc that converts channels to stereo

2016-11-17 Thread Clemens Ladisch
Stefan Sauer wrote:
> I am working with an I2S based hat for the raspberry pi.
> Due to the protocol the chip always plays/record stereo. Now I'd like to
> configure alsa in a way to just simply duplicate channels when playing a
> mono file.

This happens automatically when you're using the "plughw" or "default"
devices.

> The main issue is that I still can't play mono files.
>
> Playing WAVE '/tmp/tmpel6bu774.wav' : Signed 16 bit Little Endian, Rate 22050 
> Hz, Mono
> aplay: set_params:1297: Unable to install hw params:

How did you invoke aplay?

> how would I configure separate ttables depening on the number of input 
> channels.

This is not possible.

> what does cchannel stands for?

"c" stands for some word that is not "slave".

> ctl.!default {
>   type plug

This is not possible for ctl devices.


Regards,
Clemens

--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] sans-pulseaudio Firefox? was: a strange thing

2016-11-17 Thread Ralf Mardorf
Miroslav, you don't need to know the Arch package manager commands, just
the output is important. I'm using Firefox without pulseaudio. You don't
need to switch to Arch Linux, this works on other distros, too. Firefox
doesn't require pulseaudio.

Arch Linux does use systemd and it's more or less impossible to replace
it by another init system. However, this is off-topic, as well as
discussing spyware in browsers and similar issues or talking about
Poettering, Sievers and friends.

FWIW 
http://lists.linuxaudio.org/pipermail/linux-audio-user/2016-June/105188.html
I didn't check if it's already available.

--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] sans-pulseaudio Firefox? was: a strange thing

2016-11-17 Thread Miroslav Rovis
Thanks for the reply! Pls. read on.

On 161116-16:29+0100, Ralf Mardorf wrote:
> On Wed, 16 Nov 2016 14:48:23 +0100, Miroslav Rovis wrote:
> >"build your own Firefox with ALSA enabled"
> 
> libpulse is just a make dependency, but even if it should be installed,
> it doesn't matter.
> 
> https://www.archlinux.org/packages/extra/x86_64/firefox/
> https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/firefox
> 
> I'm using Firefox on Arch Linux without pulseaudio.
> 
> [weremouse@moonstudio archlinux]$ sudo systemd-nspawn -q pacman -Qi firefox 
> pulseaudio libpulse | grep Na -A2
> Failed to create directory /mnt/archlinux/sys/fs/selinux: Read-only file 
> system
> Failed to create directory /mnt/archlinux/sys/fs/selinux: Read-only file 
> system
> Name: firefox
> Version : 50.0-1
> Description : Standalone web browser from mozilla.org
> --
> Name: pulseaudio
> Version : 2013.08.18-1
> Description : Dummy package
> --
> Name: libpulse
> Version : 9.0-1
> Description : A featureful, general-purpose sound server (client library)
> 
> To use Firefox without pulseaudio, I never needed to build it myself.
> Even not on other distros, but Arch is my everyday Linux and I anyway
> try to stay away from Firefox, so often it's not installed.

If Palemoon had the SSL network reading capability which goes with the
NSS library (which is doesn't use), and also if it had tracking
protection, which I didn't get an answer if it does, pls. see here if
the issue is of interest:
Tracking protection and NSS SSL secrets logging (two security
questions)?
https://forum.palemoon.org/viewtopic.php?f=26=12544
(
and I also didn't get a reply on that question from a Gentoo developer:
https://archives.gentoo.org/gentoo-user/message/e477468df3d078681b5727aec0a054b3
)
I may have switched... But I need those, and surely I don't trust
Schmoogle the Goog, the spying company, to give over my browsing to
them, so no Chrom{e,ium}, thanks! (it's only Firefox and Chrome, IIUC,
that have [N]etwork [S]ecurity [S]ervices $SSLKEYLOGFILE capability)...

> [weremouse@moonstudio archlinux]$ ls -hAl /usr/local/bin/firefox; apt list 
> qupzilla; lsb_release -d
> lrwxrwxrwx 1 root root 6 Jan 12  2016 /usr/local/bin/firefox -> icecat
> Listing... Done
> qupzilla/xenial,now 1.8.9~dfsg1-3 amd64 [installed]
> Description:  Ubuntu 16.04.1 LTS
> 
> --
I have to admit I mostly do not understand your listing and grep'ing,
since those are Arch-specific.

But also I'll kindly disagree with where Archlinux is going, with the
imposition of Systemd...

It's so hard to have an Arch system without switching to poetterware...

It *is* possible, I encountered a link (can't search fro it now) from
some maverick Arch developer, and surely I would follow him, if I had
been Arch user...

[It hard to have an Arch system without switching to poetterware], which
poetterware is the stuff, most if not all of it, that the
one-ring-to-rule-them-all cravers begot. Those cravers who are also the
moneythrowers on what was once Free Open Source... to corrupt FOSS and
subserve it to their goals...

And what was once Free Open Source Software, is not really so
anymore, not from the inside, it's not! But only serves their own
craving interests... Which are pretty clear what those interests are for
a thinking person in the Total Surveillance Age that we live in... They
are: control.

So, Archlinux is blossoming... great tutorials and all-encompassing
support... but only if you switch the entire way to systemd and
associates...

What has become of FOSS/GNU Linux??!!... It's so sad to see...

I'm a Gentoo FOSS/GNU Linux user. And there is some room for
non-poetterware in Gentoo, there really is! The default is still OpenRC,
which is even D-Bus free, hey do you read what I just wrote! D-Bus free!
as dbus is the entrance point of Systemd... See for yourself:

https://wiki.gentoo.org/wiki/Comparison_of_init_systems

Tangentially, this whole post of mine is still within the topic, since
ALSA, in my view, and many others', is still true FOSS, while Pulse is
not.

Just one last thought.

In the Sureveillance Age that we live in, in which everybody carries
appliances that state spies, and world spies like Google, can all listen
to
(
at any later date, they just locate where any event that you took part
in, private or public, they don't have any consideration, the most
private events included, any event, as they have all in their databases,
years later if they want to, and apply a search on it just like the
Google users --I keep to duckduckgo.com-- search in their browsers, and
in this case it's searching through sound, and they find whatever they
search for, in their databases of recordings...
),
in this Surveillance Age we live in, you now tell me what Pulseaudio
is for, with all the remote seats --sure they may have renamed those, I
do