Speaker not working with beeping (ticking) sound

speaker sound stopped working suddenly, then there appeared a continuous beeping (like a pulse) sound coming from the speaker hardware, i’ve attached headphones and they are working ( plus the beeping sound stops while attached ).

# inxi -SMA

System:    Host: bx-vivobook Kernel: 5.10.36-2-MANJARO x86_64 bits: 64 Desktop: KDE Plasma 5.21.5 Distro: Manjaro Linux 
Machine:   Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X509JB_X509JB v: 1.0 serial: <superuser required> 
           Mobo: ASUSTeK model: X509JB v: 1.0 serial: <superuser required> UEFI: American Megatrends v: X509JB.304 
           date: 06/11/2020 
Audio:     Device-1: Intel Smart Sound Audio driver: snd_hda_intel 
           Sound Server-1: ALSA v: k5.10.36-2-MANJARO running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes
# pacmd list-sinks

1 sink(s) available.
  * index: 0
        name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9039
        volume: front-left: 51118 /  78% / -6,47 dB,   front-right: 51118 /  78% / -6,47 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 0
        sample spec: s16le 2ch 48000Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 1837,50 ms
        card: 0 <alsa_card.pci-0000_00_1f.3>
        module: 6
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC256 Analog"
                alsa.id = "ALC256 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0x6013120000 irq 148"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1f.3"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "34c8"
                device.product.name = "Smart Sound Technology Audio Controller"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Built-in Audio Analog Stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
        active port: <analog-output-speaker>
# sudo dmesg | egrep -i '(alsa|snd|sound|sof|hda)'

[    0.270353] pci 0000:02:00.0: Enabling HDA controller
[    0.275932] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.420115] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.420117] software IO TLB: mapped [mem 0x0000000066d63000-0x000000006ad63000] (64MB)
[    2.894428] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    2.894905] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    3.012241] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC256: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    3.012247] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.012250] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    3.012253] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    3.012255] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    3.012258] snd_hda_codec_realtek hdaudioC0D0:      Headset Mic=0x19
[    3.012260] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x1b
[    3.012263] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x13
[    3.143768] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input13
[    3.143860] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input14
[    3.143908] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input15
[    3.143956] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input16
[    3.144000] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input17
[    3.144045] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input18
[    3.144091] input: HDA Intel PCH HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input19
[    3.144140] input: HDA Intel PCH HDMI/DP,pcm=12 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input20
[   14.872741] nvidia 0000:02:00.0: Enabling HDA controller
[   15.255996] nvidia 0000:02:00.0: Enabling HDA controller