aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/core/seq/seq_compat.c2
-rw-r--r--sound/pci/hda/dell_wmi_helper.c2
-rw-r--r--sound/pci/hda/thinkpad_helper.c2
-rw-r--r--sound/usb/line6/driver.c4
-rw-r--r--sound/usb/line6/podhd.c3
5 files changed, 7 insertions, 6 deletions
diff --git a/sound/core/seq/seq_compat.c b/sound/core/seq/seq_compat.c
index fce5697e4261..8c3507216676 100644
--- a/sound/core/seq/seq_compat.c
+++ b/sound/core/seq/seq_compat.c
@@ -58,7 +58,7 @@ static int snd_seq_call_port_info_ioctl(struct snd_seq_client *client, unsigned
58 goto error; 58 goto error;
59 data->kernel = NULL; 59 data->kernel = NULL;
60 60
61 err = snd_seq_kernel_client_ctl(client->number, cmd, &data); 61 err = snd_seq_kernel_client_ctl(client->number, cmd, data);
62 if (err < 0) 62 if (err < 0)
63 goto error; 63 goto error;
64 64
diff --git a/sound/pci/hda/dell_wmi_helper.c b/sound/pci/hda/dell_wmi_helper.c
index 9c22f95838ef..19d41da79f93 100644
--- a/sound/pci/hda/dell_wmi_helper.c
+++ b/sound/pci/hda/dell_wmi_helper.c
@@ -49,7 +49,7 @@ static void alc_fixup_dell_wmi(struct hda_codec *codec,
49 removefunc = true; 49 removefunc = true;
50 if (dell_led_set_func(DELL_LED_MICMUTE, false) >= 0) { 50 if (dell_led_set_func(DELL_LED_MICMUTE, false) >= 0) {
51 dell_led_value = 0; 51 dell_led_value = 0;
52 if (spec->gen.num_adc_nids > 1) 52 if (spec->gen.num_adc_nids > 1 && !spec->gen.dyn_adc_switch)
53 codec_dbg(codec, "Skipping micmute LED control due to several ADCs"); 53 codec_dbg(codec, "Skipping micmute LED control due to several ADCs");
54 else { 54 else {
55 dell_old_cap_hook = spec->gen.cap_sync_hook; 55 dell_old_cap_hook = spec->gen.cap_sync_hook;
diff --git a/sound/pci/hda/thinkpad_helper.c b/sound/pci/hda/thinkpad_helper.c
index f0955fd7a2e7..6a23302297c9 100644
--- a/sound/pci/hda/thinkpad_helper.c
+++ b/sound/pci/hda/thinkpad_helper.c
@@ -62,7 +62,7 @@ static void hda_fixup_thinkpad_acpi(struct hda_codec *codec,
62 removefunc = false; 62 removefunc = false;
63 } 63 }
64 if (led_set_func(TPACPI_LED_MICMUTE, false) >= 0) { 64 if (led_set_func(TPACPI_LED_MICMUTE, false) >= 0) {
65 if (spec->num_adc_nids > 1) 65 if (spec->num_adc_nids > 1 && !spec->dyn_adc_switch)
66 codec_dbg(codec, 66 codec_dbg(codec,
67 "Skipping micmute LED control due to several ADCs"); 67 "Skipping micmute LED control due to several ADCs");
68 else { 68 else {
diff --git a/sound/usb/line6/driver.c b/sound/usb/line6/driver.c
index 14e587e70655..90009c0b3a92 100644
--- a/sound/usb/line6/driver.c
+++ b/sound/usb/line6/driver.c
@@ -604,8 +604,8 @@ line6_hwdep_write(struct snd_hwdep *hwdep, const char __user *data, long count,
604 } 604 }
605 605
606 data_copy = memdup_user(data, count); 606 data_copy = memdup_user(data, count);
607 if (IS_ERR(ERR_PTR)) 607 if (IS_ERR(data_copy))
608 return -ENOMEM; 608 return PTR_ERR(data_copy);
609 609
610 rv = line6_send_raw_message(line6, data_copy, count); 610 rv = line6_send_raw_message(line6, data_copy, count);
611 611
diff --git a/sound/usb/line6/podhd.c b/sound/usb/line6/podhd.c
index 9352a44ae6e4..49cd4a65e390 100644
--- a/sound/usb/line6/podhd.c
+++ b/sound/usb/line6/podhd.c
@@ -317,7 +317,8 @@ static int podhd_init(struct usb_line6 *line6,
317 if (pod->line6.properties->capabilities & LINE6_CAP_PCM) { 317 if (pod->line6.properties->capabilities & LINE6_CAP_PCM) {
318 /* initialize PCM subsystem: */ 318 /* initialize PCM subsystem: */
319 err = line6_init_pcm(line6, 319 err = line6_init_pcm(line6,
320 (id->driver_info == LINE6_PODX3) ? &podx3_pcm_properties : 320 (id->driver_info == LINE6_PODX3 ||
321 id->driver_info == LINE6_PODX3LIVE) ? &podx3_pcm_properties :
321 &podhd_pcm_properties); 322 &podhd_pcm_properties);
322 if (err < 0) 323 if (err < 0)
323 return err; 324 return err;