mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 20:54:03 +02:00
media: cec/core: drop cec_post_state_event call
No need to call cec_post_state_event() if the next call is to cec_adap_unconfigure() since that will also call cec_post_state_event(). This fixes the case when, when the physical address is invalidated, you get two CEC_EVENT_STATE_CHANGE events: one with a non-zero log_addr_mask and one with a zero log_addr_mask. You just want to see the event with phys_addr set to f.f.f.f and log_addr_mask set to 0. Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
67d9598720
commit
2ff4b91e82
|
|
@ -1708,7 +1708,6 @@ void __cec_s_phys_addr(struct cec_adapter *adap, u16 phys_addr, bool block)
|
|||
cec_phys_addr_exp(phys_addr));
|
||||
if (becomes_invalid || !is_invalid) {
|
||||
adap->phys_addr = CEC_PHYS_ADDR_INVALID;
|
||||
cec_post_state_event(adap);
|
||||
cec_adap_unconfigure(adap);
|
||||
if (becomes_invalid) {
|
||||
cec_adap_enable(adap);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user