]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] xc5000: fix incorrect debug printnk
authorDmitri Belimov <d.belimov@gmail.com>
Wed, 13 Mar 2013 03:23:36 +0000 (00:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Mar 2013 19:46:05 +0000 (16:46 -0300)
commit01ae72866d31de9291039b6030d021c004f5bfed
tree1cf7c9e2ede58fa609cd191250cc624c11339075
parentb3d9a15d9af9bba65ac7cd7c196268046470643d
[media] xc5000: fix incorrect debug printnk

I found very small bug in xc5000 source. When set option debug=1 and
listen a radio we see in dmesg xc5000: xc_SetTVStandard()
Standard = M/N-NTSC/PAL-BTSC at all times. However, it should be, instead
"FM Radio-INPUT1_MONO".

That happens because xc5000_set_radio_freq() gets the correct value for
VideoMode and AudioMode for radio and calls xc_SetTVStandard() where name
of standard comes from the incorrect place priv->video_standard.

This incorrect debug message makes debugging  a little difficult.

Signed-off-by: Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/tuners/xc5000.c