linux-hardened/sound/pci
Wang YanQing 1f7f51a631 ALSA: hda: Fix regression of hdmi eld control created based on invalid pcm
Commit fb087eaaef ("ALSA: hda - hdmi eld control created based on pcm")
forget to filter out invalid pcm numbers, if there is only one invalid pcm
number, then this issue causes we create eld control for invalid pcm silently,
but when there are more than one invalid pcm numbers, then this issue bring
probe error looks like below dmesg:
"
kernel: [    1.647283] snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops 0xc2967540)
kernel: [    1.651192] snd_hda_intel 0000:00:03.0: Too many HDMI devices
kernel: [    1.651195] snd_hda_intel 0000:00:03.0: Consider building the kernel with CONFIG_SND_DYNAMIC_MINORS=y
kernel: [    1.651197] snd_hda_intel 0000:00:03.0: Too many HDMI devices
kernel: [    1.651199] snd_hda_intel 0000:00:03.0: Consider building the kernel with CONFIG_SND_DYNAMIC_MINORS=y
kernel: [    1.651201] snd_hda_intel 0000:00:03.0: Too many HDMI devices
kernel: [    1.651203] snd_hda_intel 0000:00:03.0: Consider building the kernel with CONFIG_SND_DYNAMIC_MINORS=y
kernel: [    1.651676] snd_hda_intel 0000:00:03.0: control 3:0:0:ELD:0 is already present
kernel: [    1.651787] snd_hda_codec_hdmi: probe of hdaudioC0D0 failed with error -16
"

This patch add invalid pcm number filter before calling hdmi_create_eld_ctl.

Fixes: fb087eaaef ("ALSA: hda - hdmi eld control created based on pcm")
Signed-off-by: Wang YanQing <udknight@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-09-03 16:33:42 +02:00
..
ac97 scripts/spelling.txt: add "swith" pattern and fix typo instances 2017-02-27 18:43:46 -08:00
ali5451 ALSA: ali5451: Constify hw_constraints 2017-06-09 10:42:49 +02:00
asihpi ALSA: asihpi: fix kernel memory disclosure 2016-10-18 14:08:25 +02:00
au88x0 ALSA: au88x0: Constify hw_constraints 2017-06-09 10:42:49 +02:00
aw2 ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
ca0106 ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
cs46xx ALSA: cs46xx: Constify hw_constraints 2017-06-09 10:42:50 +02:00
cs5535audio ALSA: cs5535audio: fix unused warnings on resume/suspend 2016-12-28 16:05:12 +01:00
ctxfi ALSA: ctxfi: Fix the incorrect check of dma_set_mask() call 2017-03-20 10:08:19 +01:00
echoaudio ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
emu10k1 ALSA: emu10k1: Fix forgotten user-copy conversion in init code 2017-08-18 10:59:02 +02:00
hda ALSA: hda: Fix regression of hdmi eld control created based on invalid pcm 2017-09-03 16:33:42 +02:00
ice1712 ALSA: ice1724: Constify hw_constraints 2017-06-09 10:42:53 +02:00
korg1212 ALSA: korg1212: Convert to the new PCM ops 2017-06-02 19:37:58 +02:00
lola ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
lx6464es ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
mixart sound updates for 4.13-rc1 2017-07-06 10:56:51 -07:00
nm256 ALSA: nm256: Constify hw_constraints 2017-06-09 10:42:53 +02:00
oxygen ALSA: oxygen: simply setting of the shortname for Xonar DG cards 2017-03-29 21:14:20 +02:00
pcxhr Merge branch 'topic/for-4.12' into for-next 2017-03-20 12:24:26 +01:00
riptide Annotate hardware config module parameters in sound/pci/ 2017-04-20 12:02:32 +01:00
rme9652 ALSA: rme9652: Constify hw_constraints 2017-06-09 10:42:55 +02:00
trident ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
vx222 ALSA: vx222: Use container_of() 2017-05-15 11:21:05 +02:00
ymfpci sched/wait: Rename wait_queue_t => wait_queue_entry_t 2017-06-20 12:18:27 +02:00
ad1889.c ALSA: ad1889: constify snd_pcm_ops structures 2016-09-02 11:50:24 +02:00
ad1889.h
ak4531_codec.c ALSA: pci: Drop superfluous ifdef CONFIG_PROC_FS 2015-05-29 08:00:06 +02:00
als300.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
als4000.c Annotate hardware config module parameters in sound/pci/ 2017-04-20 12:02:32 +01:00
atiixp.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
atiixp_modem.c ALSA: atiixp: Constify hw_constraints 2017-06-09 10:42:49 +02:00
azt3328.c ALSA: azt3328: Constify hw_constraints 2017-06-09 10:42:49 +02:00
azt3328.h
bt87x.c ALSA: bt87x: Constify hw_constraints 2017-06-09 10:42:50 +02:00
cmipci.c ALSA: cmipci: Constify hw_constraints 2017-06-09 10:42:50 +02:00
cs4281.c ALSA: cs4281: Fix the leftover comment 2017-05-17 07:13:07 +02:00
cs5530.c ASoC: sb16: Simplify snd_sb16dsp_pcm() 2015-01-02 16:28:35 +01:00
ens1370.c ALSA: ens137x: Constify hw_constraints 2017-06-09 10:42:51 +02:00
ens1371.c
es1938.c ALSA: es1938: Constify hw_constraints 2017-06-09 10:42:52 +02:00
es1968.c ALSA: pci: don't opencode IS_REACHABLE() 2016-11-13 21:33:41 +01:00
fm801.c ALSA: fm801: Initialize chip after IRQ handler is registered 2017-07-18 11:55:40 +02:00
intel8x0.c ALSA: intel8x0: Constify hw_constraints 2017-06-09 10:42:53 +02:00
intel8x0m.c ALSA: intel8x0: Constify hw_constraints 2017-06-09 10:42:53 +02:00
Kconfig ALSA: seq: Allow the modular sequencer registration 2017-06-12 08:43:33 +02:00
maestro3.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
Makefile
rme32.c ALSA: rme32: Constify hw_constraints 2017-06-09 10:42:53 +02:00
rme96.c ALSA: rme96: Constify hw_constraints 2017-06-09 10:42:54 +02:00
sis7019.c ALSA: remove deprecated use of pci api 2015-04-16 12:19:52 +02:00
sis7019.h
sonicvibes.c ALSA: sonicvibes: Constify hw_constraints 2017-06-09 10:42:55 +02:00
via82xx.c ALSA: via82xx: Constify hw_constraints 2017-06-09 10:42:56 +02:00
via82xx_modem.c ALSA: via82xx: Constify hw_constraints 2017-06-09 10:42:56 +02:00