I got a computer for work in development using linux mint (an ubuntu derivative). I have problems with the audio.

I dual boot on windows there is almost no problem other than you can't start up the computer with the headphones connected because that would kill the sound, or make the entire computer not start up, but on mint sometimes only the left speaker works and the microphone sounds horribly noisy, sometimes both work and the microphone sounds fine but that's rare, and sometimes it doesn't work, and worse sometimes it doesn't even start up, the sound controls don't do anything, and sometimes when connecting the headphones the audio completely dies, but if I connect them and close the slid that would completely kill the sound regardless of what I do.

I need to do videocalls and this is really affecting my productivity, any ideas?

This is the dmesg where I see it complaining, and see how the computer turns off and goes to sleep after opening the slid too (waking the CPU's).

[14662.523155] smpboot: Booting Node 0 Processor 1 APIC 0x2
[14662.526966] cache: parent cpu1 should not be sleeping
[14662.527102] CPU1 is up
[14662.547227] smpboot: Booting Node 0 Processor 2 APIC 0x4
[14662.551071] cache: parent cpu2 should not be sleeping
[14662.551205] CPU2 is up
[14662.571260] smpboot: Booting Node 0 Processor 3 APIC 0x6
[14662.575117] cache: parent cpu3 should not be sleeping
[14662.575251] CPU3 is up
[14662.595294] smpboot: Booting Node 0 Processor 4 APIC 0x1
[14662.599190] cache: parent cpu4 should not be sleeping
[14662.599327] CPU4 is up
[14662.615333] smpboot: Booting Node 0 Processor 5 APIC 0x3
[14662.619208] cache: parent cpu5 should not be sleeping
[14662.619344] CPU5 is up
[14662.639337] smpboot: Booting Node 0 Processor 6 APIC 0x5
[14662.643258] cache: parent cpu6 should not be sleeping
[14662.643394] CPU6 is up
[14662.675357] smpboot: Booting Node 0 Processor 7 APIC 0x7
[14662.679289] cache: parent cpu7 should not be sleeping
[14662.679424] CPU7 is up
[14662.686130] ACPI: Waking up from system sleep state S3
[14663.894084] acpi LNXPOWER:16: Turning OFF
[14663.894136] acpi LNXPOWER:15: Turning OFF
[14663.894187] acpi LNXPOWER:14: Turning OFF
[14663.894238] acpi LNXPOWER:13: Turning OFF
[14663.894289] acpi LNXPOWER:12: Turning OFF
[14663.894340] acpi LNXPOWER:11: Turning OFF
[14663.894390] acpi LNXPOWER:10: Turning OFF
[14663.894441] acpi LNXPOWER:0f: Turning OFF
[14663.894492] acpi LNXPOWER:0e: Turning OFF
[14663.894543] acpi LNXPOWER:0d: Turning OFF
[14663.894593] acpi LNXPOWER:0c: Turning OFF
[14663.894645] acpi LNXPOWER:0b: Turning OFF
[14663.894695] acpi LNXPOWER:0a: Turning OFF
[14663.894746] acpi LNXPOWER:09: Turning OFF
[14663.894797] acpi LNXPOWER:08: Turning OFF
[14663.894848] acpi LNXPOWER:07: Turning OFF
[14663.894899] acpi LNXPOWER:06: Turning OFF
[14663.894950] acpi LNXPOWER:05: Turning OFF
[14663.895014] acpi LNXPOWER:04: Turning OFF
[14663.895065] acpi LNXPOWER:03: Turning OFF
[14663.896580] xhci_hcd 0000:00:14.0: System wakeup disabled by ACPI
[14663.911358] PM: noirq resume of devices complete after 16.246 msecs
[14663.917983] PM: early resume of devices complete after 6.492 msecs
[14663.920287] rtc_cmos 00:02: System wakeup disabled by ACPI
[14663.961698] xhci_hcd 0000:00:14.0: port 8 resume PLC timeout
[14663.984353] xhci_hcd 0000:00:14.0: port 1 resume PLC timeout
[14664.007013] xhci_hcd 0000:00:14.0: port 0 resume PLC timeout
[14664.014071] snd_hda_codec_hdmi hdaudioC0D2: Unable to sync register 0x2f0d00. -5
[14664.014526] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14664.014983] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14664.015326] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14664.041680] snd_hda_codec_realtek hdaudioC0D0: Unable to sync register 0x2b8000. -5
[14664.043389] snd_hda_codec_realtek hdaudioC0D0: Unable to sync register 0x2b8000. -5
[14664.231533] usb 1-12: reset high-speed USB device number 4 using xhci_hcd
[14664.235159] ata2: SATA link down (SStatus 4 SControl 300)
[14664.311302] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14664.315290] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14664.315411] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14664.447468] restoring control 00000000-0000-0000-0000-000000000101/10/5
[14664.447469] restoring control 00000000-0000-0000-0000-000000000101/12/11
[14664.527568] usb 1-9: reset full-speed USB device number 3 using xhci_hcd
[14664.611301] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14664.615291] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14664.615407] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14664.823525] usb 1-1: reset high-speed USB device number 7 using xhci_hcd
[14664.911297] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14664.915299] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14664.915420] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14665.099622] [drm] RC6 on
[14665.211184] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14665.211349] usb 1-2: reset low-speed USB device number 8 using xhci_hcd
[14665.215208] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14665.215323] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14665.488932] usb 1-2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
[14665.492030] PM: resume of devices complete after 1574.004 msecs
[14665.492528] PM: Finishing wakeup.
[14665.492529] Restarting tasks ... done.
[14665.511271] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14665.515403] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14665.515551] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14665.533031] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[14665.811279] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14665.815299] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14665.815503] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14666.111282] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14666.115435] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14666.115640] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14666.411304] azx_single_send_cmd: 636 callbacks suppressed
[14666.411307] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14666.415366] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14666.415571] snd_hda_codec_hdmi hdaudioC0D2: HDMI: invalid ELD buf size -1
[14667.817434] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[14667.866075] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[14672.581019] wlp2s0: authenticate with a0:10:81:eb:6a:b8
[14672.628818] wlp2s0: send auth to a0:10:81:eb:6a:b8 (try 1/3)
[14672.631858] wlp2s0: authenticated
[14672.632041] wlp2s0: associating with AP with corrupt probe response
[14672.635277] wlp2s0: associate with a0:10:81:eb:6a:b8 (try 1/3)
[14672.689082] wlp2s0: RX AssocResp from a0:10:81:eb:6a:b8 (capab=0x431 status=0 aid=3)
[14672.692516] wlp2s0: associated
[14672.692686] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
[14778.360096] azx_single_send_cmd: 73 callbacks suppressed
[15510.253636] usb 1-1: usbfs: process 16072 (gvfsd-mtp) did not claim interface 0 before use