alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* USB audio cuts 2-3 secs at start
       [not found] <mailman.12167.1595955329.5591.alsa-devel@alsa-project.org>
@ 2020-07-28 17:08 ` Stuart Naylor
  2020-08-10  4:47   ` Hector Martin 'marcan'
  0 siblings, 1 reply; 3+ messages in thread
From: Stuart Naylor @ 2020-07-28 17:08 UTC (permalink / raw)
  To: alsa-devel

http://alsa-project.org/db/?f=6b107178c9939f235a390c07cb5c1f71d6a6e0c0

Its an Anker power conf and for some reason the first couple of seconds of aplay do not play via USB.

Alsa-info above anyone and tips or ideas?


Stuart


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: USB audio cuts 2-3 secs at start
  2020-07-28 17:08 ` USB audio cuts 2-3 secs at start Stuart Naylor
@ 2020-08-10  4:47   ` Hector Martin 'marcan'
  2020-08-10 23:45     ` Stuart Naylor
  0 siblings, 1 reply; 3+ messages in thread
From: Hector Martin 'marcan' @ 2020-08-10  4:47 UTC (permalink / raw)
  To: Stuart Naylor, alsa-devel

On 29/07/2020 02.08, Stuart Naylor wrote:
> http://alsa-project.org/db/?f=6b107178c9939f235a390c07cb5c1f71d6a6e0c0
> 
> Its an Anker power conf and for some reason the first couple of seconds of aplay do not play via USB.
> 
> Alsa-info above anyone and tips or ideas?

I bet this is just the way the hardware behaves. It probably takes a few 
seconds to turn on its amplifiers and audio path when USB streaming starts.

If it doesn't happen in other OSes, then most likely those OSes 
continuously stream audio to the device even when it is unused. The 
workaround would be to do the same, e.g. use pulseaudio and disable 
suspend-on-idle, or use JACK, or something along those lines that always 
keeps the device running (with silence when no app is using it).

-- 
Hector Martin "marcan" (marcan@marcan.st)
Public Key: https://mrcn.st/pub

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: USB audio cuts 2-3 secs at start
  2020-08-10  4:47   ` Hector Martin 'marcan'
@ 2020-08-10 23:45     ` Stuart Naylor
  0 siblings, 0 replies; 3+ messages in thread
From: Stuart Naylor @ 2020-08-10 23:45 UTC (permalink / raw)
  To: alsa-devel, Hector Martin 'marcan'

Thanks for the reply.

Windows it works with and a recent firmware fix solved that as its shipped with Windows behaving the same.
The Anker Power conf has a smartphone app that makes the firmware update a button click.
I don’t think they could make a secret update to windows and also I did originally think the same.
I used sox with the -n option to constantly send a null silent stream.
The unit doesn’t seem to like that as received some weird effects with recording.
Its almost like the unit prefers to switch modes and can do so quickly but not both at once.
I guess it operates in a similar manner to wideband Bluetooth as its both USB & Bluetooth but only one connected device and interface can be used at one time.

On X86 and I say X86 as the difference might be Pulseaudio not architecture just my Socs where quick tests with aplay.
I haven’t looked at the asound.conf of Ubuntu desktop but Alsa could be set to use the PA Server.
Again I was using aplay but onX86 Ubuntu only the very first play cuts and all subsequent are then like windows.
I am fairly sure PA doesn’t employ keepalive trickles but maybe it does?

I would of probably agreed with you until my sox hack produced such an array of problems.

Stuart

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Hector Martin 'marcan'<mailto:marcan@marcan.st>
Sent: 10 August 2020 05:47
To: Stuart Naylor<mailto:stuartiannaylor@outlook.com>; alsa-devel@alsa-project.org<mailto:alsa-devel@alsa-project.org>
Subject: Re: USB audio cuts 2-3 secs at start

On 29/07/2020 02.08, Stuart Naylor wrote:
> http://alsa-project.org/db/?f=6b107178c9939f235a390c07cb5c1f71d6a6e0c0
>
> Its an Anker power conf and for some reason the first couple of seconds of aplay do not play via USB.
>
> Alsa-info above anyone and tips or ideas?

I bet this is just the way the hardware behaves. It probably takes a few
seconds to turn on its amplifiers and audio path when USB streaming starts.

If it doesn't happen in other OSes, then most likely those OSes
continuously stream audio to the device even when it is unused. The
workaround would be to do the same, e.g. use pulseaudio and disable
suspend-on-idle, or use JACK, or something along those lines that always
keeps the device running (with silence when no app is using it).

--
Hector Martin "marcan" (marcan@marcan.st)
Public Key: https://mrcn.st/pub


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-10 23:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.12167.1595955329.5591.alsa-devel@alsa-project.org>
2020-07-28 17:08 ` USB audio cuts 2-3 secs at start Stuart Naylor
2020-08-10  4:47   ` Hector Martin 'marcan'
2020-08-10 23:45     ` Stuart Naylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).