]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: bcm2835-audio: Code refactoring of vchiq accessor codes
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Sep 2018 15:58:48 +0000 (17:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 09:15:00 +0000 (11:15 +0200)
commit0307363a4fbf301d0b25df6aa7827c30f11e220d
tree6831cc9e4bc0c74c7ba2812f3b7e3acbd982164a
parentf5a3db42e8a6a9efdcafcf6d8c046b34663c97c6
staging: bcm2835-audio: Code refactoring of vchiq accessor codes

This is a cleanup and code refactoring in bcm2835-vchiq.c.

The major code changes are to provide local helpers for easier use of
lock / unlock, and message passing with/without response wait.  This
allows us to reduce lots of open codes.

Also, the max packet is set at opening the stream, not at each time
when the write gets called.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c