Add a new channel type representing if the user's attention state to the the system. This usually means if the user is looking at the screen or not.
Unified · Split
| @@ -2363,3 +2363,11 @@ KernelVersion: 6.10 · 2362 unmodified lines | ||
| 2363 | 2363 | Contact: linux-iio@vger.kernel.org |
| 2364 | 2364 | Description: |
| 2365 | 2365 | The value of current sense resistor in Ohms. |
| 2366 | + | |
| 2367 | +What: /sys/.../iio:deviceX/in_attention_input | |
| 2368 | +KernelVersion: 6.13 | |
| 2369 | +Contact: linux-iio@vger.kernel.org | |
| 2370 | +Description: | |
| 2371 | + Value representing the user's attention to the system expressed | |
| 2372 | + in units as percentage. This usually means if the user is | |
| 2373 | + looking at the screen or not. | |
| @@ -95,6 +95,7 @@ static const char * const iio_chan_type_name_spec[] = { · 94 unmodified lines | ||
| 95 | 95 | [IIO_DELTA_VELOCITY] = "deltavelocity", |
| 96 | 96 | [IIO_COLORTEMP] = "colortemp", |
| 97 | 97 | [IIO_CHROMATICITY] = "chromaticity", |
| 98 | + [IIO_ATTENTION] = "attention", | |
| 98 | 99 | }; |
| 99 | 100 | |
| 100 | 101 | static const char * const iio_modifier_names[] = { |
| @@ -51,6 +51,7 @@ enum iio_chan_type { · 50 unmodified lines | ||
| 51 | 51 | IIO_DELTA_VELOCITY, |
| 52 | 52 | IIO_COLORTEMP, |
| 53 | 53 | IIO_CHROMATICITY, |
| 54 | + IIO_ATTENTION, | |
| 54 | 55 | }; |
| 55 | 56 | |
| 56 | 57 | enum iio_modifier { |
| @@ -63,6 +63,7 @@ static const char * const iio_chan_type_name_spec[] = { · 62 unmodified lines | ||
| 63 | 63 | [IIO_DELTA_VELOCITY] = "deltavelocity", |
| 64 | 64 | [IIO_COLORTEMP] = "colortemp", |
| 65 | 65 | [IIO_CHROMATICITY] = "chromaticity", |
| 66 | + [IIO_ATTENTION] = "attention", | |
| 66 | 67 | }; |
| 67 | 68 | |
| 68 | 69 | static const char * const iio_ev_type_text[] = { |
| @@ -183,6 +184,7 @@ static bool event_is_known(struct iio_event_data *event) · 114 unmodified lines | ||
| 183 | 184 | case IIO_DELTA_VELOCITY: |
| 184 | 185 | case IIO_COLORTEMP: |
| 185 | 186 | case IIO_CHROMATICITY: |
| 187 | + case IIO_ATTENTION: | |
| 186 | 188 | break; |
| 187 | 189 | default: |
| 188 | 190 | return false; |