From: Takashi Iwai <tiwai@suse.de>
To: Jie Yang <yang.jie@intel.com>
Cc: alsa-devel@alsa-project.org, broonie@kernel.org,
tanu.kaskinen@linux.intel.com, liam.r.girdwood@intel.com
Subject: Re: [PATCH v10 0/7] ALSA: jack: Refactoring for jack kctls
Date: Tue, 28 Apr 2015 08:51:59 +0200 [thread overview]
Message-ID: <s5hfv7k3fu8.wl-tiwai@suse.de> (raw)
In-Reply-To: <1430140862-17207-1-git-send-email-yang.jie@intel.com>
At Mon, 27 Apr 2015 21:20:55 +0800,
Jie Yang wrote:
>
> This patch series aligns jack handling between the HDA and ASoC
> subsystems.
>
> The HDA subsystem currently creates a kcontrol for each HDA jack
> registered. ASoC subsystem creates input device jacks for each
> jack registered. This series aligns both jack APIs to create
> kcontrol jacks.
>
> This implementation keeps compatibility with existing HDA jacks
> so no userspace changes are required.
Since we got ack from Mark, now I applied the patches to for-next
branch.
Mark, if you need the changes regarding this, just pull from
topic/jack branch. It's on top of clean 4.1-rc1.
Thanks!
Takashi
>
> Changes in v10:
> 1. rebase it on top of tiwai/sound.git for-linus branch;
> 2. Liam helps fix some typos and syntax errors in comments and
> descriptions.
>
> Changes in v9:
> 1. move struct snd_jack_kctl definition to jack.c, to hides the
> internal implementation details;
> 2. some small code fixing;
> 3. update documentation file.
>
> Changes in v8:
> 1. remove snd_jack_kctl from HDA part, change snd_jack_new param
> to use bool for creating kcontrol at jack creating stage;
> 2. create jack for phantom jack, with no input device;
> 3. remove HDA jack get_unique_index() and index related code.
>
> Changes in v7:
> 1. move name generating and index getting part into ctljack.c;
> 2. remove exposing private_data and destructor to HDA, then jack
> core can handle kctls by itself totally.
> 3. some small code fixing.
>
> Changes in v6:
> 1. refine kctl name generating function;
> 2. integrate HDA jack kctl more deeply, support phantom jack in
> snd_jack_new();
> 3. add documentation for Jack kcontrols to explain how to use it.
>
> Changes in v5:
> 1. remove SND_KCTL_JACK config item, we need jack kctl once
> CONFIG_SND_JACK is selected.
>
> Changes in v4:
> 1. use snd_ctl_find_id() to get avaliable index;
> 2. add initial kctl for snd_jack_new(compatible for HDA);
> 3. add struct snd_jack_kctl * field to struct hda_jack_tbl;
> 4. new kctls for soc jack during jack pins creating.
> 5. add a patch to remove exporting snd_kctl_jack_new().
>
> Changes in v3:
> 1. replace bit index with bit mask in jack_kctl;
> 2. add exception for SND_JACK_HEADSET and SND_JACK_AVOUT, only create
> one jack kctl for these two combo jacks, respectively.
> 3. add NULL check, mem kfree, and fix some potential risk.
>
> Change in v2:
> 1. define jack_kctl struct, and put jack kctl related stuff there;
> 2. add a patch to remove the existing controls for HDA jack.
>
> Jie Yang (7):
> ALSA: jack: implement kctl creating for jack devices
> ALSA: Jack: handle jack embedded kcontrol creating within ctljack
> ALSA: jack: extend snd_jack_new to support phantom jack
> ALSA: hda - Update to use the new jack kctls method
> ASoC: jack: create kctls according to jack pins info
> ALSA: jack: remove exporting ctljack functions
> ALSA: Docs: Add documentation for Jack kcontrols
>
> Documentation/sound/alsa/Jack-Controls.txt | 43 ++++++++++
> include/sound/control.h | 2 +-
> include/sound/jack.h | 13 ++-
> sound/core/Kconfig | 3 -
> sound/core/Makefile | 3 +-
> sound/core/ctljack.c | 41 +++++++--
> sound/core/jack.c | 133 ++++++++++++++++++++++++++---
> sound/pci/hda/Kconfig | 2 +-
> sound/pci/hda/hda_jack.c | 90 ++++++-------------
> sound/pci/hda/hda_jack.h | 5 +-
> sound/pci/hda/patch_hdmi.c | 2 +-
> sound/pci/oxygen/xonar_wm87x6.c | 2 +-
> sound/soc/soc-jack.c | 3 +-
> 13 files changed, 242 insertions(+), 100 deletions(-)
> create mode 100644 Documentation/sound/alsa/Jack-Controls.txt
>
> --
> 1.9.1
>
prev parent reply other threads:[~2015-04-28 6:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-27 13:20 [PATCH v10 0/7] ALSA: jack: Refactoring for jack kctls Jie Yang
2015-04-27 13:20 ` [PATCH v10 1/7] ALSA: jack: implement kctl creating for jack devices Jie Yang
2015-04-27 13:20 ` [PATCH v10 2/7] ALSA: Jack: handle jack embedded kcontrol creating within ctljack Jie Yang
2015-04-27 13:20 ` [PATCH v10 3/7] ALSA: jack: extend snd_jack_new to support phantom jack Jie Yang
2015-04-27 13:20 ` [PATCH v10 4/7] ALSA: hda - Update to use the new jack kctls method Jie Yang
2015-04-27 13:21 ` [PATCH v10 5/7] ASoC: jack: create kctls according to jack pins info Jie Yang
2015-04-27 13:21 ` [PATCH v10 6/7] ALSA: jack: remove exporting ctljack functions Jie Yang
2015-04-27 13:21 ` [PATCH v10 7/7] ALSA: Docs: Add documentation for Jack kcontrols Jie Yang
2015-04-28 6:51 ` Takashi Iwai [this message]
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=s5hfv7k3fu8.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=liam.r.girdwood@intel.com \
--cc=tanu.kaskinen@linux.intel.com \
--cc=yang.jie@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