]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix lost sound due to stream_pm ops cleanup
authorTakashi Iwai <tiwai@suse.de>
Fri, 29 May 2015 07:43:29 +0000 (09:43 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 May 2015 07:49:01 +0000 (09:49 +0200)
commit9d9e37b1f749d96673296d2d5afc37b4ba215c7e
tree6f3da42b1bf85d4e20223d342b1bf77e23029ea3
parentdbe318a4249f60099dcef785152760b7763865ca
ALSA: hda - Fix lost sound due to stream_pm ops cleanup

The commit [4ae1892e3ec4: ALSA: hda - Set stream_pm ops automatically
by generic parser] resulted in regressions on some Realtek and VIA
codecs because these drivers set patch_ops after calling the generic
parser, thus stream_pm got cleared to NULL again.  I haven't noticed
since I tested with IDT codec.

Restore (partial revert) the stream_pm ops for them to fix the
regression.

Fixes: 4ae1892e3ec4 ('ALSA: hda - Set stream_pm ops automatically by generic parser')
Reported-by: Jeremiah Mahler <jmmahler@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_via.c