Amadeusz Sławiński 04268bf275 SoC: rt274: Fix internal jack assignment in set_jack callback
When we call snd_soc_component_set_jack(component, NULL, NULL) we should
set rt274->jack to passed jack, so when interrupt is triggered it calls
snd_soc_jack_report(rt274->jack, ...) with proper value.

This fixes problem in machine where in register, we call
snd_soc_register(component, &headset, NULL), which just calls
rt274_mic_detect via callback.
Now when machine driver is removed "headset" will be gone, so we
need to tell codec driver that it's gone with:
snd_soc_register(component, NULL, NULL), but we also need to be able
to handle NULL jack argument here gracefully.
If we don't set it to NULL, next time the rt274_irq runs it will call
snd_soc_jack_report with first argument being invalid pointer and there
will be Oops.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-06-06 17:37:21 +01:00
..
2018-02-12 09:37:29 +00:00
2019-02-04 17:12:05 +01:00
2018-02-27 10:41:34 +00:00
2019-04-05 09:54:49 +07:00
2019-04-04 20:56:08 +07:00
2015-07-07 13:35:13 +01:00
2019-01-07 16:51:32 +00:00
2019-01-04 15:09:48 +00:00
2018-10-25 09:00:15 -07:00
2016-08-08 11:55:20 +01:00
2019-03-25 15:53:19 +00:00
2018-02-20 12:05:58 +00:00
2018-12-07 12:20:42 +00:00
2018-04-26 12:44:15 +01:00
2018-05-18 17:46:03 +01:00
2019-02-11 16:01:31 +00:00
2019-02-11 16:01:31 +00:00
2017-07-18 14:46:20 +01:00
2019-01-07 16:52:00 +00:00
2019-01-07 16:54:34 +00:00
2015-12-19 12:02:18 +00:00
2019-01-07 16:52:14 +00:00
2018-02-12 11:48:26 +00:00
2018-10-25 09:00:15 -07:00
2014-07-02 20:49:25 +01:00
2018-05-18 11:20:11 +01:00
2018-06-27 12:26:41 +01:00
2018-06-27 12:26:41 +01:00
2016-06-26 12:28:13 +01:00
2019-01-07 16:53:10 +00:00
2018-06-01 12:05:30 +01:00
2018-08-28 20:11:37 +01:00
2015-04-08 19:25:40 +01:00
2019-01-03 16:34:06 +00:00
2018-09-18 10:28:29 -07:00