au8522: bug-fix: enable modulation AFTER tune (instead of before tuning)
authorMichael Krufky <mkrufky@kernellabs.com>
Mon, 12 Mar 2012 20:07:22 +0000 (17:07 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 17:32:09 +0000 (10:32 -0700)
commit3c55383f313b3c28a074f5881272c800f0d3ee47
treebd53c7af74f09dbcf49ce9b80b971ac2e722bfde
parent5af11ec1e3215db83ee131fd70663ad720b91708
au8522: bug-fix: enable modulation AFTER tune (instead of before tuning)

commit ef3d2dc366c8c32d58dbbf9898cfd4f853ff8fe0 upstream.

The au8522 driver programs the tuner after programming the demodulator,
but the tuner should be programmed first. This patch fixes this behavior.

EDIT: Apparantly Devin created a similar patch some time ago, but hasn't
submitted it for merge.  I never saw his patch, but I thank him anyhow
for his efforts.  In addition, Devin pointed out a flaw in my patch:

This newly generated patch takes Devin's comments into account.

Thanks-to: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/dvb/frontends/au8522_dig.c