Can someone help me to diagnose a problem with sound on my laptop?

My system (after update) is:-

Operating System: openSUSE Tumbleweed 20210620
KDE Plasma Version: 5.22.1
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Kernel Version: 5.12.10-1-default (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-7500U CPU @ 2.70GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 620

The problem is that when I play music (through VLC media player or audacity) everything is fine until I plug in earphones. When the earphones connect, there is only silence. The 'phones worked fine until a recent update.

PulseAudio Control (Volume Control), shows output and under 'Output Devices' tab when I switch from headphones to speakers, I hear music. Back to headphones, silence.

I ran alsa-info.sh when playing through speakers, then connected the headphones and ran alsa-info.sh again.

**************
Output:

6c6
< !!Script ran on: Wed Jun 23 15:40:01 UTC 2021
---
> !!Script ran on: Wed Jun 23 15:42:05 UTC 2021
403c403
<   Amp-Out vals:  [0x4e 0x4e]
---
>   Amp-Out vals:  [0x00 0x00]
416c416
<   Amp-Out vals:  [0x00 0x00]
---
>   Amp-Out vals:  [0x57 0x57]
513c513
<   Amp-Out vals:  [0x00 0x00]
---
>   Amp-Out vals:  [0x80 0x80]
593c593
<   Pin-ctls: 0x20: IN VREF_HIZ
---
>   Pin-ctls: 0x21: IN VREF_50
642c642
<   Amp-Out vals:  [0x80 0x80]
---
>   Amp-Out vals:  [0x00 0x00]
648c648
<   Pin-ctls: 0xc0: OUT HP
---
>   Pin-ctls: 0x00:
767c767
< crw-rw----+ 1 root audio 116,  2 Jun 23 11:39 /dev/snd/pcmC0D0p
---
> crw-rw----+ 1 root audio 116,  2 Jun 23 11:41 /dev/snd/pcmC0D0p
829c829
<   Mono: Playback 78 [90%] [-6.75dB] [on]
---
>   Mono: Playback 87 [100%] [0.00dB] [on]
835,836c835,836
<   Front Left: Playback 0 [0%] [-65.25dB] [off]
<   Front Right: Playback 0 [0%] [-65.25dB] [off]
---
>   Front Left: Playback 87 [100%] [0.00dB] [on]
>   Front Right: Playback 87 [100%] [0.00dB] [on]
854,855c854,855
<   Front Left: Playback 87 [100%] [0.00dB] [on]
<   Front Right: Playback 87 [100%] [0.00dB] [on]
---
>   Front Left: Playback 0 [0%] [-65.25dB] [off]
>   Front Right: Playback 0 [0%] [-65.25dB] [off]
937,938c937,938
< value.0 0
< value.1 0
---
> value.0 87
> value.1 87
946,947c946,947
< dbvalue.0 -6525
< dbvalue.1 -6525
---
> dbvalue.0 0
> dbvalue.1 0
953,954c953,954
< value.0 false
< value.1 false
---
> value.0 true
> value.1 true
964,965c964,965
< value.0 87
< value.1 87
---
> value.0 0
> value.1 0
973,974c973,974
< dbvalue.0 0
< dbvalue.1 0
---
> dbvalue.0 -6525
> dbvalue.1 -6525
980,981c980,981
< value.0 true
< value.1 true
---
> value.0 false
> value.1 false
1105c1105
< value 78
---
> value 87
1113c1113
< dbvalue.0 -675
---
> dbvalue.0 0
1139c1139
< value false
---
> value true

*********************

It seems that a number of values get set to zero on plugging in the headphones.

Anyone have a way to fix the problem?

--
 \ ^ /
   0           Turtle
 / v \

 wame nuttauwadtuongash