linux_dsm_epyc7002/sound/pci/hda
Takashi Iwai bbbc7e8502 ALSA: hda - Allocate hda_pcm objects dynamically
So far, the hda_codec object kept the hda_pcm list in an array, and
the codec driver was expected to assign the array.  However, this
makes the object life cycle management harder, because the assigned
array is freed at the codec driver detach while it might be still
accessed by the opened streams.

In this patch, we allocate each hda_pcm object dynamically and manage
it as a linked list.  Each object has a kref refcount, and both the
codec driver binder and the PCM open/close touches it, so that the
object won't be freed while in use.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-03-03 11:26:24 +01:00
..
ca0132_regs.h ALSA: hda: ca0132_regs.h: Fix typo in include guard 2014-08-22 11:24:11 +02:00
dell_wmi_helper.c ALSA: hda - add mic mute led hook for dell machines 2014-07-31 09:21:42 +02:00
hda_auto_parser.c ALSA: hda - Debug output which type of fixup was selected 2015-01-07 15:48:57 +01:00
hda_auto_parser.h ALSA: hda - Sort input pins depending on amp caps 2014-09-23 15:57:32 +02:00
hda_beep.c ALSA: hda - Add card field to hda_codec struct 2015-03-03 11:25:16 +01:00
hda_beep.h ALSA: hda - Fix registration of beep input device 2014-02-28 14:02:21 +01:00
hda_bind.c ALSA: hda - Add card field to hda_codec struct 2015-03-03 11:25:16 +01:00
hda_codec.c ALSA: hda - Allocate hda_pcm objects dynamically 2015-03-03 11:26:24 +01:00
hda_codec.h ALSA: hda - Allocate hda_pcm objects dynamically 2015-03-03 11:26:24 +01:00
hda_controller.c ALSA: hda - Remove superfluous memory allocation error messages 2015-03-03 11:25:17 +01:00
hda_controller.h ALSA: hda - Clear pcm pointer assigned to hda_pcm at device removal 2015-02-26 15:52:45 +01:00
hda_eld.c ALSA: hda - Correct kerneldoc comments 2014-10-29 15:06:54 +01:00
hda_generic.c ALSA: hda - Allocate hda_pcm objects dynamically 2015-03-03 11:26:24 +01:00
hda_generic.h ALSA: hda - Allocate hda_pcm objects dynamically 2015-03-03 11:26:24 +01:00
hda_hwdep.c ALSA: hda - Add card field to hda_codec struct 2015-03-03 11:25:16 +01:00
hda_i915.c ALSA: hda - Fold hda_priv.h into hda_controller.h 2015-02-19 21:41:25 +01:00
hda_intel_trace.h ALSA: hda - Add tracepoints to HD-audio controller driver 2012-10-30 10:39:59 +01:00
hda_intel.c ALSA: hda - Remove superfluous memory allocation error messages 2015-03-03 11:25:17 +01:00
hda_intel.h ALSA: hda - Fold hda_priv.h into hda_controller.h 2015-02-19 21:41:25 +01:00
hda_jack.c ALSA: hda - Add card field to hda_codec struct 2015-03-03 11:25:16 +01:00
hda_jack.h ALSA: hda - More kerneldoc comments 2014-10-29 16:03:58 +01:00
hda_local.h ALSA: hda - Remove channel mode helper functions 2015-02-26 15:37:10 +01:00
hda_proc.c ALSA: hda - Allocate hda_pcm objects dynamically 2015-03-03 11:26:24 +01:00
hda_sysfs.c ALSA: hda - Add card field to hda_codec struct 2015-03-03 11:25:16 +01:00
hda_tegra.c ALSA: hda - Power down codec automatically at registration 2015-02-26 15:37:08 +01:00
hda_trace.h ALSA: hda - Add card field to hda_codec struct 2015-03-03 11:25:16 +01:00
Kconfig ALSA: hda - Select INPUT for Realtek HD-audio codec 2015-01-15 10:21:50 +01:00
Makefile ALSA: hda - Bind codecs via standard bus 2015-02-23 09:16:06 +01:00
patch_analog.c ALSA: hda - Bind codecs via standard bus 2015-02-23 09:16:06 +01:00
patch_ca0110.c ALSA: hda - Bind codecs via standard bus 2015-02-23 09:16:06 +01:00
patch_ca0132.c ALSA: hda - Allocate hda_pcm objects dynamically 2015-03-03 11:26:24 +01:00
patch_cirrus.c ALSA: hda - Bind codecs via standard bus 2015-02-23 09:16:06 +01:00
patch_cmedia.c ALSA: hda - Bind codecs via standard bus 2015-02-23 09:16:06 +01:00
patch_conexant.c ALSA: hda - Bind codecs via standard bus 2015-02-23 09:16:06 +01:00
patch_hdmi.c ALSA: hda - Allocate hda_pcm objects dynamically 2015-03-03 11:26:24 +01:00
patch_realtek.c ALSA: hda - Allocate hda_pcm objects dynamically 2015-03-03 11:26:24 +01:00
patch_si3054.c ALSA: hda - Allocate hda_pcm objects dynamically 2015-03-03 11:26:24 +01:00
patch_sigmatel.c ALSA: hda - Replace bus pm_notify with the standard runtime PM framework 2015-02-26 15:37:02 +01:00
patch_via.c ALSA: hda - Allocate hda_pcm objects dynamically 2015-03-03 11:26:24 +01:00
thinkpad_helper.c ALSA: hda - Replace with standard printk 2014-02-25 12:27:32 +01:00