]> git.baikalelectronics.ru Git - kernel.git/commit
media: vidtv: fix the tone generator logic
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 19 Nov 2020 10:20:46 +0000 (11:20 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 26 Nov 2020 06:44:38 +0000 (07:44 +0100)
commit817d83b361a8ce51e8dd7bb6c29cb41c9c0e1718
treee6da5d2375a057ef9c8bfeadf462d066bfac09a2
parent32ffae3794ae6db6515a9c96a5df9d994c68dfd1
media: vidtv: fix the tone generator logic

The tone generator logic were repeating the song after the
first silent. There's also a wrong logic at the note
offset calculus, which may create some noise.

Fix it.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/test-drivers/vidtv/vidtv_s302m.c
drivers/media/test-drivers/vidtv/vidtv_s302m.h