1. 14 Dec, 2023 1 commit
    • Gergo Koteles's avatar
      ALSA: hda/tas2781: call cleanup functions only once · 6c6fa264
      Gergo Koteles authored
      If the module can load the RCA but not the firmware binary, it will call
      the cleanup functions. Then unloading the module causes general
      protection fault due to double free.
      
      Do not call the cleanup functions in tasdev_fw_ready.
      
      general protection fault, probably for non-canonical address
      0x6f2b8a2bff4c8fec: 0000 [#1] PREEMPT SMP NOPTI
      Call Trace:
       <TASK>
       ? die_addr+0x36/0x90
       ? exc_general_protection+0x1c5/0x430
       ? asm_exc_general_protection+0x26/0x30
       ? tasdevice_config_info_remove+0x6d/0xd0 [snd_soc_tas2781_fmwlib]
       tas2781_hda_unbind+0xaa/0x100 [snd_hda_scodec_tas2781_i2c]
       component_unbind+0x2e/0x50
       component_unbind_all+0x92/0xa0
       component_del+0xa8/0x140
       tas2781_hda_remove.isra.0+0x32/0x60 [snd_hda_scodec_tas2781_i2c]
       i2c_device_remove+0x26/0xb0
      
      Fixes: 5be27f1e ("ALSA: hda/tas2781: Add tas2781 HDA driver")
      CC: stable@vger.kernel.org
      Signed-off-by: default avatarGergo Koteles <soyer@irl.hu>
      Link: https://lore.kernel.org/r/1a0885c424bb21172702d254655882b59ef6477a.1702510018.git.soyer@irl.huSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      6c6fa264
  2. 11 Dec, 2023 1 commit
  3. 10 Dec, 2023 4 commits
  4. 07 Dec, 2023 3 commits
  5. 06 Dec, 2023 3 commits
    • Tim Bosse's avatar
      ALSA: hda/realtek: add new Framework laptop to quirks · 33038efb
      Tim Bosse authored
      The Framework Laptop 13 (AMD Ryzen 7040Series) has an ALC295 with
      a disconnected or faulty headset mic presence detect similar to the
      previous models.  It works with the same quirk chain as
      309d7363.  This model has a VID:PID
      of f111:0006.
      Signed-off-by: default avatarTim Bosse <flinn@timbos.se>
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20231206142629.388615-1-flinn@timbos.seSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      33038efb
    • Takashi Iwai's avatar
      Merge tag 'asoc-fix-v6.7-rc4' of... · fbbc69d2
      Takashi Iwai authored
      Merge tag 'asoc-fix-v6.7-rc4' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
      
      ASoC: Fixes for v6.7
      
      A crop of fixes for v6.7, one core fix for a merge issue and a bunch of
      driver specific fixes and new IDs, mostly for x86 platforms.
      fbbc69d2
    • Jason Zhang's avatar
      ALSA: pcm: fix out-of-bounds in snd_pcm_state_names · 2b3a7a30
      Jason Zhang authored
      The pcm state can be SNDRV_PCM_STATE_DISCONNECTED at disconnect
      callback, and there is not an entry of SNDRV_PCM_STATE_DISCONNECTED
      in snd_pcm_state_names.
      
      This patch adds the missing entry to resolve this issue.
      
      cat /proc/asound/card2/pcm0p/sub0/status
      That results in stack traces like the following:
      
      [   99.702732][ T5171] Unexpected kernel BRK exception at EL1
      [   99.702774][ T5171] Internal error: BRK handler: f2005512 [#1] PREEMPT SMP
      [   99.703858][ T5171] Modules linked in: bcmdhd(E) (...)
      [   99.747425][ T5171] CPU: 3 PID: 5171 Comm: cat Tainted: G         C OE     5.10.189-android13-4-00003-g4a17384380d8-ab11086999 #1
      [   99.748447][ T5171] Hardware name: Rockchip RK3588 CVTE V10 Board (DT)
      [   99.749024][ T5171] pstate: 60400005 (nZCv daif +PAN -UAO -TCO BTYPE=--)
      [   99.749616][ T5171] pc : snd_pcm_substream_proc_status_read+0x264/0x2bc
      [   99.750204][ T5171] lr : snd_pcm_substream_proc_status_read+0xa4/0x2bc
      [   99.750778][ T5171] sp : ffffffc0175abae0
      [   99.751132][ T5171] x29: ffffffc0175abb80 x28: ffffffc009a2c498
      [   99.751665][ T5171] x27: 0000000000000001 x26: ffffff810cbae6e8
      [   99.752199][ T5171] x25: 0000000000400cc0 x24: ffffffc0175abc60
      [   99.752729][ T5171] x23: 0000000000000000 x22: ffffff802f558400
      [   99.753263][ T5171] x21: ffffff81d8d8ff00 x20: ffffff81020cdc00
      [   99.753795][ T5171] x19: ffffff802d110000 x18: ffffffc014fbd058
      [   99.754326][ T5171] x17: 0000000000000000 x16: 0000000000000000
      [   99.754861][ T5171] x15: 000000000000c276 x14: ffffffff9a976fda
      [   99.755392][ T5171] x13: 0000000065689089 x12: 000000000000d72e
      [   99.755923][ T5171] x11: ffffff802d110000 x10: 00000000000000e0
      [   99.756457][ T5171] x9 : 9c431600c8385d00 x8 : 0000000000000008
      [   99.756990][ T5171] x7 : 0000000000000000 x6 : 000000000000003f
      [   99.757522][ T5171] x5 : 0000000000000040 x4 : ffffffc0175abb70
      [   99.758056][ T5171] x3 : 0000000000000001 x2 : 0000000000000001
      [   99.758588][ T5171] x1 : 0000000000000000 x0 : 0000000000000000
      [   99.759123][ T5171] Call trace:
      [   99.759404][ T5171]  snd_pcm_substream_proc_status_read+0x264/0x2bc
      [   99.759958][ T5171]  snd_info_seq_show+0x54/0xa4
      [   99.760370][ T5171]  seq_read_iter+0x19c/0x7d4
      [   99.760770][ T5171]  seq_read+0xf0/0x128
      [   99.761117][ T5171]  proc_reg_read+0x100/0x1f8
      [   99.761515][ T5171]  vfs_read+0xf4/0x354
      [   99.761869][ T5171]  ksys_read+0x7c/0x148
      [   99.762226][ T5171]  __arm64_sys_read+0x20/0x30
      [   99.762625][ T5171]  el0_svc_common+0xd0/0x1e4
      [   99.763023][ T5171]  el0_svc+0x28/0x98
      [   99.763358][ T5171]  el0_sync_handler+0x8c/0xf0
      [   99.763759][ T5171]  el0_sync+0x1b8/0x1c0
      [   99.764118][ T5171] Code: d65f03c0 b9406102 17ffffae 94191565 (d42aa240)
      [   99.764715][ T5171] ---[ end trace 1eeffa3e17c58e10 ]---
      [   99.780720][ T5171] Kernel panic - not syncing: BRK handler: Fatal exception
      Signed-off-by: default avatarJason Zhang <jason.zhang@rock-chips.com>
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20231206013139.20506-1-jason.zhang@rock-chips.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      2b3a7a30
  6. 04 Dec, 2023 9 commits
  7. 03 Dec, 2023 1 commit
  8. 01 Dec, 2023 6 commits
  9. 30 Nov, 2023 1 commit
  10. 29 Nov, 2023 1 commit
  11. 28 Nov, 2023 1 commit
  12. 27 Nov, 2023 1 commit
  13. 25 Nov, 2023 1 commit
  14. 24 Nov, 2023 5 commits
  15. 23 Nov, 2023 2 commits