6 * Andrew Lunn <andrew@lunn.ch>
8 * This file is licensed under the terms of the GNU General Public
9 * License version 2. This program is licensed "as is" without any
10 * warranty of any kind, whether express or implied.
13 #include <linux/kernel.h>
14 #include <linux/i2c.h>
15 #include <linux/init.h>
16 #include <linux/platform_device.h>
17 #include <sound/alc5623.h>
20 static struct platform_device hp_t5325_audio_device
= {
21 .name
= "t5325-audio",
25 static struct alc5623_platform_data alc5621_data
= {
27 .jack_det_ctrl
= 0x4810,
30 static struct i2c_board_info i2c_board_info
[] __initdata
= {
32 I2C_BOARD_INFO("alc5621", 0x1a),
33 .platform_data
= &alc5621_data
,
37 void __init
t5325_init(void)
39 i2c_register_board_info(0, i2c_board_info
, ARRAY_SIZE(i2c_board_info
));
40 platform_device_register(&hp_t5325_audio_device
);