summaryrefslogtreecommitdiffstats
path: root/tools/usb
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-01-15 14:44:41 +0100
committerTakashi Iwai <tiwai@suse.de>2013-01-15 14:55:16 +0100
commit6f54c361329dbb67dac9de174e938992651d12d7 (patch)
tree1e43ed773dbdbeb9fda80e5b9f83797f8b82ea40 /tools/usb
parent2e4c4dbed0d320294a49c081b14e58a349ac19ae (diff)
downloadlinux-6f54c361329dbb67dac9de174e938992651d12d7.tar.gz
linux-6f54c361329dbb67dac9de174e938992651d12d7.tar.bz2
linux-6f54c361329dbb67dac9de174e938992651d12d7.zip
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>
Diffstat (limited to 'tools/usb')
0 files changed, 0 insertions, 0 deletions