original_kernel/sound/core
Jie Yang 9058cbe1ee ALSA: jack: implement kctl creating for jack devices
Currently the ALSA jack core registers only input devices for each jack
registered. These jack input devices are not readable by userspace devices
that run as non root. This patch series will implement kctls inside the
core jack part, including kctls creating, status changing report, for both
HD-Audio and ASoC jack. This allows non root userspace to read jack status
and act on it.

This patch adds a new API called snd_jack_add_new_kctl(), which will create
a kcontrol, add it to the card, and also attach it to the jack kctl list.

This patch also initialises the jack kctl list after jack is newed, and
reports kctl status when jack insertion/removal events occur.

snd_jack_new() is updated in the following patches to also support creating
phantom jacks and jack kcontrols. We then remove these duplicated features
from HDA jack and have jack kctls handled by core throughout HDA and ASoC.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Modified-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Jie Yang <yang.jie@intel.com>
Reveiwed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-04-27 21:37:40 +02:00
..
oss ALSA: core: Drop superfluous error/debug messages after malloc failures 2015-03-10 15:42:14 +01:00
seq ALSA: seq: fill client ID in return value of pool operation 2015-04-11 09:11:19 +02:00
Kconfig ALSA: jack: implement kctl creating for jack devices 2015-04-27 21:37:40 +02:00
Makefile ALSA: jack: implement kctl creating for jack devices 2015-04-27 21:37:40 +02:00
compress_offload.c
control.c ALSA: ctl: fix to handle several elements added by one operation for userspace element 2015-04-13 10:31:49 +02:00
control_compat.c
ctljack.c
device.c Merge branch 'topic/hda-unbind' into for-next 2015-03-16 14:48:20 +01:00
hrtimer.c
hwdep.c ALSA: core: Drop superfluous error/debug messages after malloc failures 2015-03-10 15:42:14 +01:00
hwdep_compat.c
info.c
info_oss.c
init.c ALSA: core: Re-add snd_device_disconnect() 2015-03-03 11:26:28 +01:00
isadma.c
jack.c ALSA: jack: implement kctl creating for jack devices 2015-04-27 21:37:40 +02:00
memalloc.c
memory.c
misc.c
pcm.c ALSA: core: Drop superfluous error/debug messages after malloc failures 2015-03-10 15:42:14 +01:00
pcm_compat.c ALSA: core: pass audio tstamp config from userspace in compat mode 2015-02-20 17:30:05 +01:00
pcm_dmaengine.c ALSA: Fix spelling typo in Documentation/DocBook/alsa-driver-api.xml 2015-03-04 12:12:59 +01:00
pcm_lib.c ALSA: core: add .get_time_info 2015-02-20 17:30:05 +01:00
pcm_memory.c
pcm_misc.c
pcm_native.c sound updates for 4.1-rc1 2015-04-15 15:41:41 -07:00
pcm_timer.c
pcm_trace.h
rawmidi.c ALSA: core: Drop superfluous error/debug messages after malloc failures 2015-03-10 15:42:14 +01:00
rawmidi_compat.c
rtctimer.c
sgbuf.c
sound.c ALSA: Consolidate snd_find_free_minor() 2015-02-17 07:39:37 +01:00
sound_oss.c
timer.c ALSA: core: Drop superfluous error/debug messages after malloc failures 2015-03-10 15:42:14 +01:00
timer_compat.c
vmaster.c