提交 4ca28661 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[media] radio-rtrack2: fix mute bug

Setting the frequency would unmute the card. Fixed the mute handling in the
s_frequency code.
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 8b21eb17
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
* *
* Converted to the radio-isa framework by Hans Verkuil <hans.verkuil@cisco.com> * Converted to the radio-isa framework by Hans Verkuil <hans.verkuil@cisco.com>
* Converted to V4L2 API by Mauro Carvalho Chehab <mchehab@infradead.org> * Converted to V4L2 API by Mauro Carvalho Chehab <mchehab@infradead.org>
*
* Fully tested with actual hardware and the v4l2-compliance tool.
*/ */
#include <linux/module.h> /* Modules */ #include <linux/module.h> /* Modules */
...@@ -81,8 +83,7 @@ static int rtrack2_s_frequency(struct radio_isa_card *isa, u32 freq) ...@@ -81,8 +83,7 @@ static int rtrack2_s_frequency(struct radio_isa_card *isa, u32 freq)
zero(isa); zero(isa);
outb_p(0xc8, isa->io); outb_p(0xc8, isa->io);
if (!v4l2_ctrl_g_ctrl(isa->mute)) outb_p(v4l2_ctrl_g_ctrl(isa->mute), isa->io);
outb_p(0, isa->io);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册