Commit Graph

649497 Commits

Author SHA1 Message Date
Luke Go
bcf0b9a19b Partial apply: audio: coveriy fix [1/1]
Change-Id: I1ddf7c7181575217f2f5c0b81a6de3f438e1c923
2020-06-29 11:45:39 +09:00
Cheng Tong
58e194a7f8 audio: tl1: invalidate dapm line-out driver widget [1/1]
PD#SWPL-18805

Problem:
there is noise when analog AMP on idle state

Solution:
invalidate dapm line-out driver widget

Verify:
x301_t962x2

Change-Id: I448273229d1ceb9bdaf7ee8d8aeade5893f6de8d
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
2020-06-29 11:45:38 +09:00
Zhe Wang
413b2d71a5 audio: set tas5805 default volume to 10dB [1/1]
PD#SWPL-15741

Problem:
Ab301 volume level is too low

Solution:
set tas5805 default volume to 10dB

Verify:
AB301

Change-Id: Ic5658d1c66db624fd87f8b6ce44ffae5ea6508e3
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2020-06-29 11:45:38 +09:00
Shuai Li
90b637d590 audio: fix might_sleep warning at bootup [1/1]
PD#SWPL-16123

Problem:
might_sleep() is triggered by regmap_read().

[    3.106894@0] Workqueue: events tl1_acodec_release_fast_mode_work_func
[    3.106903@0] [bc059af4+  16][<c020e3a8>] show_stack+0x20/0x24
[    3.106910@0] [bc059b1c+  40][<c05dff94>] dump_stack+0xb8/0xf4
[    3.106917@0] [bc059b44+  40][<c0258138>] ___might_sleep+0x1c8/0x208
[    3.106922@0] [bc059b6c+  40][<c02581ec>] __might_sleep+0x74/0xac
[    3.106928@0] [bc059bb4+  72][<c0393a80>] kmem_cache_alloc_trace+0x12c/0x2c0
[    3.106935@0] [bc059bfc+  72][<c06bd03c>] regcache_rbtree_write+0x2dc/0x4f0
[    3.106941@0] [bc059c1c+  32][<c06bbbd8>] regcache_write+0x64/0x6c
[    3.106945@0] [bc059c44+  40][<c06b9260>] _regmap_write+0x144/0x16c
[    3.106948@0] [bc059c64+  32][<c06bab4c>] regmap_write+0x4c/0x6c
[    3.106953@0] [bc059c74+  16][<c0c79088>] snd_soc_component_write+0x28/0x48
[    3.106958@0] [bc059c84+  16][<c0c790c4>] snd_soc_write+0x1c/0x20
[    3.106962@0] [bc059c9c+  24][<c0c7c0b0>] tl1_acodec_start_up+0x24/0x44
[    3.106967@0] [bc059cbc+  32][<c0c7c1b8>]
tl1_acodec_release_fast_mode_work_func+0x54/0xe4
[    3.106973@0] [bc059cfc+  64][<c0245dc8>] process_one_work+0x200/0x624
[    3.106977@0] [bc059d3c+  64][<c0246dc4>] worker_thread+0x58/0x5c4
[    3.106982@0] [bc059d94+  88][<c024c5c0>] kthread+0x128/0x144
[    3.106987@0] [00000000+   0][<c020885c>] ret_from_fork+0x14/0x38

Solution:
This is a mmio regmap constrain using spinlock_irq to protect the
critical read and write.
But if the default reg cache is not allocated, the read routine will
malloc() buffer which is non-atomic. That is the root cause of this warning.
So we add num_reg_defaults_raw to tell regmap to malloc the buffer at
initializing stage.

Verify:
TL1.

Change-Id: I42f87fa89bbe99762ada36337b5ed6565b06b891
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2020-06-29 11:45:38 +09:00
Shuai Li
7e6ad79c59 audio: optimize TL1 codec init sequence [1/1]
PD#TV-9458

Problem:
Audio codec output has a ditch.

Solution:
Optimize TL1 codec init sequence [1/1]

Verify:
TL1.

Change-Id: Ib494895b96cb0083d0bdaa9ffa23c67bf57f7aa7
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2020-06-29 11:45:38 +09:00
Lei Qian
d14d77bafb audio: merge from mainline
PD#SWPL-15312

Change-Id: I827a1db0d6c948682812ea04a6db2c7b5757dbfb
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2020-06-29 11:45:38 +09:00
Lei Qian
081b08ffbb audio: auge: add loopback driver [1/1]
PD#SWPL-7240

Problem:
limit of current loopback
add loopback b for tl1
add tdmin_lb

Solution:
1. merge sm1, tm2 audio bringup code
2. optimize loopback driver

Verify:
s400, u200, x301, ac200, ab301

Change-Id: I0b01208fe8a213766e5563fa91b66e93c748d843
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2020-06-29 11:45:38 +09:00
Zhe Wang
b1a7ff5adb audio: add 10ms sleep before pdn enable [1/1]
PD#SWPL-7680

Problem:
mdelay will pend the system

Solution:
change mdelay to usleep_range

Verify:
HW verify

Change-Id: I8452dc7b1056378dbc6b743fc43316eccbf525a5
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>

Conflicts:
	sound/soc/codecs/amlogic/tas5805.c
2020-06-29 11:45:38 +09:00
Zhe Wang
72fece0508 audio: add 10ms delay before pdn enable [1/1]
PD#SWPL-7680

Problem:
the pwn signal is self excitable

Solution:
1)add 10ms delay before pdn enable
2)set default clk for extern codec

Verify:
HW verify

Change-Id: I031b20851ee1eeb65215075fc8abe783ceddf42b
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>

Conflicts:
	sound/soc/amlogic/auge/tdm.c
2020-06-29 11:45:38 +09:00
Shuai Li
3c34ba0cbf audio: disable tl1 acodec dac dapm to depop [1/1]
PD#TV-3933

Problem:
Tl1 acodec has pop sound when first sound appear.

Solution:
Disable the DAPM which disable/enable every time
start/stop the audio stream.

Verify:
Tl1 X301.

Change-Id: Iaaf7da125de513bd8297f6c6e41af0a42c9d25bd
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2020-06-29 11:45:38 +09:00
Shuyu Li
97f3849899 audio: codec: The tl1_acodec_probe takes 340ms time [1/1]
PD#SWPL-4345

Problem:
The tl1_acodec_probe operation takes 340ms time

Solution:
Using workqueue to replace the msleep func

Verify:
verify on T962x2_X309 board

Change-Id: I5316beb8a0e94ae022c948ec112b6fb219050212
Signed-off-by: Shuyu Li <shuyu.li@amlogic.com>
2020-06-29 11:45:38 +09:00
Lei Qian
ec9f228a58 Revert "audio: t9015 DACL_EN and DACR_EN only enable once [1/1]"
This reverts commit e26beb5c5ac95ea0e084a7648ee39c3f4f355e91.
2020-06-29 11:45:38 +09:00
jian.zhou
9830fd269d audio: t9015 DACL_EN and DACR_EN only enable once [1/1]
PD#SWPL-13728

Problem:
when enable DACL_EN and DACR_EN, it will has pop sound

Solution:
Only enable  DACL_EN and DACR_EN once at probe function

Verify:
U212

Change-Id: I0f26977ad5d9b86df264069f8732ddb44615cc09
Signed-off-by: jian.zhou <jian.zhou@amlogic.com>
2020-06-29 11:45:38 +09:00
jiejing.wang
85b2089b6a license: add license for audio source file [1/2]
PD#SWPL-11716

Problem:
some audio source has no license

Solution:
add license for audio source file

Verify:
verify by locally

Change-Id: I85e7a27a724f1d255e38f4a878475b38abc1dfd4
Signed-off-by: jiejing.wang <jiejing.wang@amlogic.com>
2020-06-29 11:45:37 +09:00
Zhe Wang
fe4c05d746 audio: set master/channel default volume higher [1/1]
PD#SWPL-10609

Problem:
spk sound is too low

Solution:
set master/channel default volume higher

Verify:
r341

Change-Id: Id2928a7d0fdfbb745d272c82a7600a6f4fb9b7e6
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2020-06-29 11:45:37 +09:00
Zhe Wang
06d5eec419 audio: fixed cvbs audio pop noise on g12a/b [1/1]
PD#OTT-3760, PD#SWPL-8309

Problem:
startup ott, cvbs out with pop noise

Solution:
Set gpio init low

Verify:
verified by franklin

Change-Id: Ieb33e72473055fad69bc8e9a68ed0b0552e9f029
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2020-06-29 11:45:37 +09:00
Zhe Wang
dae68bb8eb audio: enable clk before extern codec init when system resume [1/1]
PD#TV-6005

Problem:
change time sequence for extern AMP

Solution:
1) enable tdm clk before codec init, when system resume

Verify:
test on X301

Change-Id: I3d6411cd32fbc3496bed942c72b7bec408d66959
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2020-06-29 11:45:37 +09:00
fahui.feng
487502b4bc audio: add usb karaoke driver [1/1]
PD#OTT-1624

Problem:
doesn't support Karaoke

Solution:
1) add usb karaoke driver
2) Default karaoke is disable. if enable it,
   add "CONFIG_AMLOGIC_SND_USB_CAPTURE_DATA=y" in defconfig file.

Verify:
p212

Change-Id: I9f00873da930f9d5924fc752133ed51a4ae93636
Signed-off-by: fahui.feng <fahui.feng@amlogic.com>
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2020-06-29 11:45:37 +09:00
nengwen.chen
908e9b17f3 atv_demod: optimize calls with other modules [1/1]
PD#TV-9100

Problem:
1.optimize calls with other modules.

Solution:
1.optimize calls with other modules.
2.add ext file interacts with other modules.
3.add sync to prevent NULL pointer crashes.

Verify:
Verified by x301

Change-Id: Id1930400454b020616e0c669cae5f473f498b6de
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:37 +09:00
nengwen.chen
70882c6b4f atv_demod: fix secam-l/l' recognition and audio output [1/4]
PD#TV-7982

Problem:
fix secam-l/l' recognition and audio output.

Solution:
1.fix secam-l/l' recognition and audio output.
2.atv demod version: V2.13.

Verify:
Verified by x301

Change-Id: Ie09b635f132397b3c438aa3ff62f2ef915eb3462
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:37 +09:00
nengwen.chen
b95f864550 atv_demod: fixed null pointer when atv channel searching [1/1]
PD#TV-8777

Problem:
fixed null pointer when atv chennel searching.

Solution:
1.fixed null pointer when atv channel searching.

Verify:
Verified by x301 and t972.

Change-Id: I3622d42f6a8dee634c601660b43e9dd9ba93c29d
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:37 +09:00
nengwen.chen
5b051d1646 atv_demod: fix non-standard signal [1/1]
PD#TV-7783

Problem:
fix non-standard signal.

Solution:
1.fix non-standard signal when channel scanning and playing.
2.disable demod afc when enable non standard.

Verify:
Verified by x301

Change-Id: I177e6eb5388e554e3166a65e23e3b7bdefac3e97
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:37 +09:00
Evoke Zhang
3a293ede3e tvafe: add tvafe_mode to separate avt playing or search [1/1]
PD#TV-8035

Problem:
snowflake display is not stable when no signal

Solution:
separate avt playing or search

Verify:
x301

Change-Id: I4364d4af533704074a74e7d3b9522df461233f48
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2020-06-29 11:45:37 +09:00
nengwen.chen
8d4026515c atv_demod: fix synchronization problem when get frontend [1/1]
PD#TV-8131

Problem:
fix synchronization problem when get frontend.

Solution:
1.fix synchronization problem when get frontend.

Verify:
Verified by x301

Change-Id: Ic0580a83448fe75529615ffa08cb526e205ef9a8
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:37 +09:00
nengwen.chen
acefbfdd5b atv_demod: fix the CVBS output level [1/1]
PD#SWPL-11581, PD#TV-5622, PD#TV-8087, PD#TV-8088, PD#TV-8089

Problem:
fix the CVBS output level.

Solution:
1.fix peak level(1Vp-p).
2.fix sync head level(300+/-10%mv).
3.fix white level(700+/-10%mv).

Verify:
Verified by x301.

Change-Id: Ie4bd6ed0bb4d6db4443acae49ef98f1f4398d973
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:36 +09:00
nengwen.chen
e71c50ecda atv_demod: after afc adjusts freq and stable, sync to settings to get freq [1/1]
PD#TV-7462

Problem:
after afc adjusts freq and stable, sync to settings to get freq.

Solution:
1.after afc adjusts freq and stable, sync to settings to get freq.

Verify:
Verified by x301

Change-Id: Id78a7f974345fd428f9bb185c36fcbe7b93f4ac2
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:36 +09:00
nengwen.chen
f862a26dfe atv_demod: add nicam detection when current signal fm-mono change to nicam [1/1]
PD#TV-7335

Problem:
add nicam detection when current signal fm-mono change to nicam.

Solution:
1.add nicam detection when current signal fm-mono change to nicam.

Verify:
Verified by x301

Change-Id: If2e35d018d2df803c5458cc93974352b06e90a11
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:36 +09:00
nengwen.chen
733fe98e69 atv_demod: fix atv audio control interface. [1/1]
PD#SWPL-9934

Problem:
1.audio control calls crash on a non-tl1 platform.
1.fix atv audio control interface.

Solution:
1.fix atv audio control interface.

Verify:
Verified by r311 and x301.

Change-Id: Ib6d58cec96e7d57e1bfd8ae18524dcb5517c317e
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:36 +09:00
nengwen.chen
34fa1acab7 atv_demod: fix commit "c12f8957d441e99d3c037dfe1f36029f55421fe3". [1/1]
PD#TV-6044, PD#TV-6047

Problem:
1.fix commit "c12f8957d441e99d3c037dfe1f36029f55421fe3".

Solution:
1.fix commit "c12f8957d441e99d3c037dfe1f36029f55421fe3".

Verify:
Verified by x301

Change-Id: I8e8632e608b8e0ddd8757409af6c5509bafd801d
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:36 +09:00
nengwen.chen
48782cae1e atv_demod: fix atv non standard signal audio handle [1/1]
PD#TV-6044, PD#TV-6047

Problem:
ATV sound output has noise when input non standard signal.

Solution:
1.fix atv non standard signal audio handle.
2.remove atv audio source selection in audio module.
3.atv demod selects audio source according to signal.
4.atv demod version: V2.12.

Verify:
Verified by x301

Change-Id: Ie0fce492f1ce7f5a5866d8674c95c97ee32452c0
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:36 +09:00
nengwen.chen
2ad71349f2 atv_demod: enable the nicam switch [1/1]
PD#TV-6144

Problem:
enable the nicam switch.

Solution:
1.enable the nicam switch.

Verify:
Verified by x301

Change-Id: I3961233c6093b372692098ddbb24737063ad59de
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:36 +09:00
nengwen.chen
9315856b63 atv_demod: optimize set frontend time [1/1]
PD#SWPL-8072

Problem:
optimize set frontend time.

Solution:
1.To optimize the atv demod init.
2.Turn off nicam/btsc/A2 recognition by default.
3.atv demod version: V2.11.

Verify:
Verified by x301

Change-Id: I4f894626da18fef61ce8283260e1d75adb0e3640
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:36 +09:00
nengwen.chen
93a7749565 atv_demod: tm2: add audio gain and interrupt. [1/1]
PD#SWPL-5661, PD#SWPL-5659

Problem:
1.add gain register to control the L and R channel audio gain.
2.add atv interrupt for signal lock and unlock.

Solution:
1.add gain register to control the L and R channel audio gain.
2.add atv interrupt for signal lock and unlock.

Verify:
verified by ab301 and ab311.

Change-Id: I8a7cbe538939dd9418e27165d4c83a8f473f119b
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>

Conflicts:
	arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts
2020-06-29 11:45:36 +09:00
nengwen.chen
4b7e9a3be9 atv_demod: fix frequency closer when channel searching [1/1]
PD#TV-6452, PD#TV-6643, PD#TV-6144

Problem:
fix frequency closer when channel searching.

Solution:
1.fix frequency closer when channel searching.
2.Frequency offset cause errors in CVBS or audio recognition.

Verify:
Verified by x301

Change-Id: Ieab13a5b5d8d901cfc61ea09e5e47eb9e938bf34
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:36 +09:00
nengwen.chen
12d93f47c2 atv_demod: enable the nicam switch [1/1]
PD#TV-6144

Problem:
enable the nicam switch.

Solution:
1.enable the nicam switch.

Verify:
Verified by x301

Change-Id: I3961233c6093b372692098ddbb24737063ad59de
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:36 +09:00
nengwen.chen
269ac650f3 atv_demod: fix a2/nicam/mono sound output power [1/1]
PD#TV-6140

Problem:
fix a2/nicam/mono sound output power.

Solution:
1.fix a2/nicam/mono sound output power.

Verify:
Verified by x301

Change-Id: I0dc192cd841d2b1c4d25d2d6c5569a69575ce735
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:36 +09:00
nengwen.chen
ed65e5ad65 atv_demod: fix nicam audio [1/1]
PD#TV-5660

Problem:
fix nicam audio.

Solution:
1.fix nicam audio.

Verify:
Verified by x301

Change-Id: I35d508d1772b9c37ad71a62c2844e1776e81fd09
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:36 +09:00
nengwen.chen
7ecef0f642 atv_demod: optimize set frontend time [1/1]
PD#SWPL-8072

Problem:
optimize set frontend time.

Solution:
1.To optimize the atv demod init.
2.Turn off nicam/btsc/A2 recognition by default.
3.atv demod version: V2.11.

Verify:
Verified by x301

Change-Id: I4f894626da18fef61ce8283260e1d75adb0e3640
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:35 +09:00
nengwen.chen
cb0e99b47d atv_demod: tm2: atv demod basic functin bringup [1/1]
PD#SWPL-6731

Problem:
atv demod basic functin bringup.

Solution:
atv demod basic functin bringup.

Verify:
Verified by ab301 and ab309.

Change-Id: Ie2d92aad9d2ebf2493f26c50ff7ded57cd040b1c
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:35 +09:00
nengwen.chen
6ad87a6ca1 atv_demod: fix BG/DK sound output power [1/1]
PD#TV-6012

Problem:
fix BG/DK sound output power.

Solution:
1.fix BG/DK sound output power.

Verify:
Verified by x301

Change-Id: I428d8a1ed97c8da5fdfe55f8dd7ac2fda9200814
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:35 +09:00
nengwen.chen
8078be9b47 atv_demod: fix atbm2040 tuner channel scanning [1/1]
PD#TV-5499

Problem:
fix atbm2040 tuner channel scanning.

Solution:
1.fix atbm2040 tuner channel scanning.
2.modify tune interface.

Verify:
Verified by x301

Change-Id: Id135bcdca797ab93e8a2902476157b2ce324a2ce
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:35 +09:00
nengwen.chen
0013eb6e2b atv_demod: add atbm2040 tuner support [1/3]
PD#TV-5499

Problem:
add atbm2040 tuner support.

Solution:
add atbm2040 tuner support.

Verify:
Verified by x301.

Change-Id: I89f82727c7c11f5fc6377584d519a17fe3449c4a
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:35 +09:00
nengwen.chen
2ed11e94e1 atv_demod: add atv demod tune interface [1/2]
PD#TV-4499

Problem:
add atv demod tune interface.

Solution:
add atv demod tune interface.

Verify:
Verified by x301.

Change-Id: I4b62ee8b87d218bf639c02a34ba7e1c116a22249
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:35 +09:00
nengwen.chen
8ff6518095 atv_demod: optimize the stereo audio recognition [1/1]
PD#TV-3569

Problem:
optimize the stereo audio recognition.

Solution:
1.optimize the stereo audio recognition.
2.remove redundant code.
3.atv demod version: V2.10.

Verify:
verified by x301.

Change-Id: If8933bdd897a7c3e6b6ff9753d7ff971a0432ef9
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:35 +09:00
nengwen.chen
4bd63b2275 atv_demod: fix audio output when adjust the input amplitude [1/1]
PD#TV-4901

Problem:
fix audio output when adjust the input amplitude.

Solution:
fix audio output when adjust the input amplitude.

Verify:
verified by x301

Change-Id: If08e4adff6f4d0355448687ebe6756fa2e155704
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:35 +09:00
nengwen.chen
ca0814f267 atv_demod: fix audio config (PAL_M, NTSC_M) when video is PAL [1/1]
PD#TV-4274

Problem:
fix audio config (PAL_M, NTSC_M) when video is PAL.

Solution:
fix audio config (PAL_M, NTSC_M) when video is PAL

Verify:
verified by x301.

Change-Id: I9be8d71d52a226b6422317be0b77ca6331f23147
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:35 +09:00
Nian Jing
9b63ffb463 tvafe: lower shutdown power for tl1 [1/1]
PD#SWPL-6165

Problem:
TL1 vdee power too high when shutdown

Solution:
close bandgap when shut down for tl1
close vafe ctrl
close adc pll

Verify:
X301

Change-Id: I374bbe09ecdd456ea07f1fda3391acd4ab0bc949
Signed-off-by: Nian Jing <nian.jing@amlogic.com>

Conflicts:
	drivers/amlogic/media/vout/vdac/vdac_dev.c
2020-06-29 11:45:35 +09:00
nengwen.chen
c120aa81ed atv_demod: modify atv demod support multi tuner load [1/3]
PD#TV-1539

Problem:
modify atv demod support multi tuner load.

Solution:
1.add fine tune.
2.add set/get if info.
3.add tuner type set/get.
4.add multi tuner config in dts.
5.atv demod ver: V2.09.

Verify:
verified by x301

Change-Id: I23328bfab3d3508db67cef3e327002563eb1a87e
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:35 +09:00
nengwen.chen
7513077a2d atv_demod: Fix ATV audio output noise when switching channels to play [1/1]
PD#SWPL-2297, PD#SWPL-5450, PD#TV-2311

Problem:
Fix ATV audio output noise when switching channels to play.

Solution:
1.Add the judgment of SNR to prevent the weak signal
  from entering the OV mode.
2.Wait for the signal to be completely stable before OV detection.
3.OV detection is turned off by default,
  and will be turned on again when non-standard signals are encountered.
4.The OV detection moves from afc timer to monitor.
5.Optimize detection of A2/FM.
6.atv demod ver: V2.08.

Verify:
verified by x301

Change-Id: I3064230472ce51e1192a2d08ef6cc6f4ba10abaa
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:34 +09:00
nengwen.chen
2437137b48 atv_demod: Fix non standard for analog signal [1/1]
PD#TV-1549, PD#TV-2829, PD#TV-2830

Problem:
Fix non standard for analog signal.

Solution:
1.Add non standard config 3 for analog signal.
2.Fix non standard default value.
3.Fix audio control register an bits.
4.After correcting the frequency offset success,
 reset tuner to prevent audio from identifying errors.

Verify:
verified by x301

Change-Id: I65335dbe9ce9dc66d4ccaae3c1ff591660790616
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2020-06-29 11:45:34 +09:00