^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) wm8775.h - definition for wm8775 inputs and outputs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Copyright (C) 2006 Hans Verkuil (hverkuil@xs4all.nl)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #ifndef _WM8775_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #define _WM8775_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) /* The WM8775 has 4 inputs and one output. Zero or more inputs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) are multiplexed together to the output. Hence there are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 16 combinations.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) If only one input is active (the normal case) then the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) input values 1, 2, 4 or 8 should be used. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define WM8775_AIN1 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define WM8775_AIN2 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define WM8775_AIN3 4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #define WM8775_AIN4 8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) struct wm8775_platform_data {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) * FIXME: Instead, we should parametrize the params
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) * that need different settings between ivtv, pvrusb2, and Nova-S
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) bool is_nova_s;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #endif