mbox series

[v1,0/3] Add Manual Mode Jack Detection for CS42L42 in HDA

Message ID 20220504161236.2490532-1-sbinding@opensource.cirrus.com (mailing list archive)
Headers show
Series Add Manual Mode Jack Detection for CS42L42 in HDA | expand

Message

Stefan Binding May 4, 2022, 4:12 p.m. UTC
CS42L42 supports automatic type detection, to determine headset type,
or headphones. However, automatic type detection does not always work
correctly. To improve detection accuracy, manual mode detection can be
run. This is already done in the ASoC version of the CS42L42 driver,
and this chain adds the same support into the HDA version.

In addition, to better align the ASoC and HDA drivers, the ASoC header
file has been moved into the general sound includes, which allows both
ASoC and HDA to have access to the header.
This improves the maintainability of the HDA driver, and makes it
easier to port fixes/features from CS42L42 ASoC to HDA.

Stefan Binding (3):
  ASoC: cs42l42: Move CS42L42 register descriptions to general include
  ALSA: hda/cs8409: Use general cs42l42 include in cs8409 hda driver
  ALSA: hda/cs8409: Support manual mode detection for CS42L42

 include/sound/cs42l42.h             | 810 +++++++++++++++++++++++++++
 sound/pci/hda/patch_cs8409-tables.c | 327 ++++++-----
 sound/pci/hda/patch_cs8409.c        | 275 ++++++---
 sound/pci/hda/patch_cs8409.h        |   9 +-
 sound/soc/codecs/cs42l42.h          | 826 +---------------------------
 5 files changed, 1167 insertions(+), 1080 deletions(-)
 create mode 100644 include/sound/cs42l42.h

Comments

Takashi Iwai May 9, 2022, 8:47 a.m. UTC | #1
On Wed, 04 May 2022 18:12:33 +0200,
Stefan Binding wrote:
> 
> CS42L42 supports automatic type detection, to determine headset type,
> or headphones. However, automatic type detection does not always work
> correctly. To improve detection accuracy, manual mode detection can be
> run. This is already done in the ASoC version of the CS42L42 driver,
> and this chain adds the same support into the HDA version.
> 
> In addition, to better align the ASoC and HDA drivers, the ASoC header
> file has been moved into the general sound includes, which allows both
> ASoC and HDA to have access to the header.
> This improves the maintainability of the HDA driver, and makes it
> easier to port fixes/features from CS42L42 ASoC to HDA.
> 
> Stefan Binding (3):
>   ASoC: cs42l42: Move CS42L42 register descriptions to general include
>   ALSA: hda/cs8409: Use general cs42l42 include in cs8409 hda driver
>   ALSA: hda/cs8409: Support manual mode detection for CS42L42

Applied all three patches now.  Thanks.


Takashi