NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [Workaround]Re: [Solved?]Re: audio1(vcaudio0): device timeout



sorry, I should have said:

"shows that play.port=0x0 changes to play.port=0x2"

Regards.
Ramiro.

El 1/6/25 a las 8:10, Ramiro Aceves escribió:
El 30/5/25 a las 12:59, Ramiro Aceves escribió:

Hello, I think have been able to resume audio working  by doing this:


netbsd-raspa4# audiocfg test 0
0: [*] audio1 @ vcaudio0: vchiq auds 3
        playback: 2ch, 48000Hz
        record:   unavailable
        (P-) slinear_le 16/16, 2ch, 48000-48000Hz
   testing channel 0...audiocfg: write: Resource temporarily unavailable

netbsd-raspa4# mixerctl -av
outputs.master=95,95 volume
inputs.dac=95,95 volume
outputs.auto=125,125 volume delta=13
outputs.headphones=177,177 volume delta=13
outputs.hdmi=177,177 volume delta=13
outputs.select=auto  [ auto headphones hdmi ]

netbsd-raspa4# mixerctl -w outputs.select=headphones
outputs.select: auto -> headphones

netbsd-raspa4# audiocfg test 0
0: [*] audio1 @ vcaudio0: vchiq auds 3
        playback: 2ch, 48000Hz
        record:   unavailable
        (P-) slinear_le 16/16, 2ch, 48000-48000Hz
   testing channel 0... done
   testing channel 1... done

Waiting for the next failure to see if it works again or it is just luck....


Regards



Hi

Today in the morning I had an audio failure again. The good thing is that the audio failure always happens when you first start GQRX, it seems to never appear when GQRX is running for hours.

I confirm that the mixerctl workaround:

# mixerctl -w outputs.select=headphones

works fine and restablish audio device working.


The differences between "# audioctl -d /dev/audio1 -a" command before and after the workaround, shows that play.port=0x0 changes to play.port=0x. I do not know anything about this, just in case reveals something to the driver experts.

netbsd-raspa4$ diff -Nru before_woraround.txt after_workaround.txt
--- before_woraround.txt    2025-06-01 07:59:21.448778954 +0200
+++ after_workaround.txt    2025-06-01 07:58:41.767906876 +0200
@@ -15,9 +15,9 @@
  play.channels=1
  play.precision=8
  play.encoding=mulaw
-play.gain=127
+play.gain=177
  play.balance=32
-play.port=0x0
+play.port=0x2
  play.avail_ports=0x2
  play.seek=0
  play.samples=0
netbsd-raspa4$



The full commandline session:


netbsd-raspa4$ su
Password:

netbsd-raspa4# audioctl -d /dev/audio1 -a
name=vchiq auds
version=3
config=vcaudio
encodings=mulaw:8*,alaw:8*,slinear:8*,ulinear:8*,slinear_le:16*,ulinear_le:16*,slinear_be:16*,ulinear_be:16*,slinear_le:32*,ulinear_le:32*,slinear_be:32*,ulinear_be:32*
properties=mmap
full_duplex=0
fullduplex=0
blocksize=320
hiwat=204
lowat=153
monitor_gain=0
mode=play
play.rate=8000
play.channels=1
play.precision=8
play.encoding=mulaw
play.gain=127
play.balance=32
play.port=0x0
play.avail_ports=0x2
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=1
play.active=0
play.buffer_size=65280
record.rate=8000
record.channels=1
record.precision=8
record.encoding=mulaw
record.gain=127
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.errors=0


netbsd-raspa4# mixerctl -d /dev/audio1 -a
outputs.master=95,95
inputs.dac=95,95
outputs.auto=151,151
outputs.headphones=177,177
outputs.hdmi=151,151
outputs.select=auto

netbsd-raspa4# audiocfg test 0
0: [*] audio1 @ vcaudio0: vchiq auds 3
        playback: 2ch, 48000Hz
        record:   unavailable
        (P-) slinear_le 16/16, 2ch, 48000-48000Hz
   testing channel 0...audiocfg: write: Resource temporarily unavailable

netbsd-raspa4# mixerctl -d /dev/audio1 -w output.select=headphones
mixerctl: field output.select does not exist


netbsd-raspa4# mixerctl -d /dev/audio1 -w outputs.select=headphones
outputs.select: auto -> headphones


netbsd-raspa4# mixerctl -d /dev/audio1 -a
outputs.master=95,95
inputs.dac=95,95
outputs.auto=151,151
outputs.headphones=177,177
outputs.hdmi=151,151
outputs.select=headphones


netbsd-raspa4# audioctl -d /dev/audio1 -a
name=vchiq auds
version=3
config=vcaudio
encodings=mulaw:8*,alaw:8*,slinear:8*,ulinear:8*,slinear_le:16*,ulinear_le:16*,slinear_be:16*,ulinear_be:16*,slinear_le:32*,ulinear_le:32*,slinear_be:32*,ulinear_be:32*
properties=mmap
full_duplex=0
fullduplex=0
blocksize=320
hiwat=204
lowat=153
monitor_gain=0
mode=play
play.rate=8000
play.channels=1
play.precision=8
play.encoding=mulaw
play.gain=177
play.balance=32
play.port=0x2
play.avail_ports=0x2
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=1
play.active=0
play.buffer_size=65280
record.rate=8000
record.channels=1
record.precision=8
record.encoding=mulaw
record.gain=127
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.errors=0


netbsd-raspa4# audiocfg test 0
0: [*] audio1 @ vcaudio0: vchiq auds 3
        playback: 2ch, 48000Hz
        record:   unavailable
        (P-) slinear_le 16/16, 2ch, 48000-48000Hz
   testing channel 0... done
   testing channel 1... done
netbsd-raspa4#

Regards













Home | Main Index | Thread Index | Old Index