Re: [Alsa-user] Stereo Output on Asus Xonar DGX

2018-10-24 Thread Clemens Ladisch via Alsa-user
Chad Skeeters wrote:
> It plays "Front Left", "Front Right" out of *both* speakers of headphones
> connected to the green headphone port on the back of the card.  Then it
> plays "Rear Left", "Rear Right" out of both speakers of headphones
> connected to the black surround port on the back of the card.

The channels are entirely separated in the hardware.

This is likely to be a problem with the connector (not plugged in all the
way?) or with the headphones.


Regards,
Clemens


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


[Alsa-user] Stereo Output on Asus Xonar DGX

2018-10-24 Thread Chad Skeeters
How do I setup my Asus Xonar DGX to run 4.0 sound in Linux?  I get mono
front and mono rear when I try.

I used alsamixer to set *Analog Output* to *Multichannel*.  When I run:

speaker-test -Dplug:surround40:DGX -t wav -c 4

It plays "Front Left", "Front Right" out of *both* speakers of headphones
connected to the green headphone port on the back of the card.  Then it
plays "Rear Left", "Rear Right" out of both speakers of headphones
connected to the black surround port on the back of the card.  What do I
need to do in order to get the channels separated?

NOTE: I'm running Kernel 4.1.12 that comes with Oracle Linux 7.5 (think
RHEL 7.5).

NOTE: When I run the following with the same headphones connected to the
green speaker out of the onboard sound card, "Left Front" is heard only on
the left, then "Right Front" is heard only on the right.

speaker-test -Dplug:surround40:Intel -t wav -c 2

Also, when speaker-test is playing "Rear Right", I hear "Rear Right Rear"
like it's replaying the buffer before it cuts off.

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


Re: [Alsa-user] [alsa-devel] alsaloop problems; ALSA streaming tutorial (resend)

2018-10-24 Thread Jaroslav Kysela
Dne 24.10.2018 v 10:01 frede...@ofb.net napsal(a):
> Dear Mark (cc'ing ALSA-user, ALSA-devel)
> 
> Thank you for your tutorial
> 
> http://www.pogo.org.uk/~mark/trx/streaming-desktop-audio.html
> 
> I found it helpful and clearly-written (although missing a "}" brace
> and I think it should be "-P" instead of "-p"...).
> 
> I got as far as trying the 'alsaloop' example. It seems very finicky,
> sometimes I am able to play a test.wav cleanly through the loopback
> device, and sometimes there are a lot of crackles and I get errors
> like
> 
> playback hw:0: change avail_min=2968
> playback hw:0: change avail_min=2972
> playback hw:0: change avail_min=2976
> underrun for playback hw:0
>   last write before 9.8370ms, queued 10.ms/0.ms -> missing 
> -0.1630ms
>   expected 10.ms, processing 0.1910ms, max missing 0.0443ms
>   last wake 0.0350ms, last check 0.0350ms, avail_min 32.ms
>   max buf 40.ms, pfilled 0.ms, cfilled 10.ms
>   job started before 0.0110ms

Could you retest with the latest? I tried to fix the avail_min issue here:

http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff;h=8bc1bc53d0a8b3797337bddd30cd345ba1049817

Jaroslav

-- 
Jaroslav Kysela 
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.


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


[Alsa-user] alsaloop problems; ALSA streaming tutorial (resend)

2018-10-24 Thread frederik
Dear Mark (cc'ing ALSA-user, ALSA-devel)

Thank you for your tutorial

http://www.pogo.org.uk/~mark/trx/streaming-desktop-audio.html

I found it helpful and clearly-written (although missing a "}" brace
and I think it should be "-P" instead of "-p"...).

I got as far as trying the 'alsaloop' example. It seems very finicky,
sometimes I am able to play a test.wav cleanly through the loopback
device, and sometimes there are a lot of crackles and I get errors
like

playback hw:0: change avail_min=2968
playback hw:0: change avail_min=2972
playback hw:0: change avail_min=2976
underrun for playback hw:0
  last write before 9.8370ms, queued 10.ms/0.ms -> missing -0.1630ms
  expected 10.ms, processing 0.1910ms, max missing 0.0443ms
  last wake 0.0350ms, last check 0.0350ms, avail_min 32.ms
  max buf 40.ms, pfilled 0.ms, cfilled 10.ms
  job started before 0.0110ms

For 'aplay' invocations where there are errors, it generally never
recovers; the whole (10 second) wav file is played with crackles and
errors being printed. I tried to figure out if this is due to some
different rate settings being chosen at random with each 'aplay'
invocation, but all the alsaloop debugging output looks the same
between working and non-working runs of aplay (except for the above
underrun errors). I also tried various settings for -A and -S in
'alsaloop', but nothing would alleviate this problem. The only thing
that fixes it is to change the latency '-t' setting to a higher value
than the default 10ms. However this seems like a bad solution, given
that it is able (50% of the time) to play a whole sound file at the
lower latency with no errors; I would rather have it recover from the
underruns when they happen, than increase the latency for every
invocation. Enabling realtime via the Arch Wiki info (a bit tricky as
I had to edit some of the files by hand) didn't change this behavior.

I also encountered a problem when trying to make alsaloop output to a
dmix device. I wanted to have it output to dmix so that I could use my
audio normally while experimenting with alsaloop. I got a "Poll FD
initialization failed." error:

playback plug:hw0mix/capture hubcap sync type: CAPTRATESHIFT
New pitch for playback plug:hw0mix/capture hubcap: 1. (min/max 
samples = 0/0)
underrun for playback plug:hw0mix
  last write before 19.7440ms, queued -1.ms/-1.ms -> missing 
-1.ms
  expected 10.ms, processing 0.0290ms, max missing 0.ms
  last wake 1539883911239.1819ms, last check 19.6460ms, avail_min 2.5000ms
  max buf 250.ms, pfilled 0.ms, cfilled 0.ms
  job started before 0.0310ms
Poll FD initialization failed.

Is this error understood? I would have thought that enough others
would also have been wanting to use alsaloop in such a simple
configuration, to warrant a better error message.

I'm somewhat confused by the alsaloop manual page, my version says it
is from "5 Aug 2010" but it has glaring errors, it says "-B" is a
synonym for "--buffer" but alsaloop tells me "alsaloop: invalid option
-- 'B'". Also it says that I can use "-c" to set both channels and
rate. Are these typos really unfixed for eight years?

Here are the commands I used:

$ alsaloop -C hubcap -P hw:0 -v -v -U |& tee alsaloloop.out
...
$ aplay -v test.wav |& tee aplay.out
...
$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version k4.14.71-1-lts.

The earlier version of this email had output files attached, but they
caused the message to be held for "moderator approval". Here are some
HTTP versions of the same files:

alsaloop.out: http://ix.io/1pUj
aplay.out: http://ix.io/1pUk
asound-remote (the config): http://ix.io/1pUl

I think I'll investigate network audio with JACK next but I wanted to
share my experiences in case there is something I'm doing wrong here,
or in case there are bugs that can be fixed in ALSA.

Thank you,

Frederick


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