]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Don't actually write registers for caps overwrites
authorTakashi Iwai <tiwai@suse.de>
Wed, 10 Jun 2015 08:27:00 +0000 (10:27 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 10 Jun 2015 08:31:10 +0000 (10:31 +0200)
commit01bd1e5dd3d70ea08064db8b0bbf424b7007d0e0
tree44f4f94a3a0f9609b74c7e1c6b3b92a9a60a3fb9
parent78b84064f9fc644c949e736ea3243175e99eacf0
ALSA: hda - Don't actually write registers for caps overwrites

Along with the transition to regmap for managing the cached parameter
reads, the caps overwrite was also moved to regmap cache.  The cache
change itself works, but it still tries to write the non-existing verb
(the HDA parameter is read-only) wrongly.  It's harmless in most
cases, but some chips are picky and may result in the codec
communication stall.

This patch avoids it just by adding the missing flag check in
reg_write ops.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_regmap.c