/* * wm5100-tables.c -- WM5100 ALSA SoC Audio driver data * * Copyright 2011 Wolfson Microelectronics plc * * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */#include"wm5100.h"boolwm5100_volatile_register(structdevice*dev,unsignedintreg){switch(reg){caseWM5100_SOFTWARE_RESET:caseWM5100_DEVICE_REVISION:caseWM5100_FX_CTRL:caseWM5100_INTERRUPT_STATUS_1:caseWM5100_INTERRUPT_STATUS_2:caseWM5100_INTERRUPT_STATUS_3:caseWM5100_INTERRUPT_STATUS_4:caseWM5100_INTERRUPT_RAW_STATUS_2:caseWM5100_INTERRUPT_RAW_STATUS_3:caseWM5100_INTERRUPT_RAW_STATUS_4:caseWM5100_OUTPUT_STATUS_1:caseWM5100_OUTPUT_STATUS_2:caseWM5100_INPUT_ENABLES_STATUS:caseWM5100_MIC_DETECT_3:return1;default:if((reg>=WM5100_DSP1_PM_0&®<=WM5100_DSP1_PM_1535)||(reg>=WM5100_DSP1_ZM_0&®<=WM5100_DSP1_ZM_2047)||(reg>=WM5100_DSP1_DM_0&®