提交 010b876a 编写于 作者: M Maciej S. Szmigiero 提交者: Mauro Carvalho Chehab

media: tuner-simple: allow setting mono radio mode

For some types of tuners (Philips FMD1216ME(X) MK3 currently) we know that
letting TDA9887 output port 1 remain high (inactive) will switch FM radio
to mono mode.
Let's make use of this functionality - nothing changes for the default
stereo radio mode.

Tested on a Medion 95700 board which has a FMD1216ME tuner.
Signed-off-by: NMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
上级 af16d0a1
...@@ -670,6 +670,7 @@ static int simple_set_radio_freq(struct dvb_frontend *fe, ...@@ -670,6 +670,7 @@ static int simple_set_radio_freq(struct dvb_frontend *fe,
int rc, j; int rc, j;
struct tuner_params *t_params; struct tuner_params *t_params;
unsigned int freq = params->frequency; unsigned int freq = params->frequency;
bool mono = params->audmode == V4L2_TUNER_MODE_MONO;
tun = priv->tun; tun = priv->tun;
...@@ -736,8 +737,8 @@ static int simple_set_radio_freq(struct dvb_frontend *fe, ...@@ -736,8 +737,8 @@ static int simple_set_radio_freq(struct dvb_frontend *fe,
config |= TDA9887_PORT2_ACTIVE; config |= TDA9887_PORT2_ACTIVE;
if (t_params->intercarrier_mode) if (t_params->intercarrier_mode)
config |= TDA9887_INTERCARRIER; config |= TDA9887_INTERCARRIER;
/* if (t_params->port1_set_for_fm_mono) if (t_params->port1_set_for_fm_mono && mono)
config &= ~TDA9887_PORT1_ACTIVE;*/ config &= ~TDA9887_PORT1_ACTIVE;
if (t_params->fm_gain_normal) if (t_params->fm_gain_normal)
config |= TDA9887_GAIN_NORMAL; config |= TDA9887_GAIN_NORMAL;
if (t_params->radio_if == 2) if (t_params->radio_if == 2)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册