* No active event for loopback
@ 2021-03-30 11:13 Jonas Holmberg
0 siblings, 0 replies; only message in thread
From: Jonas Holmberg @ 2021-03-30 11:13 UTC (permalink / raw)
To: alsa-devel
I don't get an active-event when a loopback device becomes active if
format, rate and channels has changed.
If I use aplay and alasctl monitor it looks like this:
aplay -D hw:0,0,0 -f S32_LE -r 48000 -c 1 -s 1 /dev/zero
=>
node hw:0, #0 (3,1,0,PCM Slave Active,0) VALUE
node hw:0, #0 (3,1,0,PCM Slave Active,0) VALUE
I.e. active value is true when playback starts and false when playback
stops.
aplay -D hw:0,0,0 -f S16_LE -r 48000 -c 1 -s 1 /dev/zero
=>
node hw:0, #0 (3,1,0,PCM Slave Format,0) VALUE
node hw:0, #0 (3,1,0,PCM Slave Active,0) VALUE
I.e. format is changed to S16_LE when playback starts and active is
false when playback stops. But no active-event was sent when playback
started.
The same happens if rate and channels changes:
aplay -D hw:0,0,0 -f S16_LE -r 32000 -c 1 -s 1 /dev/zero
=>
node hw:0, #0 (3,1,0,PCM Slave Rate,0) VALUE
node hw:0, #0 (3,1,0,PCM Slave Active,0) VALUE
aplay -D hw:0,0,0 -f S16_LE -r 32000 -c 2 -s 1 /dev/zero
=>
node hw:0, #0 (3,1,0,PCM Slave Channels,0) VALUE
node hw:0, #0 (3,1,0,PCM Slave Active,0) VALUE
If all params are changed back at the same time only a format event is
sent:
aplay -D hw:0,0,0 -f S32_LE -r 48000 -c 1 -s 1 /dev/zero
=>
node hw:0, #0 (3,1,0,PCM Slave Format,0) VALUE
node hw:0, #0 (3,1,0,PCM Slave Active,0) VALUE
Do format, rate and channels events always imply that the device
becomes active or is it a bug that no active-event is sent when the
device becomes active if a param has changed?
/Jonas
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-30 11:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-30 11:13 No active event for loopback Jonas Holmberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox