Re: ALSA pcm problem

2022-07-10 Thread Dan Ritter
Thomas George wrote: 
> 
> On 7/9/22 11:46 AM, Dan Ritter wrote:
> > Is that on all attempts down the line of devices?
> > 
> > If so, I would guess that you have something claiming them
> > already - pulseaudio or jack or pipewire. Check for running
> > processes.
> > 
> > -dsr-
> > 
> > 
> I killed pulseaudio and initially speaker-test worked.
> 
> then after playing an ogg file and doing some other routine tasks suddenly
> nothing worked, no sound, nothing.
> 
> I rebooted to load an older system, Buster. Of course everything worked
> there.
> 
> Rebooted to Debian 11. This reloaded pulseaudio and speaker-test worked.
> 
> Played an ogg file and volume control showed sound was from Alsa plugin
> using GP107 High Definition Audio Controller Digital Stereo (HDMI)
> 
> Volume control also showed three channels for Starship/Matisse HD Audio
> Controller Analog Stereo labeled:
> 
> speach-dispatcher-dummy, speak-dispatcher-espeak-ng, and firefox
> 
> None of these was active.
> 
> I don't understand all this. My speakers are better than the monitor speaker
> and have both an analog and an optical connection to line out but are not
> used.
> 
> This is different from my original problem. I'm not sure how I got here but
> I would appreciate any help in unraveling  this.

pavucontrol (pulseaudio volume control) redirects audio as well
as controlling volume. Start it, go to the configuration tab,
and select "OFF" for your HDMI outputs and turn on the
appropriate analog outputs for your speakers.

Note that pulseaudio is fond of seeing an HDMI connection turn
off and on (i.e. the monitor turns off and on) as a request to
make that HDMI output the new active one.


-dsr-



Re: ALSA pcm problem

2022-07-09 Thread Dan Ritter
Thomas George wrote: 
> 
> On 7/8/22 7:30 PM, Dan Ritter wrote:
> > Thomas George wrote:
> > > On 7/8/22 5:57 PM, Dan Ritter wrote:
> > > > Thomas George wrote:
> > > > > speaker-test fails
> > 
> > Now try
> > 
> > speaker-test -C2 -Dhw:Generic
> > speaker-test -C2 -Dfront:Generic
> > 
> > and so on to see if you get output that way.
> > 
> > Also check the mixing levels with alsamixer; accidental muting
> > happens.
> > 
> Result of suggested speaker tests: Playback open error: -16, Device or
> resource busy
> 
> alsamixer: OK, no output channels muted

Is that on all attempts down the line of devices?

If so, I would guess that you have something claiming them
already - pulseaudio or jack or pipewire. Check for running
processes.

-dsr-



Re: ALSA pcm problem

2022-07-08 Thread Dan Ritter
Thomas George wrote: 
> 
> On 7/8/22 5:57 PM, Dan Ritter wrote:
> > Thomas George wrote:
> > > speaker-test fails
> > > 
> > > strace speaker-test finds "open /dev/snd/pcmC0D0" No such file or 
> > > directory
> > 
> > What's the output of aplay -L ?
> > 
> > Have you tried specifiying one of those devices for
> > speaker-test?
> > 
> > Has this ever worked before? If so, when did it stop?
> > 
> My sound system worked normally until yesterday using both the onboard
> starship card and HDMI.  Then the output from the onboard card to line out
> to the external speakers failed. Still HDMI sound.
> 
> Trying to trouble shoot this I ran alsa nreset which did not report any
> problem, then tried speaker-test which failed
> 
> Here is the output of mplay -L
> 

...
> hw:CARD=Generic,DEV=0
> HD-Audio Generic, ALCS1200A Analog
> Direct hardware device without any conversions
> plughw:CARD=Generic,DEV=0
> HD-Audio Generic, ALCS1200A Analog
> Hardware device with all software conversions
> default:CARD=Generic
> HD-Audio Generic, ALCS1200A Analog
> Default Audio Device
> sysdefault:CARD=Generic
> HD-Audio Generic, ALCS1200A Analog
> Default Audio Device
> front:CARD=Generic,DEV=0
> HD-Audio Generic, ALCS1200A Analog
> Front output / input
> dmix:CARD=Generic,DEV=0
> HD-Audio Generic, ALCS1200A Analog
> Direct sample mixing device
> dmix:CARD=Generic,DEV=1
> HD-Audio Generic, ALCS1200A Digital
> Direct sample mixing device
...

Now try 

speaker-test -C2 -Dhw:Generic
speaker-test -C2 -Dfront:Generic

and so on to see if you get output that way.

Also check the mixing levels with alsamixer; accidental muting
happens.

-dsr-




Re: ALSA pcm problem

2022-07-08 Thread Dan Ritter
Thomas George wrote: 
> speaker-test fails
> 
> strace speaker-test finds "open /dev/snd/pcmC0D0" No such file or directory


What's the output of aplay -L ?

Have you tried specifiying one of those devices for
speaker-test?

Has this ever worked before? If so, when did it stop?

-dsr-