linux/sound/pci/hda
Anssi Hannula c9a6338aec ALSA: hda - hdmi: Fix IEC958 ctl indexes for some simple HDMI devices
In case a single HDA card has both HDMI and S/PDIF outputs, the S/PDIF
outputs will have their IEC958 controls created starting from index 16
and the HDMI controls will be created starting from index 0.

However, HDMI simple_playback_build_controls() as used by old VIA and
NVIDIA codecs incorrectly requests the IEC958 controls to be created
with an S/PDIF type instead of HDMI.
In case the card has other codecs that have HDMI outputs, the controls
will be created with wrong index=16, causing them to e.g. be unreachable
by the ALSA "hdmi" alias.

Fix that by making simple_playback_build_controls() request controls
with HDMI indexes.

Not many cards have an affected configuration, but e.g. ASUS M3N78-VM
contains an integrated NVIDIA HDA "card" with:
- a VIA codec that has, among others, an S/PDIF pin incorrectly
  labelled as an HDMI pin, and
- an NVIDIA MCP7x HDMI codec.

Reported-by: MysterX on #openelec
Tested-by: MysterX on #openelec
Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
Cc: <stable@vger.kernel.org> # 3.8+
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-12-11 07:12:07 +01:00
..
ca0132_regs.h ALSA: hda/ca0132 - Fix type of INVALID_CHIP_ADDRESS 2013-02-12 10:15:15 +01:00
hda_auto_parser.c ALSA: hda - Fix possible NULL dereference in snd_hda_get_pin_label() 2013-10-29 11:37:19 +01:00
hda_auto_parser.h ALSA: hda - add some small convenience functions to auto parser 2013-04-11 11:59:27 +02:00
hda_beep.c ALSA: hda - Add a fallthru comment 2013-10-29 11:37:23 +01:00
hda_beep.h ALSA: hda - Fix power-saving during playing beep sound 2013-03-18 12:58:47 +01:00
hda_codec.c ALSA: hda - Fix unbalanced runtime PM notification at resume 2013-11-20 16:39:14 +01:00
hda_codec.h ALSA: hda - Drop bus->avoid_link_reset flag 2013-11-26 13:40:14 +01:00
hda_eld.c ALSA: hda - hdmi: Fix wrong baseline length in ATI/AMD generated ELD 2013-11-11 17:08:39 +01:00
hda_generic.c ALSA: hda - Mute all aamix inputs as default 2013-12-10 21:16:50 +01:00
hda_generic.h ALSA: hda - Introduce the bitmask for excluding output volume 2013-11-05 07:49:41 +01:00
hda_hwdep.c ALSA: replace strict_strto*() with kstrto*() 2013-07-21 11:56:18 +02:00
hda_i915.c ALSA: hda - Add power-welll support for haswell HDA 2013-06-06 17:31:56 +02:00
hda_i915.h ALSA: hda - Add power-welll support for haswell HDA 2013-06-06 17:31:56 +02:00
hda_intel_trace.h ALSA: hda - Add tracepoints to HD-audio controller driver 2012-10-30 10:39:59 +01:00
hda_intel.c ALSA: hda - Fix complete_all() timing in deferred probes 2013-12-02 13:23:40 +01:00
hda_jack.c ALSA: hda - Add a block_report flag to jacks 2013-11-07 14:03:17 +01:00
hda_jack.h ALSA: hda - Add a block_report flag to jacks 2013-11-07 14:03:17 +01:00
hda_local.h ALSA: hda - hdmi: Add ELD emulation for ATI/AMD codecs 2013-10-24 22:54:13 +02:00
hda_proc.c ALSA: hda - add device list & select info of display pins to codec proc file 2013-08-27 12:15:17 +02:00
hda_trace.h ALSA: hda - Clean up CONFIG_SND_HDA_POWER_SAVE 2012-08-30 07:50:13 -07:00
Kconfig ALSA: hda - Select FW_LOADER from CONFIG_SND_HDA_CODEC_CA0132_DSP 2013-11-18 17:12:34 +01:00
Makefile ALSA: hda - Add power-welll support for haswell HDA 2013-06-06 17:31:56 +02:00
patch_analog.c ALSA: hda - Use always amps for auto-mute on AD1986A codec 2013-12-02 15:40:14 +01:00
patch_ca0110.c ALSA: hda - Remove superfluous header inclusions 2013-01-21 16:10:56 +01:00
patch_ca0132.c ALSA: hda/ca0132: Staticize codec_send_command 2013-09-13 14:36:32 +02:00
patch_cirrus.c ALSA: hda - Control SPDIF out pin on MacBookPro 11,2 2013-11-11 16:22:04 +01:00
patch_cmedia.c ALSA: hda - Remove superfluous header inclusions 2013-01-21 16:10:56 +01:00
patch_conexant.c ALSA: hda - Remove quirk for Dell Vostro 131 2013-12-06 08:52:40 +01:00
patch_hdmi.c ALSA: hda - hdmi: Fix IEC958 ctl indexes for some simple HDMI devices 2013-12-11 07:12:07 +01:00
patch_realtek.c ALSA: hda - Another Dell headset detection quirk 2013-12-10 09:02:58 +01:00
patch_si3054.c sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00
patch_sigmatel.c ALSA: hda - Drop bus->avoid_link_reset flag 2013-11-26 13:40:14 +01:00
patch_via.c ALSA: hda - Clearing jackpoll_interval avoid pending work 2013-07-29 14:19:03 +02:00