From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Hans de Goede <hdegoede@redhat.com>,
Cezary Rojewski <cezary.rojewski@intel.com>,
Liam Girdwood <liam.r.girdwood@linux.intel.com>,
Jie Yang <yang.jie@linux.intel.com>,
Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, Bard Liao <bard.liao@intel.com>
Subject: Re: [PATCH v2 0/6] ASoC: Intel/rt5640: Add support for HP Elite Pad 1000G2 jack-detect
Date: Thu, 19 Aug 2021 15:31:41 -0500 [thread overview]
Message-ID: <c6c148e7-3f1d-7f05-aae1-9d6928640593@linux.intel.com> (raw)
In-Reply-To: <20210819190543.784415-1-hdegoede@redhat.com>
On 8/19/21 2:05 PM, Hans de Goede wrote:
> Changes in v2:
> - Rebase on asoc/for-next
> - New patch: "ASoC: Intel: bytct_rt5640: Add a separate "Headset Mic 2"
> DAPM pin for the mic on the 2nd jack"
> - Addressed Pierre-Louis' comments about calling
> acpi_dev_add_driver_gpios() twice
Thanks Hans, the code in patch6 looks much simpler now.
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
>
> Original cover-letter:
>
> The HP Elitepad 1000 G2 tablet has 2 headset jacks:
>
> 1. on the dock which uses the output of the codecs built-in HP-amp +
> the standard IN2 input which is always used with the headset-jack.
>
> 2. on the tablet itself, this uses the line-out of the codec + an external
> HP-amp, which gets enabled by the ALC5642 codec's GPIO1 pin; and IN1 for
> the headset-mic.
>
> The codec's GPIO1 is also its only IRQ output pin, so this means that
> the codec's IRQ cannot be used on this tablet. Instead the jack-detect
> is connected directly to GPIOs on the main SoC. The dock has a helper
> chip which also detects if a headset-mic is present or not, so there
> are 2 GPIOs for the jack-detect status of the dock. The tablet jack
> uses a single GPIO which indicates if a jack is present or not.
>
> Differentiating between between headphones vs a headset on the tablet jack
> is done by using the usual mic-bias over-current-detection mechanism.
>
> Regards,
>
> Hans
>
>
> Hans de Goede (6):
> ASoC: rt5640: Move rt5640_disable_jack_detect() up in the rt5640.c
> file
> ASoC: rt5640: Delay requesting IRQ until the machine-drv calls
> set_jack
> ASoC: rt5640: Add optional hp_det_gpio parameter to
> rt5640_detect_headset()
> ASoC: rt5640: Add rt5640_set_ovcd_params() helper
> ASoC: Intel: bytct_rt5640: Add a separate "Headset Mic 2" DAPM pin for
> the mic on the 2nd jack
> ASoC: Intel: bytcr_rt5640: Add support for HP Elite Pad 1000G2
> jack-detect
>
> sound/soc/codecs/rt5640.c | 136 ++++++++++++----------
> sound/soc/codecs/rt5640.h | 6 +
> sound/soc/intel/boards/bytcr_rt5640.c | 158 +++++++++++++++++++++++++-
> 3 files changed, 234 insertions(+), 66 deletions(-)
>
next prev parent reply other threads:[~2021-08-19 20:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-19 19:05 [PATCH v2 0/6] ASoC: Intel/rt5640: Add support for HP Elite Pad 1000G2 jack-detect Hans de Goede
2021-08-19 19:05 ` [PATCH v2 1/6] ASoC: rt5640: Move rt5640_disable_jack_detect() up in the rt5640.c file Hans de Goede
2021-08-19 19:05 ` [PATCH v2 2/6] ASoC: rt5640: Delay requesting IRQ until the machine-drv calls set_jack Hans de Goede
2021-08-19 19:05 ` [PATCH v2 3/6] ASoC: rt5640: Add optional hp_det_gpio parameter to rt5640_detect_headset() Hans de Goede
2021-08-19 19:05 ` [PATCH v2 4/6] ASoC: rt5640: Add rt5640_set_ovcd_params() helper Hans de Goede
2021-08-19 19:05 ` [PATCH v2 5/6] ASoC: Intel: bytct_rt5640: Add a separate "Headset Mic 2" DAPM pin for the mic on the 2nd jack Hans de Goede
2021-08-19 19:05 ` [PATCH v2 6/6] ASoC: Intel: bytcr_rt5640: Add support for HP Elite Pad 1000G2 jack-detect Hans de Goede
2021-08-20 0:56 ` kernel test robot
2021-08-19 20:31 ` Pierre-Louis Bossart [this message]
2021-08-20 14:39 ` [PATCH v2 0/6] ASoC: Intel/rt5640: " Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c6c148e7-3f1d-7f05-aae1-9d6928640593@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=bard.liao@intel.com \
--cc=broonie@kernel.org \
--cc=cezary.rojewski@intel.com \
--cc=hdegoede@redhat.com \
--cc=liam.r.girdwood@linux.intel.com \
--cc=yang.jie@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox