WSL2-Linux-Kernel/sound/pci/hda
Takashi Iwai 6f54c36132 ALSA: hda/hdmi - Work around "alsactl restore" errors
When "alsactl restore" is performed on HDMI codecs, it tries to
restore the channel map value since the channel map controls are
writable.  But hdmi_chmap_ctl_put() returns -EBADFD when no PCM stream
is assigned yet, and this results in an error message from alsactl.
Although the error is harmless, it's certainly ugly and can be
regarded as a regression.

As a workaround, this patch changes the return code in such a case to
be zero for making others happy.  (A slight excuse is: when the chmap
is changed through the proper alsa-lib API, the PCM status is checked
there anyway, so we don't have to be too strict in the kernel side.)

Cc: <stable@vger.kernel.org> [v3.7+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-15 14:55:16 +01:00
..
Kconfig ALSA: sound/pci/hda: remove CONFIG_EXPERIMENTAL 2012-10-25 00:17:20 +02:00
Makefile ALSA: hda - Add tracepoints to HD-audio controller driver 2012-10-30 10:39:59 +01:00
hda_auto_parser.c ALSA: hda - Use standard sort function in hda_auto_parser.c 2012-11-30 10:54:45 +01:00
hda_auto_parser.h ALSA: hda - Fix memory leaks in Realtek & Conexant codec parsers 2012-06-26 14:56:20 +02:00
hda_beep.c ALSA: hda - Fix 'Beep Playback Switch' with no underlying mute switch 2012-08-14 10:22:31 +02:00
hda_beep.h ALSA: hda - Get rid of superfluous beep->mode field 2012-07-03 18:31:36 +02:00
hda_codec.c ALSA: hda - Switch "On" and "Off" for "Mute-LED Mode" kcontrol 2013-01-03 14:22:34 +01:00
hda_codec.h Merge branch 'for-linus' into for-next 2012-11-19 21:25:27 +01:00
hda_eld.c ALSA: hda - hide HDMI/ELD printks unless snd.debug=2 2012-04-10 14:53:55 +02:00
hda_generic.c ALSA: hda - Clean up CONFIG_SND_HDA_POWER_SAVE 2012-08-30 07:50:13 -07:00
hda_hwdep.c ALSA: Remove the rest of __devinit* in comments 2012-12-07 07:41:56 +01:00
hda_intel.c ALSA: hda - Disable runtime D3 for Intel CPT & co 2013-01-09 11:00:08 +01:00
hda_intel_trace.h ALSA: hda - Add tracepoints to HD-audio controller driver 2012-10-30 10:39:59 +01:00
hda_jack.c ALSA: hda - Call snd_array_init() early and only once 2012-11-28 09:03:39 +01:00
hda_jack.h ALSA: hda - Allow jack state to depend on another jack 2012-11-19 19:49:58 +01:00
hda_local.h ALSA: hda - Add a helper function for simple enum kcontrols 2012-11-30 18:34:38 +01:00
hda_proc.c Merge branch 'for-linus' into for-next 2012-08-20 22:14:26 +02:00
hda_trace.h ALSA: hda - Clean up CONFIG_SND_HDA_POWER_SAVE 2012-08-30 07:50:13 -07:00
patch_analog.c ALSA: hda - Call snd_array_init() early and only once 2012-11-28 09:03:39 +01:00
patch_ca0110.c ALSA: hda - Move BIOS pin-parser code to hda_auto_parser.c 2012-05-08 18:01:33 +02:00
patch_ca0132.c ALSA: hda - don't create dysfunctional mixer controls for ca0132 2012-08-20 11:33:23 +02:00
patch_cirrus.c ALSA: hda - Add a fixup for internal mic on MacBook Pro 8,1 2012-11-23 08:37:32 +01:00
patch_cmedia.c ALSA: hda - Move BIOS pin-parser code to hda_auto_parser.c 2012-05-08 18:01:33 +02:00
patch_conexant.c Revert "ALSA: hda - Shut up pins at power-saving mode with Conexnat codecs" 2013-01-09 11:03:38 +01:00
patch_hdmi.c ALSA: hda/hdmi - Work around "alsactl restore" errors 2013-01-15 14:55:16 +01:00
patch_realtek.c ALSA: hda - Add support of new codec ALC284 2013-01-10 10:27:46 +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 - Fix pin configuration of HP Pavilion dv7 2012-12-13 14:36:09 +01:00
patch_via.c ALSA: HDA: VIA: Add support for codec VT1808. 2012-12-10 12:05:16 +01:00