^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * linux/sound/wm9081.h -- Platform data for WM9081
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Copyright 2009 Wolfson Microelectronics. PLC.
^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) #ifndef __LINUX_SND_WM_9081_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #define __LINUX_SND_WM_9081_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct wm9081_retune_mobile_setting {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) const char *name;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) unsigned int rate;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) u16 config[20];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) struct wm9081_pdata {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) bool irq_high; /* IRQ is active high */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) bool irq_cmos; /* IRQ is in CMOS mode */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) struct wm9081_retune_mobile_setting *retune_configs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) int num_retune_configs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #endif