- Backport upstream fixes: UCM updates, Broadwell UCM support, namehint fixes, fix faulty assert in PCM plugins, etc: 0001-ucm-document-some-standard-values.patch 0002-conf-ucm-broadwell-rt286-add-ucm-config.patch 0003-conf-ucm-Add-Makefile.am-for-broadwell-rt286-ucm-con.patch 0004-ucm-reformat-snd_use_case_get-doc.patch 0005-ucm-improve-jack-configuration-documentation.patch 0006-USB-audio-Sound-Blaster-HD-iec958-is-on-device-1.patch 0007-Sync-include-sound-asound.h-with-4.1-kernel.patch 0008-conf-ucm-broadwell-rt286-change-to-use-the-correct-j.patch 0009-namehint-Fix-invalid-list-access-in-snd_device_name_.patch 0010-namehint-Fix-the-listing-without-device-number.patch 0011-namehint-Fix-bad-free-with-invalid-iface-name.patch 0012-Allow-hint-for-ctl-hwdep-timer-and-seq.patch 0013-conf-Add-hint-descriptions-to-ctl-hwdep-seq-and-time.patch 0014-conf-ucm-broadwell-rt286-change-to-set-capture-volum.patch 0015-ucm-allow-multiple-devices-in-JackHWMute.patch 0016-pcm-Remove-assert-from-snd_pcm_hw_params_slave.patch OBS-URL: https://build.opensuse.org/request/show/308371 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=181
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From c8667e3db4a47b0379562341317f3e868a7b2d51 Mon Sep 17 00:00:00 2001
|
|
From: Takashi Iwai <tiwai@suse.de>
|
|
Date: Thu, 30 Apr 2015 14:32:49 +0200
|
|
Subject: [PATCH 10/16] namehint: Fix the listing without device number
|
|
|
|
The current code of snd_device_name_hint() has a bug when listing up
|
|
devices without the device index (e.g. ctl). Because it assigns the
|
|
default device index 0 unconditionally and it has a check at the later
|
|
point to filter entries with dev >= 0, it ended up with empty
|
|
outputs.
|
|
|
|
The fix is simply to remove the bogus assignment of dev = 0.
|
|
|
|
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
|
---
|
|
src/control/namehint.c | 1 -
|
|
1 file changed, 1 deletion(-)
|
|
|
|
diff --git a/src/control/namehint.c b/src/control/namehint.c
|
|
index 66de634d3550..6c04143a185c 100644
|
|
--- a/src/control/namehint.c
|
|
+++ b/src/control/namehint.c
|
|
@@ -272,7 +272,6 @@ static int try_config(snd_config_t *config,
|
|
if (snd_config_search(cfg1, "type", &cfg) >= 0 &&
|
|
snd_config_get_string(cfg, &str) >= 0 &&
|
|
strcmp(str, "hw") == 0) {
|
|
- dev = 0;
|
|
list->device_input = -1;
|
|
list->device_output = -1;
|
|
if (snd_config_search(cfg1, "device", &cfg) >= 0) {
|
|
--
|
|
2.4.1
|
|
|