From: Jie Yang <yang.jie@intel.com>
To: tiwai@suse.de, broonie@kernel.org
Cc: alsa-devel@alsa-project.org, liam.r.girdwood@intel.com
Subject: [PATCH v3 0/2] ALSA: jack: Refactoring for jack kctls
Date: Fri, 20 Mar 2015 23:39:11 +0800 [thread overview]
Message-ID: <1426865953-1606-1-git-send-email-yang.jie@intel.com> (raw)
Currently only hda will create kctls for hda jacks, for asoc, people
may need create jack kctls in specific driver.
Here we are introducing kctls for each jack, by creating kctls and add
them to jack controls list (considering exist of combo jack). At the
same time, we will report events for each control in the list.
With this implement, we are no longer need hda jack specific kctls, so
here also remove jack kctls for hda.
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 (2):
ALSA: jack: create jack kcontrols for every jack input device
ALSA: hda - Remove jack kctls
include/sound/jack.h | 8 ++++
sound/core/Kconfig | 3 --
sound/core/Makefile | 3 +-
sound/core/jack.c | 118 ++++++++++++++++++++++++++++++++++++++++++++++-
sound/pci/hda/Kconfig | 10 +---
sound/pci/hda/hda_jack.c | 45 ++----------------
sound/pci/hda/hda_jack.h | 3 --
7 files changed, 129 insertions(+), 61 deletions(-)
--
1.9.1
next reply other threads:[~2015-03-20 15:36 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-20 15:39 Jie Yang [this message]
2015-03-20 15:39 ` [PATCH v3 1/2] ALSA: jack: create jack kcontrols for every jack input device Jie Yang
2015-03-20 16:17 ` Takashi Iwai
2015-03-21 2:22 ` Jie, Yang
2015-03-21 7:46 ` Takashi Iwai
2015-03-23 10:08 ` Tanu Kaskinen
2015-03-23 11:57 ` Takashi Iwai
2015-03-23 14:57 ` Mark Brown
2015-03-25 4:11 ` Jie, Yang
2015-03-25 5:27 ` Raymond Yau
2015-03-25 6:13 ` Takashi Iwai
2015-03-20 15:39 ` [PATCH v3 2/2] ALSA: hda - Remove jack kctls Jie Yang
2015-03-20 16:21 ` Takashi Iwai
2015-03-21 0:23 ` Jie, Yang
2015-03-23 9:18 ` [PATCH v3 0/2] ALSA: jack: Refactoring for " David Henningsson
2015-03-23 15:00 ` Mark Brown
2015-03-23 15:09 ` Takashi Iwai
2015-03-23 16:35 ` Mark Brown
2015-03-23 16:38 ` Takashi Iwai
2015-03-23 16:52 ` 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=1426865953-1606-1-git-send-email-yang.jie@intel.com \
--to=yang.jie@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=liam.r.girdwood@intel.com \
--cc=tiwai@suse.de \
/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