]> git.baikalelectronics.ru Git - kernel.git/commit
[media] tw686x: audio: Prevent hw param changes while busy
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Sat, 4 Jun 2016 23:47:20 +0000 (20:47 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 28 Jun 2016 10:53:05 +0000 (07:53 -0300)
commita4707f6a8c901ec02f6d1db839624f76152b6c4a
tree984d5a8f3129fb11f701c0ceb62ceac7991f1b7e
parentd111434bfefaee7dda15a05a055c226a96d13f90
[media] tw686x: audio: Prevent hw param changes while busy

Audio hw params are shared across all DMA channels,
so if the user changes any of these while any DMA channel is
enabled, it will impact the enabled channels, potentially causing
serious instability issues.

This commit avoids such situation, by preventing any hw param
change (on any DMA channel) if any other DMA audio channel is capturing.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/tw686x/tw686x-audio.c
drivers/media/pci/tw686x/tw686x.h