ALSA: jack: Refactoring for jack kctls
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v10 Latest7 patches 1 replyIn review
- v97 patches 8 repliesSuperseded
- v87 patches 11 repliesSuperseded
Earlier versions · 8
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v7 | 7 patches | 9 replies | Superseded | |
| v6 | 6 patches | 6 replies | Superseded | |
| v5 | 5 patches | 1 reply | Superseded | |
| v4 | 5 patches | 15 replies | Superseded | |
| v3 | 2 patches | 17 replies | Superseded | |
| v2 posting 2/2 | 0 of 2 patches | 0 replies | Superseded | |
| v2 posting 1/2 | 2 patches | 36 replies | Superseded | |
| v1 | 1 patch | 8 replies | Superseded |
Changes in v10 from the cover letter
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.
Patches in v10 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | ALSA: jack: implement kctl creating for jack devicesinclude/ sound/ sound/ +2 more | +103 | 0 replies | |
| 2/7 | ALSA: Jack: handle jack embedded kcontrol creating within ctljackinclude/ sound/ sound/ +1 more | +37 | 0 replies | |
| 3/7 | ALSA: jack: extend snd_jack_new to support phantom jackinclude/ sound/ sound/ +2 more | +33 | 0 replies | |
| 4/7 | ALSA: hda - Update to use the new jack kctls methodinclude/ sound/ sound/ +3 more | +31 | 0 replies | |
| 5/7 | ASoC: jack: create kctls according to jack pins infosound/ | +1 | 0 replies | |
| 6/7 | ALSA: jack: remove exporting ctljack functionssound/ | +0 | 0 replies | |
| 7/7 | ALSA: Docs: Add documentation for Jack kcontrolsDocumentation/ | +43 | 0 replies |
Reviews trailers per patch
None of the 7 patches has a Reviewed-by or Acked-by.
| Patch | Jie Yang | Mark Brown |
|---|---|---|
| 1/7 | Modified-by | Reveiwed-by |
| 2/7 | ||
| 3/7 | ||
| 4/7 | ||
| 5/7 | ||
| 6/7 | ||
| 7/7 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v10 0/7] ALSA: jack: Refactoring for jack kctls
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.
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
Signature · 1 line
1.9.1