All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] ALSA/HDA: abort probe when DMICs are detected
@ 2019-07-19 20:37 Pierre-Louis Bossart
  2019-07-19 20:37 ` [PATCH v2 1/5] ASoC: Intel: Skylake: move NHLT header to common directory Pierre-Louis Bossart
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Pierre-Louis Bossart @ 2019-07-19 20:37 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Pierre-Louis Bossart, Daniel Drake, Hui Wang,
	Curtis Malainey, broonie

This is the second take on same problem of detecting when the HDaudio
legacy driver can be used and when the SST or SOF drivers are
required.

The previous attempt based on a the PCI Class information was a
resounding failure and broke audio on Linus' laptop, so we need
additional information to avoid enabling a DSP-based driver without a
good reason to do so.

This patchset suggests the use of the NHLT information which *in
theory* exposes DMIC endpoints. The legacy HDaudio driver cannot
handle DMICs and will not provide any capture capabilities. Since it's
typically the first one to probe due to the Makefile order, aborting
the probe will let the PCI subsystem look for the next driver which
hopefully will support this capability.

I tested this patch on 5 devices (SKL, KBL, APL, GLK, WHL), three
without DMICs and two with, and the detection seems to work as
planned. Additional testing by Canonical and Endless folks did not
expose any issues.

Changes since v1 (Feedback from Takashi):
Squashed patch3 in patch2
Changed log to dbg_info
Fixed module parameter handling

Changes since RFC:
Cosmetic code improvements
Moved intel-nhlt.h to include/sound
Moved intel-nhlt.c to sound/hda
Removed SOC prefixes
Added full-support for vendor-defined geometries
Added Kconfig and kernel module parameter to opt-in

Pierre-Louis Bossart (5):
  ASoC: Intel: Skylake: move NHLT header to common directory
  ALSA: hda: move parts of NHLT code to new module
  ALSA: hda: intel-nhlt: handle NHLT VENDOR_DEFINED DMIC geometry
  ASoC: Intel: Skylake: use common NHLT module
  ALSA: hda/intel: stop probe if DMICS are detected on Skylake+
    platforms

 .../skl-nhlt.h => include/sound/intel-nhlt.h  |  51 +++++++--
 sound/hda/Kconfig                             |   3 +
 sound/hda/Makefile                            |   3 +
 sound/hda/intel-nhlt.c                        | 102 ++++++++++++++++++
 sound/pci/hda/Kconfig                         |  10 ++
 sound/pci/hda/hda_intel.c                     |  34 ++++++
 sound/soc/intel/Kconfig                       |   1 +
 sound/soc/intel/skylake/skl-nhlt.c            |  91 +---------------
 sound/soc/intel/skylake/skl-ssp-clk.c         |   1 +
 sound/soc/intel/skylake/skl-topology.c        |   1 +
 sound/soc/intel/skylake/skl.c                 |  12 ++-
 sound/soc/intel/skylake/skl.h                 |   4 -
 12 files changed, 205 insertions(+), 108 deletions(-)
 rename sound/soc/intel/skylake/skl-nhlt.h => include/sound/intel-nhlt.h (65%)
 create mode 100644 sound/hda/intel-nhlt.c

-- 
2.20.1

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-07-26 22:09 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-19 20:37 [PATCH v2 0/5] ALSA/HDA: abort probe when DMICs are detected Pierre-Louis Bossart
2019-07-19 20:37 ` [PATCH v2 1/5] ASoC: Intel: Skylake: move NHLT header to common directory Pierre-Louis Bossart
2019-07-19 20:37 ` [PATCH v2 2/5] ALSA: hda: move parts of NHLT code to new module Pierre-Louis Bossart
2019-07-20 21:06   ` Cezary Rojewski
2019-07-22  8:54     ` Takashi Iwai
2019-07-22 12:14       ` Pierre-Louis Bossart
2019-07-22 12:26         ` Takashi Iwai
2019-07-22 12:58           ` Pierre-Louis Bossart
2019-07-22 13:01             ` Takashi Iwai
2019-07-22 13:17               ` Pierre-Louis Bossart
2019-07-26 22:09     ` Pierre-Louis Bossart
2019-07-19 20:37 ` [PATCH v2 3/5] ALSA: hda: intel-nhlt: handle NHLT VENDOR_DEFINED DMIC geometry Pierre-Louis Bossart
2019-07-19 20:37 ` [PATCH v2 4/5] ASoC: Intel: Skylake: use common NHLT module Pierre-Louis Bossart
2019-07-19 20:37 ` [PATCH v2 5/5] ALSA: hda/intel: stop probe if DMICS are detected on Skylake+ platforms Pierre-Louis Bossart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.