2019-05-20 19:08:11 +02:00
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-16 14:28:33 +01:00
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
2011-11-02 08:54:51 +01:00
|
|
|
|
2018-08-22 15:24:57 -05:00
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2012-05-07 17:42:31 +02:00
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
2014-10-29 16:03:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-13 11:41:42 +01:00
|
|
|
|
|
|
|
|
|
2012-02-13 11:55:02 +01:00
|
|
|
|
|
|
|
|
|
2012-02-13 11:41:42 +01:00
|
|
|
|
|
|
|
|
|
2012-09-07 07:25:44 +02:00
|
|
|
|
|
|
|
|
|
2012-02-13 11:41:42 +01:00
|
|
|
|
2013-01-07 12:11:33 +01:00
|
|
|
|
|
|
|
|
|
2012-02-13 11:41:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-12-18 07:45:52 +01:00
|
|
|
|
2012-02-13 11:41:42 +01:00
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
2012-12-21 15:31:41 +01:00
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-21 15:31:41 +01:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2012-12-21 15:31:41 +01:00
|
|
|
|
|
|
|
|
|
2026-05-27 22:08:41 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-21 15:31:41 +01:00
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2014-10-29 15:06:01 +01:00
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-28 01:16:55 +02:00
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
2014-10-29 15:06:01 +01:00
|
|
|
|
|
|
|
|
|
2020-01-13 15:14:04 -06:00
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2014-09-11 14:22:03 +02:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-11-17 14:30:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
2014-09-11 15:22:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-04-27 21:20:59 +08:00
|
|
|
|
2014-09-11 15:22:46 +02:00
|
|
|
|
|
|
|
|
|
2015-02-27 16:09:22 +01:00
|
|
|
|
2015-04-27 21:20:59 +08:00
|
|
|
|
2014-09-11 15:22:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-01 17:41:36 +01:00
|
|
|
|
|
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-19 19:48:07 +01:00
|
|
|
|
|
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-04 09:33:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
2012-06-04 09:33:51 +02:00
|
|
|
|
2012-11-19 19:48:07 +01:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
2012-11-19 19:48:07 +01:00
|
|
|
|
|
|
|
|
|
2012-06-04 09:33:51 +02:00
|
|
|
|
2012-11-19 19:48:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
2012-11-19 19:48:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-03-01 11:46:17 -06:00
|
|
|
|
2014-10-29 15:06:01 +01:00
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-12-18 07:45:52 +01:00
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:07 +05:30
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
2020-01-13 15:14:04 -06:00
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2019-11-19 14:17:07 +05:30
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
ALSA: hda - Add snd_hda_jack_detect_state() helper function
snd_hda_jack_detect() function returns a boolean value for a jack
plugged in or not, but it also returns always true when the
corresponding pin is phantom (i.e. fixed). This is OK in most cases,
but it makes the generic parser misbehaving about the auto-mute or
auto-mic switching, e.g. when one of headphone pins is a fixed.
Namely, the driver decides whether to mute the speaker or not, just
depending on the headphone plug state: if one of the headphone jacks
is seen as active, then the speaker is muted. Thus this will result
always in the muted speaker output.
So, the problem is the function returns a boolean, after all, although
we need to think of "phantom" jack. Now a new function,
snd_hda_jack_detect_state() is introduced to return these tristates.
The generic parser uses this function for checking the headphone or
mic jack states.
Meanwhile, the behavior of snd_hda_jack_detect() is kept as is, for
keeping compatibility in other driver codes.
Acked-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-07-19 16:59:46 +02:00
|
|
|
|
|
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
ALSA: hda - Add snd_hda_jack_detect_state() helper function
snd_hda_jack_detect() function returns a boolean value for a jack
plugged in or not, but it also returns always true when the
corresponding pin is phantom (i.e. fixed). This is OK in most cases,
but it makes the generic parser misbehaving about the auto-mute or
auto-mic switching, e.g. when one of headphone pins is a fixed.
Namely, the driver decides whether to mute the speaker or not, just
depending on the headphone plug state: if one of the headphone jacks
is seen as active, then the speaker is muted. Thus this will result
always in the muted speaker output.
So, the problem is the function returns a boolean, after all, although
we need to think of "phantom" jack. Now a new function,
snd_hda_jack_detect_state() is introduced to return these tristates.
The generic parser uses this function for checking the headphone or
mic jack states.
Meanwhile, the behavior of snd_hda_jack_detect() is kept as is, for
keeping compatibility in other driver codes.
Acked-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-07-19 16:59:46 +02:00
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
ALSA: hda - Add snd_hda_jack_detect_state() helper function
snd_hda_jack_detect() function returns a boolean value for a jack
plugged in or not, but it also returns always true when the
corresponding pin is phantom (i.e. fixed). This is OK in most cases,
but it makes the generic parser misbehaving about the auto-mute or
auto-mic switching, e.g. when one of headphone pins is a fixed.
Namely, the driver decides whether to mute the speaker or not, just
depending on the headphone plug state: if one of the headphone jacks
is seen as active, then the speaker is muted. Thus this will result
always in the muted speaker output.
So, the problem is the function returns a boolean, after all, although
we need to think of "phantom" jack. Now a new function,
snd_hda_jack_detect_state() is introduced to return these tristates.
The generic parser uses this function for checking the headphone or
mic jack states.
Meanwhile, the behavior of snd_hda_jack_detect() is kept as is, for
keeping compatibility in other driver codes.
Acked-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-07-19 16:59:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2020-10-22 11:02:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-30 13:51:46 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-22 11:02:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-30 13:51:46 +08:00
|
|
|
|
|
|
|
|
|
2020-10-22 11:02:21 +08:00
|
|
|
|
2020-09-30 13:51:46 +08:00
|
|
|
|
2020-10-22 11:02:21 +08:00
|
|
|
|
|
|
|
|
|
2020-09-30 13:51:46 +08:00
|
|
|
|
|
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2021-03-01 11:46:17 -06:00
|
|
|
|
2014-10-29 15:06:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2014-09-11 14:39:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2014-09-11 15:22:46 +02:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2014-09-11 15:22:46 +02:00
|
|
|
|
|
|
|
|
|
2014-09-11 14:39:09 +02:00
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2014-09-11 14:39:09 +02:00
|
|
|
|
2020-10-22 11:02:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-21 16:37:42 -08:00
|
|
|
|
2014-09-11 15:22:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-02-09 10:23:52 +01:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2014-09-11 15:22:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-28 01:16:55 +02:00
|
|
|
|
2014-09-11 15:22:46 +02:00
|
|
|
|
2011-10-28 01:16:55 +02:00
|
|
|
|
2012-10-17 14:45:05 +02:00
|
|
|
|
2014-09-11 15:22:46 +02:00
|
|
|
|
2014-09-11 14:39:09 +02:00
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2011-10-28 01:16:55 +02:00
|
|
|
|
2014-09-11 14:39:09 +02:00
|
|
|
|
|
|
|
|
|
2014-09-11 15:22:46 +02:00
|
|
|
|
2011-10-27 22:12:46 +02:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2012-09-25 11:30:59 +02:00
|
|
|
|
2014-10-29 16:03:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2014-10-29 16:03:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
2012-09-25 11:30:59 +02:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-25 11:30:59 +02:00
|
|
|
|
2013-12-18 07:45:52 +01:00
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
2012-11-19 19:48:07 +01:00
|
|
|
|
|
|
|
|
|
2014-10-29 15:06:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-19 19:48:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-19 19:48:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-12-18 07:45:52 +01:00
|
|
|
|
2012-11-19 19:48:07 +01:00
|
|
|
|
2021-03-05 17:26:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
2014-10-29 15:06:01 +01:00
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-19 19:48:07 +01:00
|
|
|
|
2011-11-02 08:36:06 +01:00
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
2012-11-19 19:48:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
2015-04-27 21:20:59 +08:00
|
|
|
|
2011-11-11 17:53:03 +01:00
|
|
|
|
2018-11-28 14:25:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
2013-12-18 07:45:52 +01:00
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
2011-12-01 17:41:36 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2014-10-29 15:06:01 +01:00
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2014-10-29 15:06:01 +01:00
|
|
|
|
|
|
|
|
|
2018-11-28 14:25:37 +01:00
|
|
|
|
|
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
2018-11-28 14:25:37 +01:00
|
|
|
|
|
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
2015-04-27 21:20:59 +08:00
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
2015-04-27 21:20:59 +08:00
|
|
|
|
2018-11-28 14:25:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-04-27 21:20:59 +08:00
|
|
|
|
2011-12-01 17:41:36 +01:00
|
|
|
|
|
|
|
|
|
2012-06-04 09:33:51 +02:00
|
|
|
|
2015-04-27 21:20:59 +08:00
|
|
|
|
|
|
|
|
|
2018-11-28 14:25:37 +01:00
|
|
|
|
2015-04-27 21:20:59 +08:00
|
|
|
|
|
|
|
|
|
2018-11-28 14:25:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2015-04-27 21:20:59 +08:00
|
|
|
|
|
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
2011-11-16 15:33:26 +01:00
|
|
|
|
2013-04-11 11:30:30 +02:00
|
|
|
|
|
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
2011-10-28 01:16:55 +02:00
|
|
|
|
2013-06-28 11:56:49 +02:00
|
|
|
|
2015-04-27 21:20:59 +08:00
|
|
|
|
2012-06-04 09:33:51 +02:00
|
|
|
|
2011-10-28 01:16:55 +02:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
2011-10-28 01:16:55 +02:00
|
|
|
|
|
|
|
|
|
2012-06-04 09:33:51 +02:00
|
|
|
|
2011-10-28 01:16:55 +02:00
|
|
|
|
2012-06-04 09:33:51 +02:00
|
|
|
|
|
|
|
|
|
2011-10-28 01:16:55 +02:00
|
|
|
|
2015-04-27 21:20:59 +08:00
|
|
|
|
ALSA: Convert strlcpy to strscpy when return value is unused
strlcpy is deprecated. see: Documentation/process/deprecated.rst
Change the calls that do not use the strlcpy return value to the
preferred strscpy.
Done with cocci script:
@@
expression e1, e2, e3;
@@
- strlcpy(
+ strscpy(
e1, e2, e3);
This cocci script leaves the instances where the return value is
used unchanged.
After this patch, sound/ has 3 uses of strlcpy() that need to be
manually inspected for conversion and changed one day.
$ git grep -w strlcpy sound/
sound/usb/card.c: len = strlcpy(card->longname, s, sizeof(card->longname));
sound/usb/mixer.c: return strlcpy(buf, p->name, buflen);
sound/usb/mixer.c: return strlcpy(buf, p->names[index], buflen);
Miscellenea:
o Remove trailing whitespace in conversion of sound/core/hwdep.c
Link: https://lore.kernel.org/lkml/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/22b393d1790bb268769d0bab7bacf0866dcb0c14.camel@perches.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-01-04 09:17:34 -08:00
|
|
|
|
2015-04-27 21:20:59 +08:00
|
|
|
|
|
|
|
|
|
2012-06-04 09:33:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-11-28 14:25:37 +01:00
|
|
|
|
2011-10-28 01:16:55 +02:00
|
|
|
|
|
|
|
|
|
2012-06-04 09:33:51 +02:00
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
2012-06-04 09:33:51 +02:00
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-10-29 15:06:01 +01:00
|
|
|
|
|
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-17 16:48:27 +02:00
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
2013-04-11 11:30:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
2013-04-11 11:30:30 +02:00
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-04-11 11:30:30 +02:00
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-04-11 11:30:30 +02:00
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-04-11 11:30:30 +02:00
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-04-11 11:30:30 +02:00
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
2013-04-11 11:30:30 +02:00
|
|
|
|
2011-10-28 00:03:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-12-18 07:45:52 +01:00
|
|
|
|
2012-09-25 11:30:59 +02:00
|
|
|
|
2018-11-28 14:17:58 +01:00
|
|
|
|
2012-11-19 19:48:07 +01:00
|
|
|
|
|
|
|
|
|
2014-09-11 15:22:46 +02:00
|
|
|
|
|
|
|
|
|
2018-11-28 14:17:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-11 15:22:46 +02:00
|
|
|
|
2018-11-28 14:17:58 +01:00
|
|
|
|
2012-11-19 19:48:07 +01:00
|
|
|
|
|
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
2014-09-11 15:22:46 +02:00
|
|
|
|
2018-11-28 14:17:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-11 15:22:46 +02:00
|
|
|
|
2018-11-28 14:17:58 +01:00
|
|
|
|
2014-09-11 15:22:46 +02:00
|
|
|
|
2012-11-19 19:48:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-10-29 16:03:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-25 11:30:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-06-11 19:09:07 +02:00
|
|
|
|
2012-09-25 11:30:59 +02:00
|
|
|
|
2019-11-19 14:17:08 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-25 11:30:59 +02:00
|
|
|
|
|
|
|
|
|
2021-03-05 17:26:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-25 11:30:59 +02:00
|
|
|
|
2018-11-28 14:17:58 +01:00
|
|
|
|
2012-09-25 11:30:59 +02:00
|
|
|
|
|
|
|
|
|
2013-12-18 07:45:52 +01:00
|
|
|
|
2012-09-25 11:30:59 +02:00
|
|
|
|
2014-10-29 16:03:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-10-09 15:04:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-11-28 14:17:58 +01:00
|
|
|
|
2012-10-09 15:04:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-12-18 07:45:52 +01:00
|
|
|
|
2012-10-09 15:04:21 +02:00
|
|
|
|