diff options
Diffstat (limited to 'sound')
52 files changed, 568 insertions, 3202 deletions
diff --git a/sound/aoa/codecs/onyx.c b/sound/aoa/codecs/onyx.c index 15500b9d2da0..84bb07d39a7f 100644 --- a/sound/aoa/codecs/onyx.c +++ b/sound/aoa/codecs/onyx.c | |||
@@ -47,7 +47,7 @@ MODULE_DESCRIPTION("pcm3052 (onyx) codec driver for snd-aoa"); | |||
47 | struct onyx { | 47 | struct onyx { |
48 | /* cache registers 65 to 80, they are write-only! */ | 48 | /* cache registers 65 to 80, they are write-only! */ |
49 | u8 cache[16]; | 49 | u8 cache[16]; |
50 | struct i2c_client i2c; | 50 | struct i2c_client *i2c; |
51 | struct aoa_codec codec; | 51 | struct aoa_codec codec; |
52 | u32 initialised:1, | 52 | u32 initialised:1, |
53 | spdif_locked:1, | 53 | spdif_locked:1, |
@@ -72,7 +72,7 @@ static int onyx_read_register(struct onyx *onyx, u8 reg, u8 *value) | |||
72 | *value = onyx->cache[reg-FIRSTREGISTER]; | 72 | *value = onyx->cache[reg-FIRSTREGISTER]; |
73 | return 0; | 73 | return 0; |
74 | } | 74 | } |
75 | v = i2c_smbus_read_byte_data(&onyx->i2c, reg); | 75 | v = i2c_smbus_read_byte_data(onyx->i2c, reg); |
76 | if (v < 0) | 76 | if (v < 0) |
77 | return -1; | 77 | return -1; |
78 | *value = (u8)v; | 78 | *value = (u8)v; |
@@ -84,7 +84,7 @@ static int onyx_write_register(struct onyx *onyx, u8 reg, u8 value) | |||
84 | { | 84 | { |
85 | int result; | 85 | int result; |
86 | 86 | ||
87 | result = i2c_smbus_write_byte_data(&onyx->i2c, reg, value); | 87 | result = i2c_smbus_write_byte_data(onyx->i2c, reg, value); |
88 | if (!result) | 88 | if (!result) |
89 | onyx->cache[reg-FIRSTREGISTER] = value; | 89 | onyx->cache[reg-FIRSTREGISTER] = value; |
90 | return result; | 90 | return result; |
@@ -996,12 +996,45 @@ static void onyx_exit_codec(struct aoa_codec *codec) | |||
996 | onyx->codec.soundbus_dev->detach_codec(onyx->codec.soundbus_dev, onyx); | 996 | onyx->codec.soundbus_dev->detach_codec(onyx->codec.soundbus_dev, onyx); |
997 | } | 997 | } |
998 | 998 | ||
999 | static struct i2c_driver onyx_driver; | ||
1000 | |||
1001 | static int onyx_create(struct i2c_adapter *adapter, | 999 | static int onyx_create(struct i2c_adapter *adapter, |
1002 | struct device_node *node, | 1000 | struct device_node *node, |
1003 | int addr) | 1001 | int addr) |
1004 | { | 1002 | { |
1003 | struct i2c_board_info info; | ||
1004 | struct i2c_client *client; | ||
1005 | |||
1006 | memset(&info, 0, sizeof(struct i2c_board_info)); | ||
1007 | strlcpy(info.type, "aoa_codec_onyx", I2C_NAME_SIZE); | ||
1008 | info.addr = addr; | ||
1009 | info.platform_data = node; | ||
1010 | client = i2c_new_device(adapter, &info); | ||
1011 | if (!client) | ||
1012 | return -ENODEV; | ||
1013 | |||
1014 | /* | ||
1015 | * We know the driver is already loaded, so the device should be | ||
1016 | * already bound. If not it means binding failed, which suggests | ||
1017 | * the device doesn't really exist and should be deleted. | ||
1018 | * Ideally this would be replaced by better checks _before_ | ||
1019 | * instantiating the device. | ||
1020 | */ | ||
1021 | if (!client->driver) { | ||
1022 | i2c_unregister_device(client); | ||
1023 | return -ENODEV; | ||
1024 | } | ||
1025 | |||
1026 | /* | ||
1027 | * Let i2c-core delete that device on driver removal. | ||
1028 | * This is safe because i2c-core holds the core_lock mutex for us. | ||
1029 | */ | ||
1030 | list_add_tail(&client->detected, &client->driver->clients); | ||
1031 | return 0; | ||
1032 | } | ||
1033 | |||
1034 | static int onyx_i2c_probe(struct i2c_client *client, | ||
1035 | const struct i2c_device_id *id) | ||
1036 | { | ||
1037 | struct device_node *node = client->dev.platform_data; | ||
1005 | struct onyx *onyx; | 1038 | struct onyx *onyx; |
1006 | u8 dummy; | 1039 | u8 dummy; |
1007 | 1040 | ||
@@ -1011,20 +1044,12 @@ static int onyx_create(struct i2c_adapter *adapter, | |||
1011 | return -ENOMEM; | 1044 | return -ENOMEM; |
1012 | 1045 | ||
1013 | mutex_init(&onyx->mutex); | 1046 | mutex_init(&onyx->mutex); |
1014 | onyx->i2c.driver = &onyx_driver; | 1047 | onyx->i2c = client; |
1015 | onyx->i2c.adapter = adapter; | 1048 | i2c_set_clientdata(client, onyx); |
1016 | onyx->i2c.addr = addr & 0x7f; | ||
1017 | strlcpy(onyx->i2c.name, "onyx audio codec", I2C_NAME_SIZE); | ||
1018 | |||
1019 | if (i2c_attach_client(&onyx->i2c)) { | ||
1020 | printk(KERN_ERR PFX "failed to attach to i2c\n"); | ||
1021 | goto fail; | ||
1022 | } | ||
1023 | 1049 | ||
1024 | /* we try to read from register ONYX_REG_CONTROL | 1050 | /* we try to read from register ONYX_REG_CONTROL |
1025 | * to check if the codec is present */ | 1051 | * to check if the codec is present */ |
1026 | if (onyx_read_register(onyx, ONYX_REG_CONTROL, &dummy) != 0) { | 1052 | if (onyx_read_register(onyx, ONYX_REG_CONTROL, &dummy) != 0) { |
1027 | i2c_detach_client(&onyx->i2c); | ||
1028 | printk(KERN_ERR PFX "failed to read control register\n"); | 1053 | printk(KERN_ERR PFX "failed to read control register\n"); |
1029 | goto fail; | 1054 | goto fail; |
1030 | } | 1055 | } |
@@ -1036,14 +1061,14 @@ static int onyx_create(struct i2c_adapter *adapter, | |||
1036 | onyx->codec.node = of_node_get(node); | 1061 | onyx->codec.node = of_node_get(node); |
1037 | 1062 | ||
1038 | if (aoa_codec_register(&onyx->codec)) { | 1063 | if (aoa_codec_register(&onyx->codec)) { |
1039 | i2c_detach_client(&onyx->i2c); | ||
1040 | goto fail; | 1064 | goto fail; |
1041 | } | 1065 | } |
1042 | printk(KERN_DEBUG PFX "created and attached onyx instance\n"); | 1066 | printk(KERN_DEBUG PFX "created and attached onyx instance\n"); |
1043 | return 0; | 1067 | return 0; |
1044 | fail: | 1068 | fail: |
1069 | i2c_set_clientdata(client, NULL); | ||
1045 | kfree(onyx); | 1070 | kfree(onyx); |
1046 | return -EINVAL; | 1071 | return -ENODEV; |
1047 | } | 1072 | } |
1048 | 1073 | ||
1049 | static int onyx_i2c_attach(struct i2c_adapter *adapter) | 1074 | static int onyx_i2c_attach(struct i2c_adapter *adapter) |
@@ -1080,28 +1105,33 @@ static int onyx_i2c_attach(struct i2c_adapter *adapter) | |||
1080 | return onyx_create(adapter, NULL, 0x47); | 1105 | return onyx_create(adapter, NULL, 0x47); |
1081 | } | 1106 | } |
1082 | 1107 | ||
1083 | static int onyx_i2c_detach(struct i2c_client *client) | 1108 | static int onyx_i2c_remove(struct i2c_client *client) |
1084 | { | 1109 | { |
1085 | struct onyx *onyx = container_of(client, struct onyx, i2c); | 1110 | struct onyx *onyx = i2c_get_clientdata(client); |
1086 | int err; | ||
1087 | 1111 | ||
1088 | if ((err = i2c_detach_client(client))) | ||
1089 | return err; | ||
1090 | aoa_codec_unregister(&onyx->codec); | 1112 | aoa_codec_unregister(&onyx->codec); |
1091 | of_node_put(onyx->codec.node); | 1113 | of_node_put(onyx->codec.node); |
1092 | if (onyx->codec_info) | 1114 | if (onyx->codec_info) |
1093 | kfree(onyx->codec_info); | 1115 | kfree(onyx->codec_info); |
1116 | i2c_set_clientdata(client, onyx); | ||
1094 | kfree(onyx); | 1117 | kfree(onyx); |
1095 | return 0; | 1118 | return 0; |
1096 | } | 1119 | } |
1097 | 1120 | ||
1121 | static const struct i2c_device_id onyx_i2c_id[] = { | ||
1122 | { "aoa_codec_onyx", 0 }, | ||
1123 | { } | ||
1124 | }; | ||
1125 | |||
1098 | static struct i2c_driver onyx_driver = { | 1126 | static struct i2c_driver onyx_driver = { |
1099 | .driver = { | 1127 | .driver = { |
1100 | .name = "aoa_codec_onyx", | 1128 | .name = "aoa_codec_onyx", |
1101 | .owner = THIS_MODULE, | 1129 | .owner = THIS_MODULE, |
1102 | }, | 1130 | }, |
1103 | .attach_adapter = onyx_i2c_attach, | 1131 | .attach_adapter = onyx_i2c_attach, |
1104 | .detach_client = onyx_i2c_detach, | 1132 | .probe = onyx_i2c_probe, |
1133 | .remove = onyx_i2c_remove, | ||
1134 | .id_table = onyx_i2c_id, | ||
1105 | }; | 1135 | }; |
1106 | 1136 | ||
1107 | static int __init onyx_init(void) | 1137 | static int __init onyx_init(void) |
diff --git a/sound/aoa/codecs/tas.c b/sound/aoa/codecs/tas.c index 008e0f85097d..f0ebc971c686 100644 --- a/sound/aoa/codecs/tas.c +++ b/sound/aoa/codecs/tas.c | |||
@@ -82,7 +82,7 @@ MODULE_DESCRIPTION("tas codec driver for snd-aoa"); | |||
82 | 82 | ||
83 | struct tas { | 83 | struct tas { |
84 | struct aoa_codec codec; | 84 | struct aoa_codec codec; |
85 | struct i2c_client i2c; | 85 | struct i2c_client *i2c; |
86 | u32 mute_l:1, mute_r:1 , | 86 | u32 mute_l:1, mute_r:1 , |
87 | controls_created:1 , | 87 | controls_created:1 , |
88 | drc_enabled:1, | 88 | drc_enabled:1, |
@@ -108,9 +108,9 @@ static struct tas *codec_to_tas(struct aoa_codec *codec) | |||
108 | static inline int tas_write_reg(struct tas *tas, u8 reg, u8 len, u8 *data) | 108 | static inline int tas_write_reg(struct tas *tas, u8 reg, u8 len, u8 *data) |
109 | { | 109 | { |
110 | if (len == 1) | 110 | if (len == 1) |
111 | return i2c_smbus_write_byte_data(&tas->i2c, reg, *data); | 111 | return i2c_smbus_write_byte_data(tas->i2c, reg, *data); |
112 | else | 112 | else |
113 | return i2c_smbus_write_i2c_block_data(&tas->i2c, reg, len, data); | 113 | return i2c_smbus_write_i2c_block_data(tas->i2c, reg, len, data); |
114 | } | 114 | } |
115 | 115 | ||
116 | static void tas3004_set_drc(struct tas *tas) | 116 | static void tas3004_set_drc(struct tas *tas) |
@@ -882,12 +882,34 @@ static void tas_exit_codec(struct aoa_codec *codec) | |||
882 | } | 882 | } |
883 | 883 | ||
884 | 884 | ||
885 | static struct i2c_driver tas_driver; | ||
886 | |||
887 | static int tas_create(struct i2c_adapter *adapter, | 885 | static int tas_create(struct i2c_adapter *adapter, |
888 | struct device_node *node, | 886 | struct device_node *node, |
889 | int addr) | 887 | int addr) |
890 | { | 888 | { |
889 | struct i2c_board_info info; | ||
890 | struct i2c_client *client; | ||
891 | |||
892 | memset(&info, 0, sizeof(struct i2c_board_info)); | ||
893 | strlcpy(info.type, "aoa_codec_tas", I2C_NAME_SIZE); | ||
894 | info.addr = addr; | ||
895 | info.platform_data = node; | ||
896 | |||
897 | client = i2c_new_device(adapter, &info); | ||
898 | if (!client) | ||
899 | return -ENODEV; | ||
900 | |||
901 | /* | ||
902 | * Let i2c-core delete that device on driver removal. | ||
903 | * This is safe because i2c-core holds the core_lock mutex for us. | ||
904 | */ | ||
905 | list_add_tail(&client->detected, &client->driver->clients); | ||
906 | return 0; | ||
907 | } | ||
908 | |||
909 | static int tas_i2c_probe(struct i2c_client *client, | ||
910 | const struct i2c_device_id *id) | ||
911 | { | ||
912 | struct device_node *node = client->dev.platform_data; | ||
891 | struct tas *tas; | 913 | struct tas *tas; |
892 | 914 | ||
893 | tas = kzalloc(sizeof(struct tas), GFP_KERNEL); | 915 | tas = kzalloc(sizeof(struct tas), GFP_KERNEL); |
@@ -896,17 +918,11 @@ static int tas_create(struct i2c_adapter *adapter, | |||
896 | return -ENOMEM; | 918 | return -ENOMEM; |
897 | 919 | ||
898 | mutex_init(&tas->mtx); | 920 | mutex_init(&tas->mtx); |
899 | tas->i2c.driver = &tas_driver; | 921 | tas->i2c = client; |
900 | tas->i2c.adapter = adapter; | 922 | i2c_set_clientdata(client, tas); |
901 | tas->i2c.addr = addr; | 923 | |
902 | /* seems that half is a saner default */ | 924 | /* seems that half is a saner default */ |
903 | tas->drc_range = TAS3004_DRC_MAX / 2; | 925 | tas->drc_range = TAS3004_DRC_MAX / 2; |
904 | strlcpy(tas->i2c.name, "tas audio codec", I2C_NAME_SIZE); | ||
905 | |||
906 | if (i2c_attach_client(&tas->i2c)) { | ||
907 | printk(KERN_ERR PFX "failed to attach to i2c\n"); | ||
908 | goto fail; | ||
909 | } | ||
910 | 926 | ||
911 | strlcpy(tas->codec.name, "tas", MAX_CODEC_NAME_LEN); | 927 | strlcpy(tas->codec.name, "tas", MAX_CODEC_NAME_LEN); |
912 | tas->codec.owner = THIS_MODULE; | 928 | tas->codec.owner = THIS_MODULE; |
@@ -915,14 +931,12 @@ static int tas_create(struct i2c_adapter *adapter, | |||
915 | tas->codec.node = of_node_get(node); | 931 | tas->codec.node = of_node_get(node); |
916 | 932 | ||
917 | if (aoa_codec_register(&tas->codec)) { | 933 | if (aoa_codec_register(&tas->codec)) { |
918 | goto detach; | 934 | goto fail; |
919 | } | 935 | } |
920 | printk(KERN_DEBUG | 936 | printk(KERN_DEBUG |
921 | "snd-aoa-codec-tas: tas found, addr 0x%02x on %s\n", | 937 | "snd-aoa-codec-tas: tas found, addr 0x%02x on %s\n", |
922 | addr, node->full_name); | 938 | (unsigned int)client->addr, node->full_name); |
923 | return 0; | 939 | return 0; |
924 | detach: | ||
925 | i2c_detach_client(&tas->i2c); | ||
926 | fail: | 940 | fail: |
927 | mutex_destroy(&tas->mtx); | 941 | mutex_destroy(&tas->mtx); |
928 | kfree(tas); | 942 | kfree(tas); |
@@ -970,14 +984,11 @@ static int tas_i2c_attach(struct i2c_adapter *adapter) | |||
970 | return -ENODEV; | 984 | return -ENODEV; |
971 | } | 985 | } |
972 | 986 | ||
973 | static int tas_i2c_detach(struct i2c_client *client) | 987 | static int tas_i2c_remove(struct i2c_client *client) |
974 | { | 988 | { |
975 | struct tas *tas = container_of(client, struct tas, i2c); | 989 | struct tas *tas = i2c_get_clientdata(client); |
976 | int err; | ||
977 | u8 tmp = TAS_ACR_ANALOG_PDOWN; | 990 | u8 tmp = TAS_ACR_ANALOG_PDOWN; |
978 | 991 | ||
979 | if ((err = i2c_detach_client(client))) | ||
980 | return err; | ||
981 | aoa_codec_unregister(&tas->codec); | 992 | aoa_codec_unregister(&tas->codec); |
982 | of_node_put(tas->codec.node); | 993 | of_node_put(tas->codec.node); |
983 | 994 | ||
@@ -989,13 +1000,20 @@ static int tas_i2c_detach(struct i2c_client *client) | |||
989 | return 0; | 1000 | return 0; |
990 | } | 1001 | } |
991 | 1002 | ||
1003 | static const struct i2c_device_id tas_i2c_id[] = { | ||
1004 | { "aoa_codec_tas", 0 }, | ||
1005 | { } | ||
1006 | }; | ||
1007 | |||
992 | static struct i2c_driver tas_driver = { | 1008 | static struct i2c_driver tas_driver = { |
993 | .driver = { | 1009 | .driver = { |
994 | .name = "aoa_codec_tas", | 1010 | .name = "aoa_codec_tas", |
995 | .owner = THIS_MODULE, | 1011 | .owner = THIS_MODULE, |
996 | }, | 1012 | }, |
997 | .attach_adapter = tas_i2c_attach, | 1013 | .attach_adapter = tas_i2c_attach, |
998 | .detach_client = tas_i2c_detach, | 1014 | .probe = tas_i2c_probe, |
1015 | .remove = tas_i2c_remove, | ||
1016 | .id_table = tas_i2c_id, | ||
999 | }; | 1017 | }; |
1000 | 1018 | ||
1001 | static int __init tas_init(void) | 1019 | static int __init tas_init(void) |
diff --git a/sound/core/control.c b/sound/core/control.c index 4b20fa2b7e6d..17b8d47a5cd0 100644 --- a/sound/core/control.c +++ b/sound/core/control.c | |||
@@ -723,14 +723,11 @@ static int snd_ctl_elem_read_user(struct snd_card *card, | |||
723 | { | 723 | { |
724 | struct snd_ctl_elem_value *control; | 724 | struct snd_ctl_elem_value *control; |
725 | int result; | 725 | int result; |
726 | 726 | ||
727 | control = kmalloc(sizeof(*control), GFP_KERNEL); | 727 | control = memdup_user(_control, sizeof(*control)); |
728 | if (control == NULL) | 728 | if (IS_ERR(control)) |
729 | return -ENOMEM; | 729 | return PTR_ERR(control); |
730 | if (copy_from_user(control, _control, sizeof(*control))) { | 730 | |
731 | kfree(control); | ||
732 | return -EFAULT; | ||
733 | } | ||
734 | snd_power_lock(card); | 731 | snd_power_lock(card); |
735 | result = snd_power_wait(card, SNDRV_CTL_POWER_D0); | 732 | result = snd_power_wait(card, SNDRV_CTL_POWER_D0); |
736 | if (result >= 0) | 733 | if (result >= 0) |
@@ -784,13 +781,10 @@ static int snd_ctl_elem_write_user(struct snd_ctl_file *file, | |||
784 | struct snd_card *card; | 781 | struct snd_card *card; |
785 | int result; | 782 | int result; |
786 | 783 | ||
787 | control = kmalloc(sizeof(*control), GFP_KERNEL); | 784 | control = memdup_user(_control, sizeof(*control)); |
788 | if (control == NULL) | 785 | if (IS_ERR(control)) |
789 | return -ENOMEM; | 786 | return PTR_ERR(control); |
790 | if (copy_from_user(control, _control, sizeof(*control))) { | 787 | |
791 | kfree(control); | ||
792 | return -EFAULT; | ||
793 | } | ||
794 | card = file->card; | 788 | card = file->card; |
795 | snd_power_lock(card); | 789 | snd_power_lock(card); |
796 | result = snd_power_wait(card, SNDRV_CTL_POWER_D0); | 790 | result = snd_power_wait(card, SNDRV_CTL_POWER_D0); |
@@ -916,13 +910,10 @@ static int snd_ctl_elem_user_tlv(struct snd_kcontrol *kcontrol, | |||
916 | if (op_flag > 0) { | 910 | if (op_flag > 0) { |
917 | if (size > 1024 * 128) /* sane value */ | 911 | if (size > 1024 * 128) /* sane value */ |
918 | return -EINVAL; | 912 | return -EINVAL; |
919 | new_data = kmalloc(size, GFP_KERNEL); | 913 | |
920 | if (new_data == NULL) | 914 | new_data = memdup_user(tlv, size); |
921 | return -ENOMEM; | 915 | if (IS_ERR(new_data)) |
922 | if (copy_from_user(new_data, tlv, size)) { | 916 | return PTR_ERR(new_data); |
923 | kfree(new_data); | ||
924 | return -EFAULT; | ||
925 | } | ||
926 | change = ue->tlv_data_size != size; | 917 | change = ue->tlv_data_size != size; |
927 | if (!change) | 918 | if (!change) |
928 | change = memcmp(ue->tlv_data, new_data, size); | 919 | change = memcmp(ue->tlv_data, new_data, size); |
diff --git a/sound/core/jack.c b/sound/core/jack.c index c8254c667c62..d54d1a05fe65 100644 --- a/sound/core/jack.c +++ b/sound/core/jack.c | |||
@@ -35,6 +35,9 @@ static int snd_jack_dev_free(struct snd_device *device) | |||
35 | { | 35 | { |
36 | struct snd_jack *jack = device->device_data; | 36 | struct snd_jack *jack = device->device_data; |
37 | 37 | ||
38 | if (jack->private_free) | ||
39 | jack->private_free(jack); | ||
40 | |||
38 | /* If the input device is registered with the input subsystem | 41 | /* If the input device is registered with the input subsystem |
39 | * then we need to use a different deallocator. */ | 42 | * then we need to use a different deallocator. */ |
40 | if (jack->registered) | 43 | if (jack->registered) |
diff --git a/sound/core/pcm_compat.c b/sound/core/pcm_compat.c index 36d7a5998234..08bfed594a83 100644 --- a/sound/core/pcm_compat.c +++ b/sound/core/pcm_compat.c | |||
@@ -232,14 +232,11 @@ static int snd_pcm_ioctl_hw_params_compat(struct snd_pcm_substream *substream, | |||
232 | if (! (runtime = substream->runtime)) | 232 | if (! (runtime = substream->runtime)) |
233 | return -ENOTTY; | 233 | return -ENOTTY; |
234 | 234 | ||
235 | data = kmalloc(sizeof(*data), GFP_KERNEL); | ||
236 | if (data == NULL) | ||
237 | return -ENOMEM; | ||
238 | /* only fifo_size is different, so just copy all */ | 235 | /* only fifo_size is different, so just copy all */ |
239 | if (copy_from_user(data, data32, sizeof(*data32))) { | 236 | data = memdup_user(data32, sizeof(*data32)); |
240 | err = -EFAULT; | 237 | if (IS_ERR(data)) |
241 | goto error; | 238 | return PTR_ERR(data); |
242 | } | 239 | |
243 | if (refine) | 240 | if (refine) |
244 | err = snd_pcm_hw_refine(substream, data); | 241 | err = snd_pcm_hw_refine(substream, data); |
245 | else | 242 | else |
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index a151fb01ba82..fc6f98e257df 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c | |||
@@ -327,21 +327,16 @@ static int snd_pcm_hw_refine_user(struct snd_pcm_substream *substream, | |||
327 | struct snd_pcm_hw_params *params; | 327 | struct snd_pcm_hw_params *params; |
328 | int err; | 328 | int err; |
329 | 329 | ||
330 | params = kmalloc(sizeof(*params), GFP_KERNEL); | 330 | params = memdup_user(_params, sizeof(*params)); |
331 | if (!params) { | 331 | if (IS_ERR(params)) |
332 | err = -ENOMEM; | 332 | return PTR_ERR(params); |
333 | goto out; | 333 | |
334 | } | ||
335 | if (copy_from_user(params, _params, sizeof(*params))) { | ||
336 | err = -EFAULT; | ||
337 | goto out; | ||
338 | } | ||
339 | err = snd_pcm_hw_refine(substream, params); | 334 | err = snd_pcm_hw_refine(substream, params); |
340 | if (copy_to_user(_params, params, sizeof(*params))) { | 335 | if (copy_to_user(_params, params, sizeof(*params))) { |
341 | if (!err) | 336 | if (!err) |
342 | err = -EFAULT; | 337 | err = -EFAULT; |
343 | } | 338 | } |
344 | out: | 339 | |
345 | kfree(params); | 340 | kfree(params); |
346 | return err; | 341 | return err; |
347 | } | 342 | } |
@@ -465,21 +460,16 @@ static int snd_pcm_hw_params_user(struct snd_pcm_substream *substream, | |||
465 | struct snd_pcm_hw_params *params; | 460 | struct snd_pcm_hw_params *params; |
466 | int err; | 461 | int err; |
467 | 462 | ||
468 | params = kmalloc(sizeof(*params), GFP_KERNEL); | 463 | params = memdup_user(_params, sizeof(*params)); |
469 | if (!params) { | 464 | if (IS_ERR(params)) |
470 | err = -ENOMEM; | 465 | return PTR_ERR(params); |
471 | goto out; | 466 | |
472 | } | ||
473 | if (copy_from_user(params, _params, sizeof(*params))) { | ||
474 | err = -EFAULT; | ||
475 | goto out; | ||
476 | } | ||
477 | err = snd_pcm_hw_params(substream, params); | 467 | err = snd_pcm_hw_params(substream, params); |
478 | if (copy_to_user(_params, params, sizeof(*params))) { | 468 | if (copy_to_user(_params, params, sizeof(*params))) { |
479 | if (!err) | 469 | if (!err) |
480 | err = -EFAULT; | 470 | err = -EFAULT; |
481 | } | 471 | } |
482 | out: | 472 | |
483 | kfree(params); | 473 | kfree(params); |
484 | return err; | 474 | return err; |
485 | } | 475 | } |
@@ -2593,13 +2583,11 @@ static int snd_pcm_playback_ioctl1(struct file *file, | |||
2593 | return -EFAULT; | 2583 | return -EFAULT; |
2594 | if (copy_from_user(&xfern, _xfern, sizeof(xfern))) | 2584 | if (copy_from_user(&xfern, _xfern, sizeof(xfern))) |
2595 | return -EFAULT; | 2585 | return -EFAULT; |
2596 | bufs = kmalloc(sizeof(void *) * runtime->channels, GFP_KERNEL); | 2586 | |
2597 | if (bufs == NULL) | 2587 | bufs = memdup_user(xfern.bufs, |
2598 | return -ENOMEM; | 2588 | sizeof(void *) * runtime->channels); |
2599 | if (copy_from_user(bufs, xfern.bufs, sizeof(void *) * runtime->channels)) { | 2589 | if (IS_ERR(bufs)) |
2600 | kfree(bufs); | 2590 | return PTR_ERR(bufs); |
2601 | return -EFAULT; | ||
2602 | } | ||
2603 | result = snd_pcm_lib_writev(substream, bufs, xfern.frames); | 2591 | result = snd_pcm_lib_writev(substream, bufs, xfern.frames); |
2604 | kfree(bufs); | 2592 | kfree(bufs); |
2605 | __put_user(result, &_xfern->result); | 2593 | __put_user(result, &_xfern->result); |
@@ -2675,13 +2663,11 @@ static int snd_pcm_capture_ioctl1(struct file *file, | |||
2675 | return -EFAULT; | 2663 | return -EFAULT; |
2676 | if (copy_from_user(&xfern, _xfern, sizeof(xfern))) | 2664 | if (copy_from_user(&xfern, _xfern, sizeof(xfern))) |
2677 | return -EFAULT; | 2665 | return -EFAULT; |
2678 | bufs = kmalloc(sizeof(void *) * runtime->channels, GFP_KERNEL); | 2666 | |
2679 | if (bufs == NULL) | 2667 | bufs = memdup_user(xfern.bufs, |
2680 | return -ENOMEM; | 2668 | sizeof(void *) * runtime->channels); |
2681 | if (copy_from_user(bufs, xfern.bufs, sizeof(void *) * runtime->channels)) { | 2669 | if (IS_ERR(bufs)) |
2682 | kfree(bufs); | 2670 | return PTR_ERR(bufs); |
2683 | return -EFAULT; | ||
2684 | } | ||
2685 | result = snd_pcm_lib_readv(substream, bufs, xfern.frames); | 2671 | result = snd_pcm_lib_readv(substream, bufs, xfern.frames); |
2686 | kfree(bufs); | 2672 | kfree(bufs); |
2687 | __put_user(result, &_xfern->result); | 2673 | __put_user(result, &_xfern->result); |
@@ -3312,18 +3298,12 @@ static int snd_pcm_hw_refine_old_user(struct snd_pcm_substream *substream, | |||
3312 | int err; | 3298 | int err; |
3313 | 3299 | ||
3314 | params = kmalloc(sizeof(*params), GFP_KERNEL); | 3300 | params = kmalloc(sizeof(*params), GFP_KERNEL); |
3315 | if (!params) { | 3301 | if (!params) |
3316 | err = -ENOMEM; | 3302 | return -ENOMEM; |
3317 | goto out; | ||
3318 | } | ||
3319 | oparams = kmalloc(sizeof(*oparams), GFP_KERNEL); | ||
3320 | if (!oparams) { | ||
3321 | err = -ENOMEM; | ||
3322 | goto out; | ||
3323 | } | ||
3324 | 3303 | ||
3325 | if (copy_from_user(oparams, _oparams, sizeof(*oparams))) { | 3304 | oparams = memdup_user(_oparams, sizeof(*oparams)); |
3326 | err = -EFAULT; | 3305 | if (IS_ERR(oparams)) { |
3306 | err = PTR_ERR(oparams); | ||
3327 | goto out; | 3307 | goto out; |
3328 | } | 3308 | } |
3329 | snd_pcm_hw_convert_from_old_params(params, oparams); | 3309 | snd_pcm_hw_convert_from_old_params(params, oparams); |
@@ -3333,9 +3313,10 @@ static int snd_pcm_hw_refine_old_user(struct snd_pcm_substream *substream, | |||
3333 | if (!err) | 3313 | if (!err) |
3334 | err = -EFAULT; | 3314 | err = -EFAULT; |
3335 | } | 3315 | } |
3316 | |||
3317 | kfree(oparams); | ||
3336 | out: | 3318 | out: |
3337 | kfree(params); | 3319 | kfree(params); |
3338 | kfree(oparams); | ||
3339 | return err; | 3320 | return err; |
3340 | } | 3321 | } |
3341 | 3322 | ||
@@ -3347,17 +3328,12 @@ static int snd_pcm_hw_params_old_user(struct snd_pcm_substream *substream, | |||
3347 | int err; | 3328 | int err; |
3348 | 3329 | ||
3349 | params = kmalloc(sizeof(*params), GFP_KERNEL); | 3330 | params = kmalloc(sizeof(*params), GFP_KERNEL); |
3350 | if (!params) { | 3331 | if (!params) |
3351 | err = -ENOMEM; | 3332 | return -ENOMEM; |
3352 | goto out; | 3333 | |
3353 | } | 3334 | oparams = memdup_user(_oparams, sizeof(*oparams)); |
3354 | oparams = kmalloc(sizeof(*oparams), GFP_KERNEL); | 3335 | if (IS_ERR(oparams)) { |
3355 | if (!oparams) { | 3336 | err = PTR_ERR(oparams); |
3356 | err = -ENOMEM; | ||
3357 | goto out; | ||
3358 | } | ||
3359 | if (copy_from_user(oparams, _oparams, sizeof(*oparams))) { | ||
3360 | err = -EFAULT; | ||
3361 | goto out; | 3337 | goto out; |
3362 | } | 3338 | } |
3363 | snd_pcm_hw_convert_from_old_params(params, oparams); | 3339 | snd_pcm_hw_convert_from_old_params(params, oparams); |
@@ -3367,9 +3343,10 @@ static int snd_pcm_hw_params_old_user(struct snd_pcm_substream *substream, | |||
3367 | if (!err) | 3343 | if (!err) |
3368 | err = -EFAULT; | 3344 | err = -EFAULT; |
3369 | } | 3345 | } |
3346 | |||
3347 | kfree(oparams); | ||
3370 | out: | 3348 | out: |
3371 | kfree(params); | 3349 | kfree(params); |
3372 | kfree(oparams); | ||
3373 | return err; | 3350 | return err; |
3374 | } | 3351 | } |
3375 | #endif /* CONFIG_SND_SUPPORT_OLD_API */ | 3352 | #endif /* CONFIG_SND_SUPPORT_OLD_API */ |
diff --git a/sound/core/seq/seq_compat.c b/sound/core/seq/seq_compat.c index 38693f47c262..c956fe462569 100644 --- a/sound/core/seq/seq_compat.c +++ b/sound/core/seq/seq_compat.c | |||
@@ -48,12 +48,11 @@ static int snd_seq_call_port_info_ioctl(struct snd_seq_client *client, unsigned | |||
48 | struct snd_seq_port_info *data; | 48 | struct snd_seq_port_info *data; |
49 | mm_segment_t fs; | 49 | mm_segment_t fs; |
50 | 50 | ||
51 | data = kmalloc(sizeof(*data), GFP_KERNEL); | 51 | data = memdup_user(data32, sizeof(*data32)); |
52 | if (! data) | 52 | if (IS_ERR(data)) |
53 | return -ENOMEM; | 53 | return PTR_ERR(data); |
54 | 54 | ||
55 | if (copy_from_user(data, data32, sizeof(*data32)) || | 55 | if (get_user(data->flags, &data32->flags) || |
56 | get_user(data->flags, &data32->flags) || | ||
57 | get_user(data->time_queue, &data32->time_queue)) | 56 | get_user(data->time_queue, &data32->time_queue)) |
58 | goto error; | 57 | goto error; |
59 | data->kernel = NULL; | 58 | data->kernel = NULL; |
diff --git a/sound/core/timer.c b/sound/core/timer.c index 3f0050d0b71e..8f8b17ac074d 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c | |||
@@ -1395,13 +1395,10 @@ static int snd_timer_user_ginfo(struct file *file, | |||
1395 | struct list_head *p; | 1395 | struct list_head *p; |
1396 | int err = 0; | 1396 | int err = 0; |
1397 | 1397 | ||
1398 | ginfo = kmalloc(sizeof(*ginfo), GFP_KERNEL); | 1398 | ginfo = memdup_user(_ginfo, sizeof(*ginfo)); |
1399 | if (! ginfo) | 1399 | if (IS_ERR(ginfo)) |
1400 | return -ENOMEM; | 1400 | return PTR_ERR(ginfo); |
1401 | if (copy_from_user(ginfo, _ginfo, sizeof(*ginfo))) { | 1401 | |
1402 | kfree(ginfo); | ||
1403 | return -EFAULT; | ||
1404 | } | ||
1405 | tid = ginfo->tid; | 1402 | tid = ginfo->tid; |
1406 | memset(ginfo, 0, sizeof(*ginfo)); | 1403 | memset(ginfo, 0, sizeof(*ginfo)); |
1407 | ginfo->tid = tid; | 1404 | ginfo->tid = tid; |
diff --git a/sound/isa/Kconfig b/sound/isa/Kconfig index c5c9a9218ff6..c6942a4de99b 100644 --- a/sound/isa/Kconfig +++ b/sound/isa/Kconfig | |||
@@ -395,16 +395,6 @@ config SND_WAVEFRONT | |||
395 | To compile this driver as a module, choose M here: the module | 395 | To compile this driver as a module, choose M here: the module |
396 | will be called snd-wavefront. | 396 | will be called snd-wavefront. |
397 | 397 | ||
398 | config SND_WAVEFRONT_FIRMWARE_IN_KERNEL | ||
399 | bool "In-kernel firmware for Wavefront" | ||
400 | depends on SND_WAVEFRONT | ||
401 | default y | ||
402 | help | ||
403 | Say Y here to include the static firmware for FX DSP built in | ||
404 | the kernel for the Wavefront driver. If you choose N here, | ||
405 | you need to install the firmware files from the | ||
406 | alsa-firmware package. | ||
407 | |||
408 | config SND_MSND_PINNACLE | 398 | config SND_MSND_PINNACLE |
409 | tristate "Turtle Beach MultiSound Pinnacle/Fiji driver" | 399 | tristate "Turtle Beach MultiSound Pinnacle/Fiji driver" |
410 | depends on X86 && EXPERIMENTAL | 400 | depends on X86 && EXPERIMENTAL |
diff --git a/sound/isa/sb/sb16_csp.c b/sound/isa/sb/sb16_csp.c index 49037d074c71..bdc8dde4e4a2 100644 --- a/sound/isa/sb/sb16_csp.c +++ b/sound/isa/sb/sb16_csp.c | |||
@@ -684,15 +684,16 @@ static int snd_sb_csp_load(struct snd_sb_csp * p, const unsigned char *buf, int | |||
684 | 684 | ||
685 | static int snd_sb_csp_load_user(struct snd_sb_csp * p, const unsigned char __user *buf, int size, int load_flags) | 685 | static int snd_sb_csp_load_user(struct snd_sb_csp * p, const unsigned char __user *buf, int size, int load_flags) |
686 | { | 686 | { |
687 | int err = -ENOMEM; | 687 | int err; |
688 | unsigned char *kbuf = kmalloc(size, GFP_KERNEL); | 688 | unsigned char *kbuf; |
689 | if (kbuf) { | 689 | |
690 | if (copy_from_user(kbuf, buf, size)) | 690 | kbuf = memdup_user(buf, size); |
691 | err = -EFAULT; | 691 | if (IS_ERR(kbuf)) |
692 | else | 692 | return PTR_ERR(kbuf); |
693 | err = snd_sb_csp_load(p, kbuf, size, load_flags); | 693 | |
694 | kfree(kbuf); | 694 | err = snd_sb_csp_load(p, kbuf, size, load_flags); |
695 | } | 695 | |
696 | kfree(kbuf); | ||
696 | return err; | 697 | return err; |
697 | } | 698 | } |
698 | 699 | ||
diff --git a/sound/isa/wavefront/wavefront_fx.c b/sound/isa/wavefront/wavefront_fx.c index dfc449a2194e..2bb1cee09255 100644 --- a/sound/isa/wavefront/wavefront_fx.c +++ b/sound/isa/wavefront/wavefront_fx.c | |||
@@ -34,14 +34,6 @@ | |||
34 | 34 | ||
35 | #define WAIT_IDLE 0xff | 35 | #define WAIT_IDLE 0xff |
36 | 36 | ||
37 | #ifdef CONFIG_SND_WAVEFRONT_FIRMWARE_IN_KERNEL | ||
38 | #include "yss225.c" | ||
39 | static const struct firmware yss225_registers_firmware = { | ||
40 | .data = (u8 *)yss225_registers, | ||
41 | .size = sizeof yss225_registers | ||
42 | }; | ||
43 | #endif | ||
44 | |||
45 | static int | 37 | static int |
46 | wavefront_fx_idle (snd_wavefront_t *dev) | 38 | wavefront_fx_idle (snd_wavefront_t *dev) |
47 | 39 | ||
@@ -210,15 +202,11 @@ snd_wavefront_fx_ioctl (struct snd_hwdep *sdev, struct file *file, | |||
210 | "> 512 bytes to FX\n"); | 202 | "> 512 bytes to FX\n"); |
211 | return -EIO; | 203 | return -EIO; |
212 | } | 204 | } |
213 | page_data = kmalloc(r.data[2] * sizeof(short), GFP_KERNEL); | 205 | page_data = memdup_user((unsigned char __user *) |
214 | if (!page_data) | 206 | r.data[3], |
215 | return -ENOMEM; | 207 | r.data[2] * sizeof(short)); |
216 | if (copy_from_user (page_data, | 208 | if (IS_ERR(page_data)) |
217 | (unsigned char __user *) r.data[3], | 209 | return PTR_ERR(page_data); |
218 | r.data[2] * sizeof(short))) { | ||
219 | kfree(page_data); | ||
220 | return -EFAULT; | ||
221 | } | ||
222 | pd = page_data; | 210 | pd = page_data; |
223 | } | 211 | } |
224 | 212 | ||
@@ -260,16 +248,12 @@ snd_wavefront_fx_start (snd_wavefront_t *dev) | |||
260 | if (dev->fx_initialized) | 248 | if (dev->fx_initialized) |
261 | return 0; | 249 | return 0; |
262 | 250 | ||
263 | #ifdef CONFIG_SND_WAVEFRONT_FIRMWARE_IN_KERNEL | ||
264 | firmware = &yss225_registers_firmware; | ||
265 | #else | ||
266 | err = request_firmware(&firmware, "yamaha/yss225_registers.bin", | 251 | err = request_firmware(&firmware, "yamaha/yss225_registers.bin", |
267 | dev->card->dev); | 252 | dev->card->dev); |
268 | if (err < 0) { | 253 | if (err < 0) { |
269 | err = -1; | 254 | err = -1; |
270 | goto out; | 255 | goto out; |
271 | } | 256 | } |
272 | #endif | ||
273 | 257 | ||
274 | for (i = 0; i + 1 < firmware->size; i += 2) { | 258 | for (i = 0; i + 1 < firmware->size; i += 2) { |
275 | if (firmware->data[i] >= 8 && firmware->data[i] < 16) { | 259 | if (firmware->data[i] >= 8 && firmware->data[i] < 16) { |
@@ -292,12 +276,8 @@ snd_wavefront_fx_start (snd_wavefront_t *dev) | |||
292 | err = 0; | 276 | err = 0; |
293 | 277 | ||
294 | out: | 278 | out: |
295 | #ifndef CONFIG_SND_WAVEFRONT_FIRMWARE_IN_KERNEL | ||
296 | release_firmware(firmware); | 279 | release_firmware(firmware); |
297 | #endif | ||
298 | return err; | 280 | return err; |
299 | } | 281 | } |
300 | 282 | ||
301 | #ifndef CONFIG_SND_WAVEFRONT_FIRMWARE_IN_KERNEL | ||
302 | MODULE_FIRMWARE("yamaha/yss225_registers.bin"); | 283 | MODULE_FIRMWARE("yamaha/yss225_registers.bin"); |
303 | #endif | ||
diff --git a/sound/isa/wavefront/wavefront_synth.c b/sound/isa/wavefront/wavefront_synth.c index beb312cca75b..5d4ff48c4345 100644 --- a/sound/isa/wavefront/wavefront_synth.c +++ b/sound/isa/wavefront/wavefront_synth.c | |||
@@ -1664,12 +1664,11 @@ snd_wavefront_synth_ioctl (struct snd_hwdep *hw, struct file *file, | |||
1664 | break; | 1664 | break; |
1665 | 1665 | ||
1666 | case WFCTL_WFCMD: | 1666 | case WFCTL_WFCMD: |
1667 | wc = kmalloc(sizeof(*wc), GFP_KERNEL); | 1667 | wc = memdup_user(argp, sizeof(*wc)); |
1668 | if (! wc) | 1668 | if (IS_ERR(wc)) |
1669 | return -ENOMEM; | 1669 | return PTR_ERR(wc); |
1670 | if (copy_from_user (wc, argp, sizeof (*wc))) | 1670 | |
1671 | err = -EFAULT; | 1671 | if (wavefront_synth_control (acard, wc) < 0) |
1672 | else if (wavefront_synth_control (acard, wc) < 0) | ||
1673 | err = -EIO; | 1672 | err = -EIO; |
1674 | else if (copy_to_user (argp, wc, sizeof (*wc))) | 1673 | else if (copy_to_user (argp, wc, sizeof (*wc))) |
1675 | err = -EFAULT; | 1674 | err = -EFAULT; |
diff --git a/sound/isa/wavefront/yss225.c b/sound/isa/wavefront/yss225.c deleted file mode 100644 index 9f6be3ff8ecf..000000000000 --- a/sound/isa/wavefront/yss225.c +++ /dev/null | |||
@@ -1,2739 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 1998-2002 by Paul Davis <pbd@op.net> | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
17 | */ | ||
18 | |||
19 | /* weird stuff, derived from port I/O tracing with dosemu */ | ||
20 | |||
21 | static const struct { | ||
22 | unsigned char addr; | ||
23 | unsigned char data; | ||
24 | } yss225_registers[] __devinitdata = { | ||
25 | /* Set all bits for all channels on the MOD unit to zero */ | ||
26 | { WAIT_IDLE }, { 0xe, 0x10 }, { 0xf, 0x00 }, | ||
27 | { WAIT_IDLE }, { 0xe, 0x11 }, { 0xf, 0x00 }, | ||
28 | { WAIT_IDLE }, { 0xe, 0x12 }, { 0xf, 0x00 }, | ||
29 | { WAIT_IDLE }, { 0xe, 0x13 }, { 0xf, 0x00 }, | ||
30 | { WAIT_IDLE }, { 0xe, 0x14 }, { 0xf, 0x00 }, | ||
31 | { WAIT_IDLE }, { 0xe, 0x15 }, { 0xf, 0x00 }, | ||
32 | { WAIT_IDLE }, { 0xe, 0x16 }, { 0xf, 0x00 }, | ||
33 | { WAIT_IDLE }, { 0xe, 0x17 }, { 0xf, 0x00 }, | ||
34 | { WAIT_IDLE }, { 0xe, 0x18 }, { 0xf, 0x00 }, | ||
35 | { WAIT_IDLE }, { 0xe, 0x19 }, { 0xf, 0x00 }, | ||
36 | { WAIT_IDLE }, { 0xe, 0x1a }, { 0xf, 0x00 }, | ||
37 | { WAIT_IDLE }, { 0xe, 0x1b }, { 0xf, 0x00 }, | ||
38 | { WAIT_IDLE }, { 0xe, 0x1c }, { 0xf, 0x00 }, | ||
39 | { WAIT_IDLE }, { 0xe, 0x1d }, { 0xf, 0x00 }, | ||
40 | { WAIT_IDLE }, { 0xe, 0x1e }, { 0xf, 0x00 }, | ||
41 | { WAIT_IDLE }, { 0xe, 0x1f }, { 0xf, 0x00 }, | ||
42 | { WAIT_IDLE }, { 0xe, 0x20 }, { 0xf, 0x00 }, | ||
43 | { WAIT_IDLE }, { 0xe, 0x21 }, { 0xf, 0x00 }, | ||
44 | { WAIT_IDLE }, { 0xe, 0x22 }, { 0xf, 0x00 }, | ||
45 | { WAIT_IDLE }, { 0xe, 0x23 }, { 0xf, 0x00 }, | ||
46 | { WAIT_IDLE }, { 0xe, 0x24 }, { 0xf, 0x00 }, | ||
47 | { WAIT_IDLE }, { 0xe, 0x25 }, { 0xf, 0x00 }, | ||
48 | { WAIT_IDLE }, { 0xe, 0x26 }, { 0xf, 0x00 }, | ||
49 | { WAIT_IDLE }, { 0xe, 0x27 }, { 0xf, 0x00 }, | ||
50 | { WAIT_IDLE }, { 0xe, 0x28 }, { 0xf, 0x00 }, | ||
51 | { WAIT_IDLE }, { 0xe, 0x29 }, { 0xf, 0x00 }, | ||
52 | { WAIT_IDLE }, { 0xe, 0x2a }, { 0xf, 0x00 }, | ||
53 | { WAIT_IDLE }, { 0xe, 0x2b }, { 0xf, 0x00 }, | ||
54 | { WAIT_IDLE }, { 0xe, 0x2c }, { 0xf, 0x00 }, | ||
55 | { WAIT_IDLE }, { 0xe, 0x2d }, { 0xf, 0x00 }, | ||
56 | { WAIT_IDLE }, { 0xe, 0x2e }, { 0xf, 0x00 }, | ||
57 | { WAIT_IDLE }, { 0xe, 0x2f }, { 0xf, 0x00 }, | ||
58 | { WAIT_IDLE }, { 0xe, 0x30 }, { 0xf, 0x00 }, | ||
59 | { WAIT_IDLE }, { 0xe, 0x31 }, { 0xf, 0x00 }, | ||
60 | { WAIT_IDLE }, { 0xe, 0x32 }, { 0xf, 0x00 }, | ||
61 | { WAIT_IDLE }, { 0xe, 0x33 }, { 0xf, 0x00 }, | ||
62 | { WAIT_IDLE }, { 0xe, 0x34 }, { 0xf, 0x00 }, | ||
63 | { WAIT_IDLE }, { 0xe, 0x35 }, { 0xf, 0x00 }, | ||
64 | { WAIT_IDLE }, { 0xe, 0x36 }, { 0xf, 0x00 }, | ||
65 | { WAIT_IDLE }, { 0xe, 0x37 }, { 0xf, 0x00 }, | ||
66 | { WAIT_IDLE }, { 0xe, 0x38 }, { 0xf, 0x00 }, | ||
67 | { WAIT_IDLE }, { 0xe, 0x39 }, { 0xf, 0x00 }, | ||
68 | { WAIT_IDLE }, { 0xe, 0x3a }, { 0xf, 0x00 }, | ||
69 | { WAIT_IDLE }, { 0xe, 0x3b }, { 0xf, 0x00 }, | ||
70 | { WAIT_IDLE }, { 0xe, 0x3c }, { 0xf, 0x00 }, | ||
71 | { WAIT_IDLE }, { 0xe, 0x3d }, { 0xf, 0x00 }, | ||
72 | { WAIT_IDLE }, { 0xe, 0x3e }, { 0xf, 0x00 }, | ||
73 | { WAIT_IDLE }, { 0xe, 0x3f }, { 0xf, 0x00 }, | ||
74 | { WAIT_IDLE }, { 0xe, 0x40 }, { 0xf, 0x00 }, | ||
75 | { WAIT_IDLE }, { 0xe, 0x41 }, { 0xf, 0x00 }, | ||
76 | { WAIT_IDLE }, { 0xe, 0x42 }, { 0xf, 0x00 }, | ||
77 | { WAIT_IDLE }, { 0xe, 0x43 }, { 0xf, 0x00 }, | ||
78 | { WAIT_IDLE }, { 0xe, 0x44 }, { 0xf, 0x00 }, | ||
79 | { WAIT_IDLE }, { 0xe, 0x45 }, { 0xf, 0x00 }, | ||
80 | { WAIT_IDLE }, { 0xe, 0x46 }, { 0xf, 0x00 }, | ||
81 | { WAIT_IDLE }, { 0xe, 0x47 }, { 0xf, 0x00 }, | ||
82 | { WAIT_IDLE }, { 0xe, 0x48 }, { 0xf, 0x00 }, | ||
83 | { WAIT_IDLE }, { 0xe, 0x49 }, { 0xf, 0x00 }, | ||
84 | { WAIT_IDLE }, { 0xe, 0x4a }, { 0xf, 0x00 }, | ||
85 | { WAIT_IDLE }, { 0xe, 0x4b }, { 0xf, 0x00 }, | ||
86 | { WAIT_IDLE }, { 0xe, 0x4c }, { 0xf, 0x00 }, | ||
87 | { WAIT_IDLE }, { 0xe, 0x4d }, { 0xf, 0x00 }, | ||
88 | { WAIT_IDLE }, { 0xe, 0x4e }, { 0xf, 0x00 }, | ||
89 | { WAIT_IDLE }, { 0xe, 0x4f }, { 0xf, 0x00 }, | ||
90 | { WAIT_IDLE }, { 0xe, 0x50 }, { 0xf, 0x00 }, | ||
91 | { WAIT_IDLE }, { 0xe, 0x51 }, { 0xf, 0x00 }, | ||
92 | { WAIT_IDLE }, { 0xe, 0x52 }, { 0xf, 0x00 }, | ||
93 | { WAIT_IDLE }, { 0xe, 0x53 }, { 0xf, 0x00 }, | ||
94 | { WAIT_IDLE }, { 0xe, 0x54 }, { 0xf, 0x00 }, | ||
95 | { WAIT_IDLE }, { 0xe, 0x55 }, { 0xf, 0x00 }, | ||
96 | { WAIT_IDLE }, { 0xe, 0x56 }, { 0xf, 0x00 }, | ||
97 | { WAIT_IDLE }, { 0xe, 0x57 }, { 0xf, 0x00 }, | ||
98 | { WAIT_IDLE }, { 0xe, 0x58 }, { 0xf, 0x00 }, | ||
99 | { WAIT_IDLE }, { 0xe, 0x59 }, { 0xf, 0x00 }, | ||
100 | { WAIT_IDLE }, { 0xe, 0x5a }, { 0xf, 0x00 }, | ||
101 | { WAIT_IDLE }, { 0xe, 0x5b }, { 0xf, 0x00 }, | ||
102 | { WAIT_IDLE }, { 0xe, 0x5c }, { 0xf, 0x00 }, | ||
103 | { WAIT_IDLE }, { 0xe, 0x5d }, { 0xf, 0x00 }, | ||
104 | { WAIT_IDLE }, { 0xe, 0x5e }, { 0xf, 0x00 }, | ||
105 | { WAIT_IDLE }, { 0xe, 0x5f }, { 0xf, 0x00 }, | ||
106 | { WAIT_IDLE }, { 0xe, 0x60 }, { 0xf, 0x00 }, | ||
107 | { WAIT_IDLE }, { 0xe, 0x61 }, { 0xf, 0x00 }, | ||
108 | { WAIT_IDLE }, { 0xe, 0x62 }, { 0xf, 0x00 }, | ||
109 | { WAIT_IDLE }, { 0xe, 0x63 }, { 0xf, 0x00 }, | ||
110 | { WAIT_IDLE }, { 0xe, 0x64 }, { 0xf, 0x00 }, | ||
111 | { WAIT_IDLE }, { 0xe, 0x65 }, { 0xf, 0x00 }, | ||
112 | { WAIT_IDLE }, { 0xe, 0x66 }, { 0xf, 0x00 }, | ||
113 | { WAIT_IDLE }, { 0xe, 0x67 }, { 0xf, 0x00 }, | ||
114 | { WAIT_IDLE }, { 0xe, 0x68 }, { 0xf, 0x00 }, | ||
115 | { WAIT_IDLE }, { 0xe, 0x69 }, { 0xf, 0x00 }, | ||
116 | { WAIT_IDLE }, { 0xe, 0x6a }, { 0xf, 0x00 }, | ||
117 | { WAIT_IDLE }, { 0xe, 0x6b }, { 0xf, 0x00 }, | ||
118 | { WAIT_IDLE }, { 0xe, 0x6c }, { 0xf, 0x00 }, | ||
119 | { WAIT_IDLE }, { 0xe, 0x6d }, { 0xf, 0x00 }, | ||
120 | { WAIT_IDLE }, { 0xe, 0x6e }, { 0xf, 0x00 }, | ||
121 | { WAIT_IDLE }, { 0xe, 0x6f }, { 0xf, 0x00 }, | ||
122 | { WAIT_IDLE }, { 0xe, 0x70 }, { 0xf, 0x00 }, | ||
123 | { WAIT_IDLE }, { 0xe, 0x71 }, { 0xf, 0x00 }, | ||
124 | { WAIT_IDLE }, { 0xe, 0x72 }, { 0xf, 0x00 }, | ||
125 | { WAIT_IDLE }, { 0xe, 0x73 }, { 0xf, 0x00 }, | ||
126 | { WAIT_IDLE }, { 0xe, 0x74 }, { 0xf, 0x00 }, | ||
127 | { WAIT_IDLE }, { 0xe, 0x75 }, { 0xf, 0x00 }, | ||
128 | { WAIT_IDLE }, { 0xe, 0x76 }, { 0xf, 0x00 }, | ||
129 | { WAIT_IDLE }, { 0xe, 0x77 }, { 0xf, 0x00 }, | ||
130 | { WAIT_IDLE }, { 0xe, 0x78 }, { 0xf, 0x00 }, | ||
131 | { WAIT_IDLE }, { 0xe, 0x79 }, { 0xf, 0x00 }, | ||
132 | { WAIT_IDLE }, { 0xe, 0x7a }, { 0xf, 0x00 }, | ||
133 | { WAIT_IDLE }, { 0xe, 0x7b }, { 0xf, 0x00 }, | ||
134 | { WAIT_IDLE }, { 0xe, 0x7c }, { 0xf, 0x00 }, | ||
135 | { WAIT_IDLE }, { 0xe, 0x7d }, { 0xf, 0x00 }, | ||
136 | { WAIT_IDLE }, { 0xe, 0x7e }, { 0xf, 0x00 }, | ||
137 | { WAIT_IDLE }, { 0xe, 0x7f }, { 0xf, 0x00 }, | ||
138 | { WAIT_IDLE }, { 0xe, 0x80 }, { 0xf, 0x00 }, | ||
139 | { WAIT_IDLE }, { 0xe, 0x81 }, { 0xf, 0x00 }, | ||
140 | { WAIT_IDLE }, { 0xe, 0x82 }, { 0xf, 0x00 }, | ||
141 | { WAIT_IDLE }, { 0xe, 0x83 }, { 0xf, 0x00 }, | ||
142 | { WAIT_IDLE }, { 0xe, 0x84 }, { 0xf, 0x00 }, | ||
143 | { WAIT_IDLE }, { 0xe, 0x85 }, { 0xf, 0x00 }, | ||
144 | { WAIT_IDLE }, { 0xe, 0x86 }, { 0xf, 0x00 }, | ||
145 | { WAIT_IDLE }, { 0xe, 0x87 }, { 0xf, 0x00 }, | ||
146 | { WAIT_IDLE }, { 0xe, 0x88 }, { 0xf, 0x00 }, | ||
147 | { WAIT_IDLE }, { 0xe, 0x89 }, { 0xf, 0x00 }, | ||
148 | { WAIT_IDLE }, { 0xe, 0x8a }, { 0xf, 0x00 }, | ||
149 | { WAIT_IDLE }, { 0xe, 0x8b }, { 0xf, 0x00 }, | ||
150 | { WAIT_IDLE }, { 0xe, 0x8c }, { 0xf, 0x00 }, | ||
151 | { WAIT_IDLE }, { 0xe, 0x8d }, { 0xf, 0x00 }, | ||
152 | { WAIT_IDLE }, { 0xe, 0x8e }, { 0xf, 0x00 }, | ||
153 | { WAIT_IDLE }, { 0xe, 0x8f }, { 0xf, 0x00 }, | ||
154 | { WAIT_IDLE }, { 0xe, 0x90 }, { 0xf, 0x00 }, | ||
155 | { WAIT_IDLE }, { 0xe, 0x91 }, { 0xf, 0x00 }, | ||
156 | { WAIT_IDLE }, { 0xe, 0x92 }, { 0xf, 0x00 }, | ||
157 | { WAIT_IDLE }, { 0xe, 0x93 }, { 0xf, 0x00 }, | ||
158 | { WAIT_IDLE }, { 0xe, 0x94 }, { 0xf, 0x00 }, | ||
159 | { WAIT_IDLE }, { 0xe, 0x95 }, { 0xf, 0x00 }, | ||
160 | { WAIT_IDLE }, { 0xe, 0x96 }, { 0xf, 0x00 }, | ||
161 | { WAIT_IDLE }, { 0xe, 0x97 }, { 0xf, 0x00 }, | ||
162 | { WAIT_IDLE }, { 0xe, 0x98 }, { 0xf, 0x00 }, | ||
163 | { WAIT_IDLE }, { 0xe, 0x99 }, { 0xf, 0x00 }, | ||
164 | { WAIT_IDLE }, { 0xe, 0x9a }, { 0xf, 0x00 }, | ||
165 | { WAIT_IDLE }, { 0xe, 0x9b }, { 0xf, 0x00 }, | ||
166 | { WAIT_IDLE }, { 0xe, 0x9c }, { 0xf, 0x00 }, | ||
167 | { WAIT_IDLE }, { 0xe, 0x9d }, { 0xf, 0x00 }, | ||
168 | { WAIT_IDLE }, { 0xe, 0x9e }, { 0xf, 0x00 }, | ||
169 | { WAIT_IDLE }, { 0xe, 0x9f }, { 0xf, 0x00 }, | ||
170 | { WAIT_IDLE }, { 0xe, 0xa0 }, { 0xf, 0x00 }, | ||
171 | { WAIT_IDLE }, { 0xe, 0xa1 }, { 0xf, 0x00 }, | ||
172 | { WAIT_IDLE }, { 0xe, 0xa2 }, { 0xf, 0x00 }, | ||
173 | { WAIT_IDLE }, { 0xe, 0xa3 }, { 0xf, 0x00 }, | ||
174 | { WAIT_IDLE }, { 0xe, 0xa4 }, { 0xf, 0x00 }, | ||
175 | { WAIT_IDLE }, { 0xe, 0xa5 }, { 0xf, 0x00 }, | ||
176 | { WAIT_IDLE }, { 0xe, 0xa6 }, { 0xf, 0x00 }, | ||
177 | { WAIT_IDLE }, { 0xe, 0xa7 }, { 0xf, 0x00 }, | ||
178 | { WAIT_IDLE }, { 0xe, 0xa8 }, { 0xf, 0x00 }, | ||
179 | { WAIT_IDLE }, { 0xe, 0xa9 }, { 0xf, 0x00 }, | ||
180 | { WAIT_IDLE }, { 0xe, 0xaa }, { 0xf, 0x00 }, | ||
181 | { WAIT_IDLE }, { 0xe, 0xab }, { 0xf, 0x00 }, | ||
182 | { WAIT_IDLE }, { 0xe, 0xac }, { 0xf, 0x00 }, | ||
183 | { WAIT_IDLE }, { 0xe, 0xad }, { 0xf, 0x00 }, | ||
184 | { WAIT_IDLE }, { 0xe, 0xae }, { 0xf, 0x00 }, | ||
185 | { WAIT_IDLE }, { 0xe, 0xaf }, { 0xf, 0x00 }, | ||
186 | { WAIT_IDLE }, { 0xe, 0xb0 }, { 0xf, 0x00 }, | ||
187 | { WAIT_IDLE }, { 0xe, 0xb1 }, { 0xf, 0x00 }, | ||
188 | { WAIT_IDLE }, { 0xe, 0xb2 }, { 0xf, 0x00 }, | ||
189 | { WAIT_IDLE }, { 0xe, 0xb3 }, { 0xf, 0x00 }, | ||
190 | { WAIT_IDLE }, { 0xe, 0xb4 }, { 0xf, 0x00 }, | ||
191 | { WAIT_IDLE }, { 0xe, 0xb5 }, { 0xf, 0x00 }, | ||
192 | { WAIT_IDLE }, { 0xe, 0xb6 }, { 0xf, 0x00 }, | ||
193 | { WAIT_IDLE }, { 0xe, 0xb7 }, { 0xf, 0x00 }, | ||
194 | { WAIT_IDLE }, { 0xe, 0xb8 }, { 0xf, 0x00 }, | ||
195 | { WAIT_IDLE }, { 0xe, 0xb9 }, { 0xf, 0x00 }, | ||
196 | { WAIT_IDLE }, { 0xe, 0xba }, { 0xf, 0x00 }, | ||
197 | { WAIT_IDLE }, { 0xe, 0xbb }, { 0xf, 0x00 }, | ||
198 | { WAIT_IDLE }, { 0xe, 0xbc }, { 0xf, 0x00 }, | ||
199 | { WAIT_IDLE }, { 0xe, 0xbd }, { 0xf, 0x00 }, | ||
200 | { WAIT_IDLE }, { 0xe, 0xbe }, { 0xf, 0x00 }, | ||
201 | { WAIT_IDLE }, { 0xe, 0xbf }, { 0xf, 0x00 }, | ||
202 | { WAIT_IDLE }, { 0xe, 0xc0 }, { 0xf, 0x00 }, | ||
203 | { WAIT_IDLE }, { 0xe, 0xc1 }, { 0xf, 0x00 }, | ||
204 | { WAIT_IDLE }, { 0xe, 0xc2 }, { 0xf, 0x00 }, | ||
205 | { WAIT_IDLE }, { 0xe, 0xc3 }, { 0xf, 0x00 }, | ||
206 | { WAIT_IDLE }, { 0xe, 0xc4 }, { 0xf, 0x00 }, | ||
207 | { WAIT_IDLE }, { 0xe, 0xc5 }, { 0xf, 0x00 }, | ||
208 | { WAIT_IDLE }, { 0xe, 0xc6 }, { 0xf, 0x00 }, | ||
209 | { WAIT_IDLE }, { 0xe, 0xc7 }, { 0xf, 0x00 }, | ||
210 | { WAIT_IDLE }, { 0xe, 0xc8 }, { 0xf, 0x00 }, | ||
211 | { WAIT_IDLE }, { 0xe, 0xc9 }, { 0xf, 0x00 }, | ||
212 | { WAIT_IDLE }, { 0xe, 0xca }, { 0xf, 0x00 }, | ||
213 | { WAIT_IDLE }, { 0xe, 0xcb }, { 0xf, 0x00 }, | ||
214 | { WAIT_IDLE }, { 0xe, 0xcc }, { 0xf, 0x00 }, | ||
215 | { WAIT_IDLE }, { 0xe, 0xcd }, { 0xf, 0x00 }, | ||
216 | { WAIT_IDLE }, { 0xe, 0xce }, { 0xf, 0x00 }, | ||
217 | { WAIT_IDLE }, { 0xe, 0xcf }, { 0xf, 0x00 }, | ||
218 | { WAIT_IDLE }, { 0xe, 0xd0 }, { 0xf, 0x00 }, | ||
219 | { WAIT_IDLE }, { 0xe, 0xd1 }, { 0xf, 0x00 }, | ||
220 | { WAIT_IDLE }, { 0xe, 0xd2 }, { 0xf, 0x00 }, | ||
221 | { WAIT_IDLE }, { 0xe, 0xd3 }, { 0xf, 0x00 }, | ||
222 | { WAIT_IDLE }, { 0xe, 0xd4 }, { 0xf, 0x00 }, | ||
223 | { WAIT_IDLE }, { 0xe, 0xd5 }, { 0xf, 0x00 }, | ||
224 | { WAIT_IDLE }, { 0xe, 0xd6 }, { 0xf, 0x00 }, | ||
225 | { WAIT_IDLE }, { 0xe, 0xd7 }, { 0xf, 0x00 }, | ||
226 | { WAIT_IDLE }, { 0xe, 0xd8 }, { 0xf, 0x00 }, | ||
227 | { WAIT_IDLE }, { 0xe, 0xd9 }, { 0xf, 0x00 }, | ||
228 | { WAIT_IDLE }, { 0xe, 0xda }, { 0xf, 0x00 }, | ||
229 | { WAIT_IDLE }, { 0xe, 0xdb }, { 0xf, 0x00 }, | ||
230 | { WAIT_IDLE }, { 0xe, 0xdc }, { 0xf, 0x00 }, | ||
231 | { WAIT_IDLE }, { 0xe, 0xdd }, { 0xf, 0x00 }, | ||
232 | { WAIT_IDLE }, { 0xe, 0xde }, { 0xf, 0x00 }, | ||
233 | { WAIT_IDLE }, { 0xe, 0xdf }, { 0xf, 0x00 }, | ||
234 | { WAIT_IDLE }, { 0xe, 0xe0 }, { 0xf, 0x00 }, | ||
235 | { WAIT_IDLE }, { 0xe, 0xe1 }, { 0xf, 0x00 }, | ||
236 | { WAIT_IDLE }, { 0xe, 0xe2 }, { 0xf, 0x00 }, | ||
237 | { WAIT_IDLE }, { 0xe, 0xe3 }, { 0xf, 0x00 }, | ||
238 | { WAIT_IDLE }, { 0xe, 0xe4 }, { 0xf, 0x00 }, | ||
239 | { WAIT_IDLE }, { 0xe, 0xe5 }, { 0xf, 0x00 }, | ||
240 | { WAIT_IDLE }, { 0xe, 0xe6 }, { 0xf, 0x00 }, | ||
241 | { WAIT_IDLE }, { 0xe, 0xe7 }, { 0xf, 0x00 }, | ||
242 | { WAIT_IDLE }, { 0xe, 0xe8 }, { 0xf, 0x00 }, | ||
243 | { WAIT_IDLE }, { 0xe, 0xe9 }, { 0xf, 0x00 }, | ||
244 | { WAIT_IDLE }, { 0xe, 0xea }, { 0xf, 0x00 }, | ||
245 | { WAIT_IDLE }, { 0xe, 0xeb }, { 0xf, 0x00 }, | ||
246 | { WAIT_IDLE }, { 0xe, 0xec }, { 0xf, 0x00 }, | ||
247 | { WAIT_IDLE }, { 0xe, 0xed }, { 0xf, 0x00 }, | ||
248 | { WAIT_IDLE }, { 0xe, 0xee }, { 0xf, 0x00 }, | ||
249 | { WAIT_IDLE }, { 0xe, 0xef }, { 0xf, 0x00 }, | ||
250 | { WAIT_IDLE }, { 0xe, 0xf0 }, { 0xf, 0x00 }, | ||
251 | { WAIT_IDLE }, { 0xe, 0xf1 }, { 0xf, 0x00 }, | ||
252 | { WAIT_IDLE }, { 0xe, 0xf2 }, { 0xf, 0x00 }, | ||
253 | { WAIT_IDLE }, { 0xe, 0xf3 }, { 0xf, 0x00 }, | ||
254 | { WAIT_IDLE }, { 0xe, 0xf4 }, { 0xf, 0x00 }, | ||
255 | { WAIT_IDLE }, { 0xe, 0xf5 }, { 0xf, 0x00 }, | ||
256 | { WAIT_IDLE }, { 0xe, 0xf6 }, { 0xf, 0x00 }, | ||
257 | { WAIT_IDLE }, { 0xe, 0xf7 }, { 0xf, 0x00 }, | ||
258 | { WAIT_IDLE }, { 0xe, 0xf8 }, { 0xf, 0x00 }, | ||
259 | { WAIT_IDLE }, { 0xe, 0xf9 }, { 0xf, 0x00 }, | ||
260 | { WAIT_IDLE }, { 0xe, 0xfa }, { 0xf, 0x00 }, | ||
261 | { WAIT_IDLE }, { 0xe, 0xfb }, { 0xf, 0x00 }, | ||
262 | { WAIT_IDLE }, { 0xe, 0xfc }, { 0xf, 0x00 }, | ||
263 | { WAIT_IDLE }, { 0xe, 0xfd }, { 0xf, 0x00 }, | ||
264 | { WAIT_IDLE }, { 0xe, 0xfe }, { 0xf, 0x00 }, | ||
265 | { WAIT_IDLE }, { 0xe, 0xff }, { 0xf, 0x00 }, | ||
266 | |||
267 | /* XXX But why do this twice? */ | ||
268 | { WAIT_IDLE }, { 0xe, 0x10 }, { 0xf, 0x00 }, | ||
269 | { WAIT_IDLE }, { 0xe, 0x11 }, { 0xf, 0x00 }, | ||
270 | { WAIT_IDLE }, { 0xe, 0x12 }, { 0xf, 0x00 }, | ||
271 | { WAIT_IDLE }, { 0xe, 0x13 }, { 0xf, 0x00 }, | ||
272 | { WAIT_IDLE }, { 0xe, 0x14 }, { 0xf, 0x00 }, | ||
273 | { WAIT_IDLE }, { 0xe, 0x15 }, { 0xf, 0x00 }, | ||
274 | { WAIT_IDLE }, { 0xe, 0x16 }, { 0xf, 0x00 }, | ||
275 | { WAIT_IDLE }, { 0xe, 0x17 }, { 0xf, 0x00 }, | ||
276 | { WAIT_IDLE }, { 0xe, 0x18 }, { 0xf, 0x00 }, | ||
277 | { WAIT_IDLE }, { 0xe, 0x19 }, { 0xf, 0x00 }, | ||
278 | { WAIT_IDLE }, { 0xe, 0x1a }, { 0xf, 0x00 }, | ||
279 | { WAIT_IDLE }, { 0xe, 0x1b }, { 0xf, 0x00 }, | ||
280 | { WAIT_IDLE }, { 0xe, 0x1c }, { 0xf, 0x00 }, | ||
281 | { WAIT_IDLE }, { 0xe, 0x1d }, { 0xf, 0x00 }, | ||
282 | { WAIT_IDLE }, { 0xe, 0x1e }, { 0xf, 0x00 }, | ||
283 | { WAIT_IDLE }, { 0xe, 0x1f }, { 0xf, 0x00 }, | ||
284 | { WAIT_IDLE }, { 0xe, 0x20 }, { 0xf, 0x00 }, | ||
285 | { WAIT_IDLE }, { 0xe, 0x21 }, { 0xf, 0x00 }, | ||
286 | { WAIT_IDLE }, { 0xe, 0x22 }, { 0xf, 0x00 }, | ||
287 | { WAIT_IDLE }, { 0xe, 0x23 }, { 0xf, 0x00 }, | ||
288 | { WAIT_IDLE }, { 0xe, 0x24 }, { 0xf, 0x00 }, | ||
289 | { WAIT_IDLE }, { 0xe, 0x25 }, { 0xf, 0x00 }, | ||
290 | { WAIT_IDLE }, { 0xe, 0x26 }, { 0xf, 0x00 }, | ||
291 | { WAIT_IDLE }, { 0xe, 0x27 }, { 0xf, 0x00 }, | ||
292 | { WAIT_IDLE }, { 0xe, 0x28 }, { 0xf, 0x00 }, | ||
293 | { WAIT_IDLE }, { 0xe, 0x29 }, { 0xf, 0x00 }, | ||
294 | { WAIT_IDLE }, { 0xe, 0x2a }, { 0xf, 0x00 }, | ||
295 | { WAIT_IDLE }, { 0xe, 0x2b }, { 0xf, 0x00 }, | ||
296 | { WAIT_IDLE }, { 0xe, 0x2c }, { 0xf, 0x00 }, | ||
297 | { WAIT_IDLE }, { 0xe, 0x2d }, { 0xf, 0x00 }, | ||
298 | { WAIT_IDLE }, { 0xe, 0x2e }, { 0xf, 0x00 }, | ||
299 | { WAIT_IDLE }, { 0xe, 0x2f }, { 0xf, 0x00 }, | ||
300 | { WAIT_IDLE }, { 0xe, 0x30 }, { 0xf, 0x00 }, | ||
301 | { WAIT_IDLE }, { 0xe, 0x31 }, { 0xf, 0x00 }, | ||
302 | { WAIT_IDLE }, { 0xe, 0x32 }, { 0xf, 0x00 }, | ||
303 | { WAIT_IDLE }, { 0xe, 0x33 }, { 0xf, 0x00 }, | ||
304 | { WAIT_IDLE }, { 0xe, 0x34 }, { 0xf, 0x00 }, | ||
305 | { WAIT_IDLE }, { 0xe, 0x35 }, { 0xf, 0x00 }, | ||
306 | { WAIT_IDLE }, { 0xe, 0x36 }, { 0xf, 0x00 }, | ||
307 | { WAIT_IDLE }, { 0xe, 0x37 }, { 0xf, 0x00 }, | ||
308 | { WAIT_IDLE }, { 0xe, 0x38 }, { 0xf, 0x00 }, | ||
309 | { WAIT_IDLE }, { 0xe, 0x39 }, { 0xf, 0x00 }, | ||
310 | { WAIT_IDLE }, { 0xe, 0x3a }, { 0xf, 0x00 }, | ||
311 | { WAIT_IDLE }, { 0xe, 0x3b }, { 0xf, 0x00 }, | ||
312 | { WAIT_IDLE }, { 0xe, 0x3c }, { 0xf, 0x00 }, | ||
313 | { WAIT_IDLE }, { 0xe, 0x3d }, { 0xf, 0x00 }, | ||
314 | { WAIT_IDLE }, { 0xe, 0x3e }, { 0xf, 0x00 }, | ||
315 | { WAIT_IDLE }, { 0xe, 0x3f }, { 0xf, 0x00 }, | ||
316 | { WAIT_IDLE }, { 0xe, 0x40 }, { 0xf, 0x00 }, | ||
317 | { WAIT_IDLE }, { 0xe, 0x41 }, { 0xf, 0x00 }, | ||
318 | { WAIT_IDLE }, { 0xe, 0x42 }, { 0xf, 0x00 }, | ||
319 | { WAIT_IDLE }, { 0xe, 0x43 }, { 0xf, 0x00 }, | ||
320 | { WAIT_IDLE }, { 0xe, 0x44 }, { 0xf, 0x00 }, | ||
321 | { WAIT_IDLE }, { 0xe, 0x45 }, { 0xf, 0x00 }, | ||
322 | { WAIT_IDLE }, { 0xe, 0x46 }, { 0xf, 0x00 }, | ||
323 | { WAIT_IDLE }, { 0xe, 0x47 }, { 0xf, 0x00 }, | ||
324 | { WAIT_IDLE }, { 0xe, 0x48 }, { 0xf, 0x00 }, | ||
325 | { WAIT_IDLE }, { 0xe, 0x49 }, { 0xf, 0x00 }, | ||
326 | { WAIT_IDLE }, { 0xe, 0x4a }, { 0xf, 0x00 }, | ||
327 | { WAIT_IDLE }, { 0xe, 0x4b }, { 0xf, 0x00 }, | ||
328 | { WAIT_IDLE }, { 0xe, 0x4c }, { 0xf, 0x00 }, | ||
329 | { WAIT_IDLE }, { 0xe, 0x4d }, { 0xf, 0x00 }, | ||
330 | { WAIT_IDLE }, { 0xe, 0x4e }, { 0xf, 0x00 }, | ||
331 | { WAIT_IDLE }, { 0xe, 0x4f }, { 0xf, 0x00 }, | ||
332 | { WAIT_IDLE }, { 0xe, 0x50 }, { 0xf, 0x00 }, | ||
333 | { WAIT_IDLE }, { 0xe, 0x51 }, { 0xf, 0x00 }, | ||
334 | { WAIT_IDLE }, { 0xe, 0x52 }, { 0xf, 0x00 }, | ||
335 | { WAIT_IDLE }, { 0xe, 0x53 }, { 0xf, 0x00 }, | ||
336 | { WAIT_IDLE }, { 0xe, 0x54 }, { 0xf, 0x00 }, | ||
337 | { WAIT_IDLE }, { 0xe, 0x55 }, { 0xf, 0x00 }, | ||
338 | { WAIT_IDLE }, { 0xe, 0x56 }, { 0xf, 0x00 }, | ||
339 | { WAIT_IDLE }, { 0xe, 0x57 }, { 0xf, 0x00 }, | ||
340 | { WAIT_IDLE }, { 0xe, 0x58 }, { 0xf, 0x00 }, | ||
341 | { WAIT_IDLE }, { 0xe, 0x59 }, { 0xf, 0x00 }, | ||
342 | { WAIT_IDLE }, { 0xe, 0x5a }, { 0xf, 0x00 }, | ||
343 | { WAIT_IDLE }, { 0xe, 0x5b }, { 0xf, 0x00 }, | ||
344 | { WAIT_IDLE }, { 0xe, 0x5c }, { 0xf, 0x00 }, | ||
345 | { WAIT_IDLE }, { 0xe, 0x5d }, { 0xf, 0x00 }, | ||
346 | { WAIT_IDLE }, { 0xe, 0x5e }, { 0xf, 0x00 }, | ||
347 | { WAIT_IDLE }, { 0xe, 0x5f }, { 0xf, 0x00 }, | ||
348 | { WAIT_IDLE }, { 0xe, 0x60 }, { 0xf, 0x00 }, | ||
349 | { WAIT_IDLE }, { 0xe, 0x61 }, { 0xf, 0x00 }, | ||
350 | { WAIT_IDLE }, { 0xe, 0x62 }, { 0xf, 0x00 }, | ||
351 | { WAIT_IDLE }, { 0xe, 0x63 }, { 0xf, 0x00 }, | ||
352 | { WAIT_IDLE }, { 0xe, 0x64 }, { 0xf, 0x00 }, | ||
353 | { WAIT_IDLE }, { 0xe, 0x65 }, { 0xf, 0x00 }, | ||
354 | { WAIT_IDLE }, { 0xe, 0x66 }, { 0xf, 0x00 }, | ||
355 | { WAIT_IDLE }, { 0xe, 0x67 }, { 0xf, 0x00 }, | ||
356 | { WAIT_IDLE }, { 0xe, 0x68 }, { 0xf, 0x00 }, | ||
357 | { WAIT_IDLE }, { 0xe, 0x69 }, { 0xf, 0x00 }, | ||
358 | { WAIT_IDLE }, { 0xe, 0x6a }, { 0xf, 0x00 }, | ||
359 | { WAIT_IDLE }, { 0xe, 0x6b }, { 0xf, 0x00 }, | ||
360 | { WAIT_IDLE }, { 0xe, 0x6c }, { 0xf, 0x00 }, | ||
361 | { WAIT_IDLE }, { 0xe, 0x6d }, { 0xf, 0x00 }, | ||
362 | { WAIT_IDLE }, { 0xe, 0x6e }, { 0xf, 0x00 }, | ||
363 | { WAIT_IDLE }, { 0xe, 0x6f }, { 0xf, 0x00 }, | ||
364 | { WAIT_IDLE }, { 0xe, 0x70 }, { 0xf, 0x00 }, | ||
365 | { WAIT_IDLE }, { 0xe, 0x71 }, { 0xf, 0x00 }, | ||
366 | { WAIT_IDLE }, { 0xe, 0x72 }, { 0xf, 0x00 }, | ||
367 | { WAIT_IDLE }, { 0xe, 0x73 }, { 0xf, 0x00 }, | ||
368 | { WAIT_IDLE }, { 0xe, 0x74 }, { 0xf, 0x00 }, | ||
369 | { WAIT_IDLE }, { 0xe, 0x75 }, { 0xf, 0x00 }, | ||
370 | { WAIT_IDLE }, { 0xe, 0x76 }, { 0xf, 0x00 }, | ||
371 | { WAIT_IDLE }, { 0xe, 0x77 }, { 0xf, 0x00 }, | ||
372 | { WAIT_IDLE }, { 0xe, 0x78 }, { 0xf, 0x00 }, | ||
373 | { WAIT_IDLE }, { 0xe, 0x79 }, { 0xf, 0x00 }, | ||
374 | { WAIT_IDLE }, { 0xe, 0x7a }, { 0xf, 0x00 }, | ||
375 | { WAIT_IDLE }, { 0xe, 0x7b }, { 0xf, 0x00 }, | ||
376 | { WAIT_IDLE }, { 0xe, 0x7c }, { 0xf, 0x00 }, | ||
377 | { WAIT_IDLE }, { 0xe, 0x7d }, { 0xf, 0x00 }, | ||
378 | { WAIT_IDLE }, { 0xe, 0x7e }, { 0xf, 0x00 }, | ||
379 | { WAIT_IDLE }, { 0xe, 0x7f }, { 0xf, 0x00 }, | ||
380 | { WAIT_IDLE }, { 0xe, 0x80 }, { 0xf, 0x00 }, | ||
381 | { WAIT_IDLE }, { 0xe, 0x81 }, { 0xf, 0x00 }, | ||
382 | { WAIT_IDLE }, { 0xe, 0x82 }, { 0xf, 0x00 }, | ||
383 | { WAIT_IDLE }, { 0xe, 0x83 }, { 0xf, 0x00 }, | ||
384 | { WAIT_IDLE }, { 0xe, 0x84 }, { 0xf, 0x00 }, | ||
385 | { WAIT_IDLE }, { 0xe, 0x85 }, { 0xf, 0x00 }, | ||
386 | { WAIT_IDLE }, { 0xe, 0x86 }, { 0xf, 0x00 }, | ||
387 | { WAIT_IDLE }, { 0xe, 0x87 }, { 0xf, 0x00 }, | ||
388 | { WAIT_IDLE }, { 0xe, 0x88 }, { 0xf, 0x00 }, | ||
389 | { WAIT_IDLE }, { 0xe, 0x89 }, { 0xf, 0x00 }, | ||
390 | { WAIT_IDLE }, { 0xe, 0x8a }, { 0xf, 0x00 }, | ||
391 | { WAIT_IDLE }, { 0xe, 0x8b }, { 0xf, 0x00 }, | ||
392 | { WAIT_IDLE }, { 0xe, 0x8c }, { 0xf, 0x00 }, | ||
393 | { WAIT_IDLE }, { 0xe, 0x8d }, { 0xf, 0x00 }, | ||
394 | { WAIT_IDLE }, { 0xe, 0x8e }, { 0xf, 0x00 }, | ||
395 | { WAIT_IDLE }, { 0xe, 0x8f }, { 0xf, 0x00 }, | ||
396 | { WAIT_IDLE }, { 0xe, 0x90 }, { 0xf, 0x00 }, | ||
397 | { WAIT_IDLE }, { 0xe, 0x91 }, { 0xf, 0x00 }, | ||
398 | { WAIT_IDLE }, { 0xe, 0x92 }, { 0xf, 0x00 }, | ||
399 | { WAIT_IDLE }, { 0xe, 0x93 }, { 0xf, 0x00 }, | ||
400 | { WAIT_IDLE }, { 0xe, 0x94 }, { 0xf, 0x00 }, | ||
401 | { WAIT_IDLE }, { 0xe, 0x95 }, { 0xf, 0x00 }, | ||
402 | { WAIT_IDLE }, { 0xe, 0x96 }, { 0xf, 0x00 }, | ||
403 | { WAIT_IDLE }, { 0xe, 0x97 }, { 0xf, 0x00 }, | ||
404 | { WAIT_IDLE }, { 0xe, 0x98 }, { 0xf, 0x00 }, | ||
405 | { WAIT_IDLE }, { 0xe, 0x99 }, { 0xf, 0x00 }, | ||
406 | { WAIT_IDLE }, { 0xe, 0x9a }, { 0xf, 0x00 }, | ||
407 | { WAIT_IDLE }, { 0xe, 0x9b }, { 0xf, 0x00 }, | ||
408 | { WAIT_IDLE }, { 0xe, 0x9c }, { 0xf, 0x00 }, | ||
409 | { WAIT_IDLE }, { 0xe, 0x9d }, { 0xf, 0x00 }, | ||
410 | { WAIT_IDLE }, { 0xe, 0x9e }, { 0xf, 0x00 }, | ||
411 | { WAIT_IDLE }, { 0xe, 0x9f }, { 0xf, 0x00 }, | ||
412 | { WAIT_IDLE }, { 0xe, 0xa0 }, { 0xf, 0x00 }, | ||
413 | { WAIT_IDLE }, { 0xe, 0xa1 }, { 0xf, 0x00 }, | ||
414 | { WAIT_IDLE }, { 0xe, 0xa2 }, { 0xf, 0x00 }, | ||
415 | { WAIT_IDLE }, { 0xe, 0xa3 }, { 0xf, 0x00 }, | ||
416 | { WAIT_IDLE }, { 0xe, 0xa4 }, { 0xf, 0x00 }, | ||
417 | { WAIT_IDLE }, { 0xe, 0xa5 }, { 0xf, 0x00 }, | ||
418 | { WAIT_IDLE }, { 0xe, 0xa6 }, { 0xf, 0x00 }, | ||
419 | { WAIT_IDLE }, { 0xe, 0xa7 }, { 0xf, 0x00 }, | ||
420 | { WAIT_IDLE }, { 0xe, 0xa8 }, { 0xf, 0x00 }, | ||
421 | { WAIT_IDLE }, { 0xe, 0xa9 }, { 0xf, 0x00 }, | ||
422 | { WAIT_IDLE }, { 0xe, 0xaa }, { 0xf, 0x00 }, | ||
423 | { WAIT_IDLE }, { 0xe, 0xab }, { 0xf, 0x00 }, | ||
424 | { WAIT_IDLE }, { 0xe, 0xac }, { 0xf, 0x00 }, | ||
425 | { WAIT_IDLE }, { 0xe, 0xad }, { 0xf, 0x00 }, | ||
426 | { WAIT_IDLE }, { 0xe, 0xae }, { 0xf, 0x00 }, | ||
427 | { WAIT_IDLE }, { 0xe, 0xaf }, { 0xf, 0x00 }, | ||
428 | { WAIT_IDLE }, { 0xe, 0xb0 }, { 0xf, 0x00 }, | ||
429 | { WAIT_IDLE }, { 0xe, 0xb1 }, { 0xf, 0x00 }, | ||
430 | { WAIT_IDLE }, { 0xe, 0xb2 }, { 0xf, 0x00 }, | ||
431 | { WAIT_IDLE }, { 0xe, 0xb3 }, { 0xf, 0x00 }, | ||
432 | { WAIT_IDLE }, { 0xe, 0xb4 }, { 0xf, 0x00 }, | ||
433 | { WAIT_IDLE }, { 0xe, 0xb5 }, { 0xf, 0x00 }, | ||
434 | { WAIT_IDLE }, { 0xe, 0xb6 }, { 0xf, 0x00 }, | ||
435 | { WAIT_IDLE }, { 0xe, 0xb7 }, { 0xf, 0x00 }, | ||
436 | { WAIT_IDLE }, { 0xe, 0xb8 }, { 0xf, 0x00 }, | ||
437 | { WAIT_IDLE }, { 0xe, 0xb9 }, { 0xf, 0x00 }, | ||
438 | { WAIT_IDLE }, { 0xe, 0xba }, { 0xf, 0x00 }, | ||
439 | { WAIT_IDLE }, { 0xe, 0xbb }, { 0xf, 0x00 }, | ||
440 | { WAIT_IDLE }, { 0xe, 0xbc }, { 0xf, 0x00 }, | ||
441 | { WAIT_IDLE }, { 0xe, 0xbd }, { 0xf, 0x00 }, | ||
442 | { WAIT_IDLE }, { 0xe, 0xbe }, { 0xf, 0x00 }, | ||
443 | { WAIT_IDLE }, { 0xe, 0xbf }, { 0xf, 0x00 }, | ||
444 | { WAIT_IDLE }, { 0xe, 0xc0 }, { 0xf, 0x00 }, | ||
445 | { WAIT_IDLE }, { 0xe, 0xc1 }, { 0xf, 0x00 }, | ||
446 | { WAIT_IDLE }, { 0xe, 0xc2 }, { 0xf, 0x00 }, | ||
447 | { WAIT_IDLE }, { 0xe, 0xc3 }, { 0xf, 0x00 }, | ||
448 | { WAIT_IDLE }, { 0xe, 0xc4 }, { 0xf, 0x00 }, | ||
449 | { WAIT_IDLE }, { 0xe, 0xc5 }, { 0xf, 0x00 }, | ||
450 | { WAIT_IDLE }, { 0xe, 0xc6 }, { 0xf, 0x00 }, | ||
451 | { WAIT_IDLE }, { 0xe, 0xc7 }, { 0xf, 0x00 }, | ||
452 | { WAIT_IDLE }, { 0xe, 0xc8 }, { 0xf, 0x00 }, | ||
453 | { WAIT_IDLE }, { 0xe, 0xc9 }, { 0xf, 0x00 }, | ||
454 | { WAIT_IDLE }, { 0xe, 0xca }, { 0xf, 0x00 }, | ||
455 | { WAIT_IDLE }, { 0xe, 0xcb }, { 0xf, 0x00 }, | ||
456 | { WAIT_IDLE }, { 0xe, 0xcc }, { 0xf, 0x00 }, | ||
457 | { WAIT_IDLE }, { 0xe, 0xcd }, { 0xf, 0x00 }, | ||
458 | { WAIT_IDLE }, { 0xe, 0xce }, { 0xf, 0x00 }, | ||
459 | { WAIT_IDLE }, { 0xe, 0xcf }, { 0xf, 0x00 }, | ||
460 | { WAIT_IDLE }, { 0xe, 0xd0 }, { 0xf, 0x00 }, | ||
461 | { WAIT_IDLE }, { 0xe, 0xd1 }, { 0xf, 0x00 }, | ||
462 | { WAIT_IDLE }, { 0xe, 0xd2 }, { 0xf, 0x00 }, | ||
463 | { WAIT_IDLE }, { 0xe, 0xd3 }, { 0xf, 0x00 }, | ||
464 | { WAIT_IDLE }, { 0xe, 0xd4 }, { 0xf, 0x00 }, | ||
465 | { WAIT_IDLE }, { 0xe, 0xd5 }, { 0xf, 0x00 }, | ||
466 | { WAIT_IDLE }, { 0xe, 0xd6 }, { 0xf, 0x00 }, | ||
467 | { WAIT_IDLE }, { 0xe, 0xd7 }, { 0xf, 0x00 }, | ||
468 | { WAIT_IDLE }, { 0xe, 0xd8 }, { 0xf, 0x00 }, | ||
469 | { WAIT_IDLE }, { 0xe, 0xd9 }, { 0xf, 0x00 }, | ||
470 | { WAIT_IDLE }, { 0xe, 0xda }, { 0xf, 0x00 }, | ||
471 | { WAIT_IDLE }, { 0xe, 0xdb }, { 0xf, 0x00 }, | ||
472 | { WAIT_IDLE }, { 0xe, 0xdc }, { 0xf, 0x00 }, | ||
473 | { WAIT_IDLE }, { 0xe, 0xdd }, { 0xf, 0x00 }, | ||
474 | { WAIT_IDLE }, { 0xe, 0xde }, { 0xf, 0x00 }, | ||
475 | { WAIT_IDLE }, { 0xe, 0xdf }, { 0xf, 0x00 }, | ||
476 | { WAIT_IDLE }, { 0xe, 0xe0 }, { 0xf, 0x00 }, | ||
477 | { WAIT_IDLE }, { 0xe, 0xe1 }, { 0xf, 0x00 }, | ||
478 | { WAIT_IDLE }, { 0xe, 0xe2 }, { 0xf, 0x00 }, | ||
479 | { WAIT_IDLE }, { 0xe, 0xe3 }, { 0xf, 0x00 }, | ||
480 | { WAIT_IDLE }, { 0xe, 0xe4 }, { 0xf, 0x00 }, | ||
481 | { WAIT_IDLE }, { 0xe, 0xe5 }, { 0xf, 0x00 }, | ||
482 | { WAIT_IDLE }, { 0xe, 0xe6 }, { 0xf, 0x00 }, | ||
483 | { WAIT_IDLE }, { 0xe, 0xe7 }, { 0xf, 0x00 }, | ||
484 | { WAIT_IDLE }, { 0xe, 0xe8 }, { 0xf, 0x00 }, | ||
485 | { WAIT_IDLE }, { 0xe, 0xe9 }, { 0xf, 0x00 }, | ||
486 | { WAIT_IDLE }, { 0xe, 0xea }, { 0xf, 0x00 }, | ||
487 | { WAIT_IDLE }, { 0xe, 0xeb }, { 0xf, 0x00 }, | ||
488 | { WAIT_IDLE }, { 0xe, 0xec }, { 0xf, 0x00 }, | ||
489 | { WAIT_IDLE }, { 0xe, 0xed }, { 0xf, 0x00 }, | ||
490 | { WAIT_IDLE }, { 0xe, 0xee }, { 0xf, 0x00 }, | ||
491 | { WAIT_IDLE }, { 0xe, 0xef }, { 0xf, 0x00 }, | ||
492 | { WAIT_IDLE }, { 0xe, 0xf0 }, { 0xf, 0x00 }, | ||
493 | { WAIT_IDLE }, { 0xe, 0xf1 }, { 0xf, 0x00 }, | ||
494 | { WAIT_IDLE }, { 0xe, 0xf2 }, { 0xf, 0x00 }, | ||
495 | { WAIT_IDLE }, { 0xe, 0xf3 }, { 0xf, 0x00 }, | ||
496 | { WAIT_IDLE }, { 0xe, 0xf4 }, { 0xf, 0x00 }, | ||
497 | { WAIT_IDLE }, { 0xe, 0xf5 }, { 0xf, 0x00 }, | ||
498 | { WAIT_IDLE }, { 0xe, 0xf6 }, { 0xf, 0x00 }, | ||
499 | { WAIT_IDLE }, { 0xe, 0xf7 }, { 0xf, 0x00 }, | ||
500 | { WAIT_IDLE }, { 0xe, 0xf8 }, { 0xf, 0x00 }, | ||
501 | { WAIT_IDLE }, { 0xe, 0xf9 }, { 0xf, 0x00 }, | ||
502 | { WAIT_IDLE }, { 0xe, 0xfa }, { 0xf, 0x00 }, | ||
503 | { WAIT_IDLE }, { 0xe, 0xfb }, { 0xf, 0x00 }, | ||
504 | { WAIT_IDLE }, { 0xe, 0xfc }, { 0xf, 0x00 }, | ||
505 | { WAIT_IDLE }, { 0xe, 0xfd }, { 0xf, 0x00 }, | ||
506 | { WAIT_IDLE }, { 0xe, 0xfe }, { 0xf, 0x00 }, | ||
507 | { WAIT_IDLE }, { 0xe, 0xff }, { 0xf, 0x00 }, | ||
508 | |||
509 | /* mute on */ | ||
510 | { WAIT_IDLE }, { 0x8, 0x02 }, | ||
511 | |||
512 | { WAIT_IDLE }, { 0xb, 0x07 }, { 0xa, 0x44 }, { 0xd, 0x00 }, { 0xc, 0x00 }, | ||
513 | { WAIT_IDLE }, { 0xb, 0x07 }, { 0xa, 0x42 }, { 0xd, 0x00 }, { 0xc, 0x00 }, | ||
514 | { WAIT_IDLE }, { 0xb, 0x07 }, { 0xa, 0x43 }, { 0xd, 0x00 }, { 0xc, 0x00 }, | ||
515 | { WAIT_IDLE }, { 0xb, 0x07 }, { 0xa, 0x7c }, { 0xd, 0x00 }, { 0xc, 0x00 }, | ||
516 | { WAIT_IDLE }, { 0xb, 0x07 }, { 0xa, 0x7e }, { 0xd, 0x00 }, { 0xc, 0x00 }, | ||
517 | { WAIT_IDLE }, { 0xb, 0x07 }, { 0xa, 0x46 }, { 0xd, 0x00 }, { 0xc, 0x00 }, | ||
518 | { WAIT_IDLE }, { 0xb, 0x07 }, { 0xa, 0x49 }, { 0xd, 0x00 }, { 0xc, 0x00 }, | ||
519 | { WAIT_IDLE }, { 0xb, 0x07 }, { 0xa, 0x47 }, { 0xd, 0x00 }, { 0xc, 0x00 }, | ||
520 | { WAIT_IDLE }, { 0xb, 0x07 }, { 0xa, 0x4a }, { 0xd, 0x00 }, { 0xc, 0x00 }, | ||
521 | |||
522 | /* either because of stupidity by TB's programmers, or because it | ||
523 | actually does something, rezero the MOD page. */ | ||
524 | { WAIT_IDLE }, { 0xe, 0x10 }, { 0xf, 0x00 }, | ||
525 | { WAIT_IDLE }, { 0xe, 0x11 }, { 0xf, 0x00 }, | ||
526 | { WAIT_IDLE }, { 0xe, 0x12 }, { 0xf, 0x00 }, | ||
527 | { WAIT_IDLE }, { 0xe, 0x13 }, { 0xf, 0x00 }, | ||
528 | { WAIT_IDLE }, { 0xe, 0x14 }, { 0xf, 0x00 }, | ||
529 | { WAIT_IDLE }, { 0xe, 0x15 }, { 0xf, 0x00 }, | ||
530 | { WAIT_IDLE }, { 0xe, 0x16 }, { 0xf, 0x00 }, | ||
531 | { WAIT_IDLE }, { 0xe, 0x17 }, { 0xf, 0x00 }, | ||
532 | { WAIT_IDLE }, { 0xe, 0x18 }, { 0xf, 0x00 }, | ||
533 | { WAIT_IDLE }, { 0xe, 0x19 }, { 0xf, 0x00 }, | ||
534 | { WAIT_IDLE }, { 0xe, 0x1a }, { 0xf, 0x00 }, | ||
535 | { WAIT_IDLE }, { 0xe, 0x1b }, { 0xf, 0x00 }, | ||
536 | { WAIT_IDLE }, { 0xe, 0x1c }, { 0xf, 0x00 }, | ||
537 | { WAIT_IDLE }, { 0xe, 0x1d }, { 0xf, 0x00 }, | ||
538 | { WAIT_IDLE }, { 0xe, 0x1e }, { 0xf, 0x00 }, | ||
539 | { WAIT_IDLE }, { 0xe, 0x1f }, { 0xf, 0x00 }, | ||
540 | { WAIT_IDLE }, { 0xe, 0x20 }, { 0xf, 0x00 }, | ||
541 | { WAIT_IDLE }, { 0xe, 0x21 }, { 0xf, 0x00 }, | ||
542 | { WAIT_IDLE }, { 0xe, 0x22 }, { 0xf, 0x00 }, | ||
543 | { WAIT_IDLE }, { 0xe, 0x23 }, { 0xf, 0x00 }, | ||
544 | { WAIT_IDLE }, { 0xe, 0x24 }, { 0xf, 0x00 }, | ||
545 | { WAIT_IDLE }, { 0xe, 0x25 }, { 0xf, 0x00 }, | ||
546 | { WAIT_IDLE }, { 0xe, 0x26 }, { 0xf, 0x00 }, | ||
547 | { WAIT_IDLE }, { 0xe, 0x27 }, { 0xf, 0x00 }, | ||
548 | { WAIT_IDLE }, { 0xe, 0x28 }, { 0xf, 0x00 }, | ||
549 | { WAIT_IDLE }, { 0xe, 0x29 }, { 0xf, 0x00 }, | ||
550 | { WAIT_IDLE }, { 0xe, 0x2a }, { 0xf, 0x00 }, | ||
551 | { WAIT_IDLE }, { 0xe, 0x2b }, { 0xf, 0x00 }, | ||
552 | { WAIT_IDLE }, { 0xe, 0x2c }, { 0xf, 0x00 }, | ||
553 | { WAIT_IDLE }, { 0xe, 0x2d }, { 0xf, 0x00 }, | ||
554 | { WAIT_IDLE }, { 0xe, 0x2e }, { 0xf, 0x00 }, | ||
555 | { WAIT_IDLE }, { 0xe, 0x2f }, { 0xf, 0x00 }, | ||
556 | { WAIT_IDLE }, { 0xe, 0x30 }, { 0xf, 0x00 }, | ||
557 | { WAIT_IDLE }, { 0xe, 0x31 }, { 0xf, 0x00 }, | ||
558 | { WAIT_IDLE }, { 0xe, 0x32 }, { 0xf, 0x00 }, | ||
559 | { WAIT_IDLE }, { 0xe, 0x33 }, { 0xf, 0x00 }, | ||
560 | { WAIT_IDLE }, { 0xe, 0x34 }, { 0xf, 0x00 }, | ||
561 | { WAIT_IDLE }, { 0xe, 0x35 }, { 0xf, 0x00 }, | ||
562 | { WAIT_IDLE }, { 0xe, 0x36 }, { 0xf, 0x00 }, | ||
563 | { WAIT_IDLE }, { 0xe, 0x37 }, { 0xf, 0x00 }, | ||
564 | { WAIT_IDLE }, { 0xe, 0x38 }, { 0xf, 0x00 }, | ||
565 | { WAIT_IDLE }, { 0xe, 0x39 }, { 0xf, 0x00 }, | ||
566 | { WAIT_IDLE }, { 0xe, 0x3a }, { 0xf, 0x00 }, | ||
567 | { WAIT_IDLE }, { 0xe, 0x3b }, { 0xf, 0x00 }, | ||
568 | { WAIT_IDLE }, { 0xe, 0x3c }, { 0xf, 0x00 }, | ||
569 | { WAIT_IDLE }, { 0xe, 0x3d }, { 0xf, 0x00 }, | ||
570 | { WAIT_IDLE }, { 0xe, 0x3e }, { 0xf, 0x00 }, | ||
571 | { WAIT_IDLE }, { 0xe, 0x3f }, { 0xf, 0x00 }, | ||
572 | { WAIT_IDLE }, { 0xe, 0x40 }, { 0xf, 0x00 }, | ||
573 | { WAIT_IDLE }, { 0xe, 0x41 }, { 0xf, 0x00 }, | ||
574 | { WAIT_IDLE }, { 0xe, 0x42 }, { 0xf, 0x00 }, | ||
575 | { WAIT_IDLE }, { 0xe, 0x43 }, { 0xf, 0x00 }, | ||
576 | { WAIT_IDLE }, { 0xe, 0x44 }, { 0xf, 0x00 }, | ||
577 | { WAIT_IDLE }, { 0xe, 0x45 }, { 0xf, 0x00 }, | ||
578 | { WAIT_IDLE }, { 0xe, 0x46 }, { 0xf, 0x00 }, | ||
579 | { WAIT_IDLE }, { 0xe, 0x47 }, { 0xf, 0x00 }, | ||
580 | { WAIT_IDLE }, { 0xe, 0x48 }, { 0xf, 0x00 }, | ||
581 | { WAIT_IDLE }, { 0xe, 0x49 }, { 0xf, 0x00 }, | ||
582 | { WAIT_IDLE }, { 0xe, 0x4a }, { 0xf, 0x00 }, | ||
583 | { WAIT_IDLE }, { 0xe, 0x4b }, { 0xf, 0x00 }, | ||
584 | { WAIT_IDLE }, { 0xe, 0x4c }, { 0xf, 0x00 }, | ||
585 | { WAIT_IDLE }, { 0xe, 0x4d }, { 0xf, 0x00 }, | ||
586 | { WAIT_IDLE }, { 0xe, 0x4e }, { 0xf, 0x00 }, | ||
587 | { WAIT_IDLE }, { 0xe, 0x4f }, { 0xf, 0x00 }, | ||
588 | { WAIT_IDLE }, { 0xe, 0x50 }, { 0xf, 0x00 }, | ||
589 | { WAIT_IDLE }, { 0xe, 0x51 }, { 0xf, 0x00 }, | ||
590 | { WAIT_IDLE }, { 0xe, 0x52 }, { 0xf, 0x00 }, | ||
591 | { WAIT_IDLE }, { 0xe, 0x53 }, { 0xf, 0x00 }, | ||
592 | { WAIT_IDLE }, { 0xe, 0x54 }, { 0xf, 0x00 }, | ||
593 | { WAIT_IDLE }, { 0xe, 0x55 }, { 0xf, 0x00 }, | ||
594 | { WAIT_IDLE }, { 0xe, 0x56 }, { 0xf, 0x00 }, | ||
595 | { WAIT_IDLE }, { 0xe, 0x57 }, { 0xf, 0x00 }, | ||
596 | { WAIT_IDLE }, { 0xe, 0x58 }, { 0xf, 0x00 }, | ||
597 | { WAIT_IDLE }, { 0xe, 0x59 }, { 0xf, 0x00 }, | ||
598 | { WAIT_IDLE }, { 0xe, 0x5a }, { 0xf, 0x00 }, | ||
599 | { WAIT_IDLE }, { 0xe, 0x5b }, { 0xf, 0x00 }, | ||
600 | { WAIT_IDLE }, { 0xe, 0x5c }, { 0xf, 0x00 }, | ||
601 | { WAIT_IDLE }, { 0xe, 0x5d }, { 0xf, 0x00 }, | ||
602 | { WAIT_IDLE }, { 0xe, 0x5e }, { 0xf, 0x00 }, | ||
603 | { WAIT_IDLE }, { 0xe, 0x5f }, { 0xf, 0x00 }, | ||
604 | { WAIT_IDLE }, { 0xe, 0x60 }, { 0xf, 0x00 }, | ||
605 | { WAIT_IDLE }, { 0xe, 0x61 }, { 0xf, 0x00 }, | ||
606 | { WAIT_IDLE }, { 0xe, 0x62 }, { 0xf, 0x00 }, | ||
607 | { WAIT_IDLE }, { 0xe, 0x63 }, { 0xf, 0x00 }, | ||
608 | { WAIT_IDLE }, { 0xe, 0x64 }, { 0xf, 0x00 }, | ||
609 | { WAIT_IDLE }, { 0xe, 0x65 }, { 0xf, 0x00 }, | ||
610 | { WAIT_IDLE }, { 0xe, 0x66 }, { 0xf, 0x00 }, | ||
611 | { WAIT_IDLE }, { 0xe, 0x67 }, { 0xf, 0x00 }, | ||
612 | { WAIT_IDLE }, { 0xe, 0x68 }, { 0xf, 0x00 }, | ||
613 | { WAIT_IDLE }, { 0xe, 0x69 }, { 0xf, 0x00 }, | ||
614 | { WAIT_IDLE }, { 0xe, 0x6a }, { 0xf, 0x00 }, | ||
615 | { WAIT_IDLE }, { 0xe, 0x6b }, { 0xf, 0x00 }, | ||
616 | { WAIT_IDLE }, { 0xe, 0x6c }, { 0xf, 0x00 }, | ||
617 | { WAIT_IDLE }, { 0xe, 0x6d }, { 0xf, 0x00 }, | ||
618 | { WAIT_IDLE }, { 0xe, 0x6e }, { 0xf, 0x00 }, | ||
619 | { WAIT_IDLE }, { 0xe, 0x6f }, { 0xf, 0x00 }, | ||
620 | { WAIT_IDLE }, { 0xe, 0x70 }, { 0xf, 0x00 }, | ||
621 | { WAIT_IDLE }, { 0xe, 0x71 }, { 0xf, 0x00 }, | ||
622 | { WAIT_IDLE }, { 0xe, 0x72 }, { 0xf, 0x00 }, | ||
623 | { WAIT_IDLE }, { 0xe, 0x73 }, { 0xf, 0x00 }, | ||
624 | { WAIT_IDLE }, { 0xe, 0x74 }, { 0xf, 0x00 }, | ||
625 | { WAIT_IDLE }, { 0xe, 0x75 }, { 0xf, 0x00 }, | ||
626 | { WAIT_IDLE }, { 0xe, 0x76 }, { 0xf, 0x00 }, | ||
627 | { WAIT_IDLE }, { 0xe, 0x77 }, { 0xf, 0x00 }, | ||
628 | { WAIT_IDLE }, { 0xe, 0x78 }, { 0xf, 0x00 }, | ||
629 | { WAIT_IDLE }, { 0xe, 0x79 }, { 0xf, 0x00 }, | ||
630 | { WAIT_IDLE }, { 0xe, 0x7a }, { 0xf, 0x00 }, | ||
631 | { WAIT_IDLE }, { 0xe, 0x7b }, { 0xf, 0x00 }, | ||
632 | { WAIT_IDLE }, { 0xe, 0x7c }, { 0xf, 0x00 }, | ||
633 | { WAIT_IDLE }, { 0xe, 0x7d }, { 0xf, 0x00 }, | ||
634 | { WAIT_IDLE }, { 0xe, 0x7e }, { 0xf, 0x00 }, | ||
635 | { WAIT_IDLE }, { 0xe, 0x7f }, { 0xf, 0x00 }, | ||
636 | { WAIT_IDLE }, { 0xe, 0x80 }, { 0xf, 0x00 }, | ||
637 | { WAIT_IDLE }, { 0xe, 0x81 }, { 0xf, 0x00 }, | ||
638 | { WAIT_IDLE }, { 0xe, 0x82 }, { 0xf, 0x00 }, | ||
639 | { WAIT_IDLE }, { 0xe, 0x83 }, { 0xf, 0x00 }, | ||
640 | { WAIT_IDLE }, { 0xe, 0x84 }, { 0xf, 0x00 }, | ||
641 | { WAIT_IDLE }, { 0xe, 0x85 }, { 0xf, 0x00 }, | ||
642 | { WAIT_IDLE }, { 0xe, 0x86 }, { 0xf, 0x00 }, | ||
643 | { WAIT_IDLE }, { 0xe, 0x87 }, { 0xf, 0x00 }, | ||
644 | { WAIT_IDLE }, { 0xe, 0x88 }, { 0xf, 0x00 }, | ||
645 | { WAIT_IDLE }, { 0xe, 0x89 }, { 0xf, 0x00 }, | ||
646 | { WAIT_IDLE }, { 0xe, 0x8a }, { 0xf, 0x00 }, | ||
647 | { WAIT_IDLE }, { 0xe, 0x8b }, { 0xf, 0x00 }, | ||
648 | { WAIT_IDLE }, { 0xe, 0x8c }, { 0xf, 0x00 }, | ||
649 | { WAIT_IDLE }, { 0xe, 0x8d }, { 0xf, 0x00 }, | ||
650 | { WAIT_IDLE }, { 0xe, 0x8e }, { 0xf, 0x00 }, | ||
651 | { WAIT_IDLE }, { 0xe, 0x8f }, { 0xf, 0x00 }, | ||
652 | { WAIT_IDLE }, { 0xe, 0x90 }, { 0xf, 0x00 }, | ||
653 | { WAIT_IDLE }, { 0xe, 0x91 }, { 0xf, 0x00 }, | ||
654 | { WAIT_IDLE }, { 0xe, 0x92 }, { 0xf, 0x00 }, | ||
655 | { WAIT_IDLE }, { 0xe, 0x93 }, { 0xf, 0x00 }, | ||
656 | { WAIT_IDLE }, { 0xe, 0x94 }, { 0xf, 0x00 }, | ||
657 | { WAIT_IDLE }, { 0xe, 0x95 }, { 0xf, 0x00 }, | ||
658 | { WAIT_IDLE }, { 0xe, 0x96 }, { 0xf, 0x00 }, | ||
659 | { WAIT_IDLE }, { 0xe, 0x97 }, { 0xf, 0x00 }, | ||
660 | { WAIT_IDLE }, { 0xe, 0x98 }, { 0xf, 0x00 }, | ||
661 | { WAIT_IDLE }, { 0xe, 0x99 }, { 0xf, 0x00 }, | ||
662 | { WAIT_IDLE }, { 0xe, 0x9a }, { 0xf, 0x00 }, | ||
663 | { WAIT_IDLE }, { 0xe, 0x9b }, { 0xf, 0x00 }, | ||
664 | { WAIT_IDLE }, { 0xe, 0x9c }, { 0xf, 0x00 }, | ||
665 | { WAIT_IDLE }, { 0xe, 0x9d }, { 0xf, 0x00 }, | ||
666 | { WAIT_IDLE }, { 0xe, 0x9e }, { 0xf, 0x00 }, | ||
667 | { WAIT_IDLE }, { 0xe, 0x9f }, { 0xf, 0x00 }, | ||
668 | { WAIT_IDLE }, { 0xe, 0xa0 }, { 0xf, 0x00 }, | ||
669 | { WAIT_IDLE }, { 0xe, 0xa1 }, { 0xf, 0x00 }, | ||
670 | { WAIT_IDLE }, { 0xe, 0xa2 }, { 0xf, 0x00 }, | ||
671 | { WAIT_IDLE }, { 0xe, 0xa3 }, { 0xf, 0x00 }, | ||
672 | { WAIT_IDLE }, { 0xe, 0xa4 }, { 0xf, 0x00 }, | ||
673 | { WAIT_IDLE }, { 0xe, 0xa5 }, { 0xf, 0x00 }, | ||
674 | { WAIT_IDLE }, { 0xe, 0xa6 }, { 0xf, 0x00 }, | ||
675 | { WAIT_IDLE }, { 0xe, 0xa7 }, { 0xf, 0x00 }, | ||
676 | { WAIT_IDLE }, { 0xe, 0xa8 }, { 0xf, 0x00 }, | ||
677 | { WAIT_IDLE }, { 0xe, 0xa9 }, { 0xf, 0x00 }, | ||
678 | { WAIT_IDLE }, { 0xe, 0xaa }, { 0xf, 0x00 }, | ||
679 | { WAIT_IDLE }, { 0xe, 0xab }, { 0xf, 0x00 }, | ||
680 | { WAIT_IDLE }, { 0xe, 0xac }, { 0xf, 0x00 }, | ||
681 | { WAIT_IDLE }, { 0xe, 0xad }, { 0xf, 0x00 }, | ||
682 | { WAIT_IDLE }, { 0xe, 0xae }, { 0xf, 0x00 }, | ||
683 | { WAIT_IDLE }, { 0xe, 0xaf }, { 0xf, 0x00 }, | ||
684 | { WAIT_IDLE }, { 0xe, 0xb0 }, { 0xf, 0x00 }, | ||
685 | { WAIT_IDLE }, { 0xe, 0xb1 }, { 0xf, 0x00 }, | ||
686 | { WAIT_IDLE }, { 0xe, 0xb2 }, { 0xf, 0x00 }, | ||
687 | { WAIT_IDLE }, { 0xe, 0xb3 }, { 0xf, 0x00 }, | ||
688 | { WAIT_IDLE }, { 0xe, 0xb4 }, { 0xf, 0x00 }, | ||
689 | { WAIT_IDLE }, { 0xe, 0xb5 }, { 0xf, 0x00 }, | ||
690 | { WAIT_IDLE }, { 0xe, 0xb6 }, { 0xf, 0x00 }, | ||
691 | { WAIT_IDLE }, { 0xe, 0xb7 }, { 0xf, 0x00 }, | ||
692 | { WAIT_IDLE }, { 0xe, 0xb8 }, { 0xf, 0x00 }, | ||
693 | { WAIT_IDLE }, { 0xe, 0xb9 }, { 0xf, 0x00 }, | ||
694 | { WAIT_IDLE }, { 0xe, 0xba }, { 0xf, 0x00 }, | ||
695 | { WAIT_IDLE }, { 0xe, 0xbb }, { 0xf, 0x00 }, | ||
696 | { WAIT_IDLE }, { 0xe, 0xbc }, { 0xf, 0x00 }, | ||
697 | { WAIT_IDLE }, { 0xe, 0xbd }, { 0xf, 0x00 }, | ||
698 | { WAIT_IDLE }, { 0xe, 0xbe }, { 0xf, 0x00 }, | ||
699 | { WAIT_IDLE }, { 0xe, 0xbf }, { 0xf, 0x00 }, | ||
700 | { WAIT_IDLE }, { 0xe, 0xc0 }, { 0xf, 0x00 }, | ||
701 | { WAIT_IDLE }, { 0xe, 0xc1 }, { 0xf, 0x00 }, | ||
702 | { WAIT_IDLE }, { 0xe, 0xc2 }, { 0xf, 0x00 }, | ||
703 | { WAIT_IDLE }, { 0xe, 0xc3 }, { 0xf, 0x00 }, | ||
704 | { WAIT_IDLE }, { 0xe, 0xc4 }, { 0xf, 0x00 }, | ||
705 | { WAIT_IDLE }, { 0xe, 0xc5 }, { 0xf, 0x00 }, | ||
706 | { WAIT_IDLE }, { 0xe, 0xc6 }, { 0xf, 0x00 }, | ||
707 | { WAIT_IDLE }, { 0xe, 0xc7 }, { 0xf, 0x00 }, | ||
708 | { WAIT_IDLE }, { 0xe, 0xc8 }, { 0xf, 0x00 }, | ||
709 | { WAIT_IDLE }, { 0xe, 0xc9 }, { 0xf, 0x00 }, | ||
710 | { WAIT_IDLE }, { 0xe, 0xca }, { 0xf, 0x00 }, | ||
711 | { WAIT_IDLE }, { 0xe, 0xcb }, { 0xf, 0x00 }, | ||
712 | { WAIT_IDLE }, { 0xe, 0xcc }, { 0xf, 0x00 }, | ||
713 | { WAIT_IDLE }, { 0xe, 0xcd }, { 0xf, 0x00 }, | ||
714 | { WAIT_IDLE }, { 0xe, 0xce }, { 0xf, 0x00 }, | ||
715 | { WAIT_IDLE }, { 0xe, 0xcf }, { 0xf, 0x00 }, | ||
716 | { WAIT_IDLE }, { 0xe, 0xd0 }, { 0xf, 0x00 }, | ||
717 | { WAIT_IDLE }, { 0xe, 0xd1 }, { 0xf, 0x00 }, | ||
718 | { WAIT_IDLE }, { 0xe, 0xd2 }, { 0xf, 0x00 }, | ||
719 | { WAIT_IDLE }, { 0xe, 0xd3 }, { 0xf, 0x00 }, | ||
720 | { WAIT_IDLE }, { 0xe, 0xd4 }, { 0xf, 0x00 }, | ||
721 | { WAIT_IDLE }, { 0xe, 0xd5 }, { 0xf, 0x00 }, | ||
722 | { WAIT_IDLE }, { 0xe, 0xd6 }, { 0xf, 0x00 }, | ||
723 | { WAIT_IDLE }, { 0xe, 0xd7 }, { 0xf, 0x00 }, | ||
724 | { WAIT_IDLE }, { 0xe, 0xd8 }, { 0xf, 0x00 }, | ||
725 | { WAIT_IDLE }, { 0xe, 0xd9 }, { 0xf, 0x00 }, | ||
726 | { WAIT_IDLE }, { 0xe, 0xda }, { 0xf, 0x00 }, | ||
727 | { WAIT_IDLE }, { 0xe, 0xdb }, { 0xf, 0x00 }, | ||
728 | { WAIT_IDLE }, { 0xe, 0xdc }, { 0xf, 0x00 }, | ||
729 | { WAIT_IDLE }, { 0xe, 0xdd }, { 0xf, 0x00 }, | ||
730 | { WAIT_IDLE }, { 0xe, 0xde }, { 0xf, 0x00 }, | ||
731 | { WAIT_IDLE }, { 0xe, 0xdf }, { 0xf, 0x00 }, | ||
732 | { WAIT_IDLE }, { 0xe, 0xe0 }, { 0xf, 0x00 }, | ||
733 | { WAIT_IDLE }, { 0xe, 0xe1 }, { 0xf, 0x00 }, | ||
734 | { WAIT_IDLE }, { 0xe, 0xe2 }, { 0xf, 0x00 }, | ||
735 | { WAIT_IDLE }, { 0xe, 0xe3 }, { 0xf, 0x00 }, | ||
736 | { WAIT_IDLE }, { 0xe, 0xe4 }, { 0xf, 0x00 }, | ||
737 | { WAIT_IDLE }, { 0xe, 0xe5 }, { 0xf, 0x00 }, | ||
738 | { WAIT_IDLE }, { 0xe, 0xe6 }, { 0xf, 0x00 }, | ||
739 | { WAIT_IDLE }, { 0xe, 0xe7 }, { 0xf, 0x00 }, | ||
740 | { WAIT_IDLE }, { 0xe, 0xe8 }, { 0xf, 0x00 }, | ||
741 | { WAIT_IDLE }, { 0xe, 0xe9 }, { 0xf, 0x00 }, | ||
742 | { WAIT_IDLE }, { 0xe, 0xea }, { 0xf, 0x00 }, | ||
743 | { WAIT_IDLE }, { 0xe, 0xeb }, { 0xf, 0x00 }, | ||
744 | { WAIT_IDLE }, { 0xe, 0xec }, { 0xf, 0x00 }, | ||
745 | { WAIT_IDLE }, { 0xe, 0xed }, { 0xf, 0x00 }, | ||
746 | { WAIT_IDLE }, { 0xe, 0xee }, { 0xf, 0x00 }, | ||
747 | { WAIT_IDLE }, { 0xe, 0xef }, { 0xf, 0x00 }, | ||
748 | { WAIT_IDLE }, { 0xe, 0xf0 }, { 0xf, 0x00 }, | ||
749 | { WAIT_IDLE }, { 0xe, 0xf1 }, { 0xf, 0x00 }, | ||
750 | { WAIT_IDLE }, { 0xe, 0xf2 }, { 0xf, 0x00 }, | ||
751 | { WAIT_IDLE }, { 0xe, 0xf3 }, { 0xf, 0x00 }, | ||
752 | { WAIT_IDLE }, { 0xe, 0xf4 }, { 0xf, 0x00 }, | ||
753 | { WAIT_IDLE }, { 0xe, 0xf5 }, { 0xf, 0x00 }, | ||
754 | { WAIT_IDLE }, { 0xe, 0xf6 }, { 0xf, 0x00 }, | ||
755 | { WAIT_IDLE }, { 0xe, 0xf7 }, { 0xf, 0x00 }, | ||
756 | { WAIT_IDLE }, { 0xe, 0xf8 }, { 0xf, 0x00 }, | ||
757 | { WAIT_IDLE }, { 0xe, 0xf9 }, { 0xf, 0x00 }, | ||
758 | { WAIT_IDLE }, { 0xe, 0xfa }, { 0xf, 0x00 }, | ||
759 | { WAIT_IDLE }, { 0xe, 0xfb }, { 0xf, 0x00 }, | ||
760 | { WAIT_IDLE }, { 0xe, 0xfc }, { 0xf, 0x00 }, | ||
761 | { WAIT_IDLE }, { 0xe, 0xfd }, { 0xf, 0x00 }, | ||
762 | { WAIT_IDLE }, { 0xe, 0xfe }, { 0xf, 0x00 }, | ||
763 | { WAIT_IDLE }, { 0xe, 0xff }, { 0xf, 0x00 }, | ||
764 | |||
765 | /* load page zero */ | ||
766 | { 0x9, 0x05 }, { 0xb, 0x00 }, { 0xa, 0x00 }, | ||
767 | |||
768 | { 0xd, 0x01 }, { 0xc, 0x7c }, { WAIT_IDLE }, | ||
769 | { 0xd, 0x00 }, { 0xc, 0x1e }, { WAIT_IDLE }, | ||
770 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
771 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
772 | { 0xd, 0x00 }, { 0xc, 0xf5 }, { WAIT_IDLE }, | ||
773 | { 0xd, 0x00 }, { 0xc, 0x11 }, { WAIT_IDLE }, | ||
774 | { 0xd, 0x00 }, { 0xc, 0x20 }, { WAIT_IDLE }, | ||
775 | { 0xd, 0x00 }, { 0xc, 0x32 }, { WAIT_IDLE }, | ||
776 | { 0xd, 0x00 }, { 0xc, 0x40 }, { WAIT_IDLE }, | ||
777 | { 0xd, 0x00 }, { 0xc, 0x13 }, { WAIT_IDLE }, | ||
778 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
779 | { 0xd, 0x00 }, { 0xc, 0x14 }, { WAIT_IDLE }, | ||
780 | { 0xd, 0x02 }, { 0xc, 0x76 }, { WAIT_IDLE }, | ||
781 | { 0xd, 0x00 }, { 0xc, 0x60 }, { WAIT_IDLE }, | ||
782 | { 0xd, 0x00 }, { 0xc, 0x80 }, { WAIT_IDLE }, | ||
783 | { 0xd, 0x02 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
784 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
785 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
786 | { 0xd, 0x02 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
787 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
788 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
789 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
790 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
791 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
792 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
793 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
794 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
795 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
796 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
797 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
798 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
799 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
800 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
801 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
802 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
803 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
804 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
805 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
806 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
807 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
808 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
809 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
810 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
811 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
812 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
813 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
814 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
815 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
816 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
817 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
818 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
819 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
820 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
821 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
822 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
823 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
824 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
825 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
826 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
827 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
828 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
829 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
830 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
831 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
832 | { 0xd, 0x00 }, { 0xc, 0x18 }, { WAIT_IDLE }, | ||
833 | { 0xd, 0x00 }, { 0xc, 0x19 }, { WAIT_IDLE }, | ||
834 | { 0xd, 0x01 }, { 0xc, 0x1a }, { WAIT_IDLE }, | ||
835 | { 0xd, 0x01 }, { 0xc, 0x20 }, { WAIT_IDLE }, | ||
836 | { 0xd, 0x01 }, { 0xc, 0x40 }, { WAIT_IDLE }, | ||
837 | { 0xd, 0x01 }, { 0xc, 0x17 }, { WAIT_IDLE }, | ||
838 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
839 | { 0xd, 0x01 }, { 0xc, 0x80 }, { WAIT_IDLE }, | ||
840 | { 0xd, 0x01 }, { 0xc, 0x20 }, { WAIT_IDLE }, | ||
841 | { 0xd, 0x00 }, { 0xc, 0x10 }, { WAIT_IDLE }, | ||
842 | { 0xd, 0x01 }, { 0xc, 0xa0 }, { WAIT_IDLE }, | ||
843 | { 0xd, 0x03 }, { 0xc, 0xd1 }, { WAIT_IDLE }, | ||
844 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
845 | { 0xd, 0x01 }, { 0xc, 0xf2 }, { WAIT_IDLE }, | ||
846 | { 0xd, 0x02 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
847 | { 0xd, 0x00 }, { 0xc, 0x13 }, { WAIT_IDLE }, | ||
848 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
849 | { 0xd, 0x00 }, { 0xc, 0xf4 }, { WAIT_IDLE }, | ||
850 | { 0xd, 0x02 }, { 0xc, 0xe0 }, { WAIT_IDLE }, | ||
851 | { 0xd, 0x00 }, { 0xc, 0x15 }, { WAIT_IDLE }, | ||
852 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
853 | { 0xd, 0x00 }, { 0xc, 0x16 }, { WAIT_IDLE }, | ||
854 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
855 | { 0xd, 0x00 }, { 0xc, 0x17 }, { WAIT_IDLE }, | ||
856 | { 0xd, 0x00 }, { 0xc, 0x20 }, { WAIT_IDLE }, | ||
857 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
858 | { 0xd, 0x00 }, { 0xc, 0x20 }, { WAIT_IDLE }, | ||
859 | { 0xd, 0x00 }, { 0xc, 0x50 }, { WAIT_IDLE }, | ||
860 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
861 | { 0xd, 0x00 }, { 0xc, 0x40 }, { WAIT_IDLE }, | ||
862 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
863 | { 0xd, 0x00 }, { 0xc, 0x71 }, { WAIT_IDLE }, | ||
864 | { 0xd, 0x02 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
865 | { 0xd, 0x00 }, { 0xc, 0x60 }, { WAIT_IDLE }, | ||
866 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
867 | { 0xd, 0x00 }, { 0xc, 0x92 }, { WAIT_IDLE }, | ||
868 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
869 | { 0xd, 0x00 }, { 0xc, 0x80 }, { WAIT_IDLE }, | ||
870 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
871 | { 0xd, 0x00 }, { 0xc, 0xb3 }, { WAIT_IDLE }, | ||
872 | { 0xd, 0x02 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
873 | { 0xd, 0x00 }, { 0xc, 0xa0 }, { WAIT_IDLE }, | ||
874 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
875 | { 0xd, 0x00 }, { 0xc, 0xd4 }, { WAIT_IDLE }, | ||
876 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
877 | { 0xd, 0x00 }, { 0xc, 0x40 }, { WAIT_IDLE }, | ||
878 | { 0xd, 0x00 }, { 0xc, 0x80 }, { WAIT_IDLE }, | ||
879 | { 0xd, 0x00 }, { 0xc, 0xf5 }, { WAIT_IDLE }, | ||
880 | { 0xd, 0x00 }, { 0xc, 0x20 }, { WAIT_IDLE }, | ||
881 | { 0xd, 0x00 }, { 0xc, 0x70 }, { WAIT_IDLE }, | ||
882 | { 0xd, 0x00 }, { 0xc, 0xa0 }, { WAIT_IDLE }, | ||
883 | { 0xd, 0x02 }, { 0xc, 0x11 }, { WAIT_IDLE }, | ||
884 | { 0xd, 0x00 }, { 0xc, 0x16 }, { WAIT_IDLE }, | ||
885 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
886 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
887 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
888 | { 0xd, 0x00 }, { 0xc, 0x20 }, { WAIT_IDLE }, | ||
889 | { 0xd, 0x02 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
890 | { 0xd, 0x00 }, { 0xc, 0x20 }, { WAIT_IDLE }, | ||
891 | { 0xd, 0x00 }, { 0xc, 0x10 }, { WAIT_IDLE }, | ||
892 | { 0xd, 0x00 }, { 0xc, 0x17 }, { WAIT_IDLE }, | ||
893 | { 0xd, 0x00 }, { 0xc, 0x1b }, { WAIT_IDLE }, | ||
894 | { 0xd, 0x00 }, { 0xc, 0x1d }, { WAIT_IDLE }, | ||
895 | { 0xd, 0x02 }, { 0xc, 0xdf }, { WAIT_IDLE }, | ||
896 | |||
897 | /* Now load page one */ | ||
898 | { 0x9, 0x05 }, { 0xb, 0x01 }, { 0xa, 0x00 }, | ||
899 | |||
900 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
901 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
902 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
903 | { 0xd, 0x02 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
904 | { 0xd, 0x00 }, { 0xc, 0x19 }, { WAIT_IDLE }, | ||
905 | { 0xd, 0x00 }, { 0xc, 0x1f }, { WAIT_IDLE }, | ||
906 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
907 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
908 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
909 | { 0xd, 0x03 }, { 0xc, 0xd8 }, { WAIT_IDLE }, | ||
910 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
911 | { 0xd, 0x02 }, { 0xc, 0x20 }, { WAIT_IDLE }, | ||
912 | { 0xd, 0x00 }, { 0xc, 0x19 }, { WAIT_IDLE }, | ||
913 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
914 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
915 | { 0xd, 0x00 }, { 0xc, 0x18 }, { WAIT_IDLE }, | ||
916 | { 0xd, 0x01 }, { 0xc, 0xc0 }, { WAIT_IDLE }, | ||
917 | { 0xd, 0x01 }, { 0xc, 0xfa }, { WAIT_IDLE }, | ||
918 | { 0xd, 0x00 }, { 0xc, 0x1a }, { WAIT_IDLE }, | ||
919 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
920 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
921 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
922 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
923 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
924 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
925 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
926 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
927 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
928 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
929 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
930 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
931 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
932 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
933 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
934 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
935 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
936 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
937 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
938 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
939 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
940 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
941 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
942 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
943 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
944 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
945 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
946 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
947 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
948 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
949 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
950 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
951 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
952 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
953 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
954 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
955 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
956 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
957 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
958 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
959 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
960 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
961 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
962 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
963 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
964 | { 0xd, 0x02 }, { 0xc, 0x40 }, { WAIT_IDLE }, | ||
965 | { 0xd, 0x02 }, { 0xc, 0x60 }, { WAIT_IDLE }, | ||
966 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
967 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
968 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
969 | { 0xd, 0x02 }, { 0xc, 0xc0 }, { WAIT_IDLE }, | ||
970 | { 0xd, 0x02 }, { 0xc, 0x80 }, { WAIT_IDLE }, | ||
971 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
972 | { 0xd, 0x02 }, { 0xc, 0xfb }, { WAIT_IDLE }, | ||
973 | { 0xd, 0x02 }, { 0xc, 0xa0 }, { WAIT_IDLE }, | ||
974 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
975 | { 0xd, 0x00 }, { 0xc, 0x1b }, { WAIT_IDLE }, | ||
976 | { 0xd, 0x02 }, { 0xc, 0xd7 }, { WAIT_IDLE }, | ||
977 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
978 | { 0xd, 0x02 }, { 0xc, 0xf7 }, { WAIT_IDLE }, | ||
979 | { 0xd, 0x03 }, { 0xc, 0x20 }, { WAIT_IDLE }, | ||
980 | { 0xd, 0x03 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
981 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
982 | { 0xd, 0x00 }, { 0xc, 0x1c }, { WAIT_IDLE }, | ||
983 | { 0xd, 0x03 }, { 0xc, 0x3c }, { WAIT_IDLE }, | ||
984 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
985 | { 0xd, 0x03 }, { 0xc, 0x3f }, { WAIT_IDLE }, | ||
986 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
987 | { 0xd, 0x03 }, { 0xc, 0xc0 }, { WAIT_IDLE }, | ||
988 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
989 | { 0xd, 0x03 }, { 0xc, 0xdf }, { WAIT_IDLE }, | ||
990 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
991 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
992 | { 0xd, 0x03 }, { 0xc, 0x5d }, { WAIT_IDLE }, | ||
993 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
994 | { 0xd, 0x03 }, { 0xc, 0xc0 }, { WAIT_IDLE }, | ||
995 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
996 | { 0xd, 0x03 }, { 0xc, 0x7d }, { WAIT_IDLE }, | ||
997 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
998 | { 0xd, 0x03 }, { 0xc, 0xc0 }, { WAIT_IDLE }, | ||
999 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1000 | { 0xd, 0x03 }, { 0xc, 0x9e }, { WAIT_IDLE }, | ||
1001 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1002 | { 0xd, 0x03 }, { 0xc, 0xc0 }, { WAIT_IDLE }, | ||
1003 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1004 | { 0xd, 0x03 }, { 0xc, 0xbe }, { WAIT_IDLE }, | ||
1005 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1006 | { 0xd, 0x03 }, { 0xc, 0xc0 }, { WAIT_IDLE }, | ||
1007 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1008 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1009 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1010 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1011 | { 0xd, 0x00 }, { 0xc, 0x1b }, { WAIT_IDLE }, | ||
1012 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1013 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1014 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1015 | { 0xd, 0x02 }, { 0xc, 0xdb }, { WAIT_IDLE }, | ||
1016 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1017 | { 0xd, 0x02 }, { 0xc, 0xdb }, { WAIT_IDLE }, | ||
1018 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1019 | { 0xd, 0x02 }, { 0xc, 0xe0 }, { WAIT_IDLE }, | ||
1020 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1021 | { 0xd, 0x02 }, { 0xc, 0xfb }, { WAIT_IDLE }, | ||
1022 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1023 | { 0xd, 0x02 }, { 0xc, 0xc0 }, { WAIT_IDLE }, | ||
1024 | { 0xd, 0x02 }, { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1025 | { 0xd, 0x02 }, { 0xc, 0xfb }, { WAIT_IDLE }, | ||
1026 | { 0xd, 0x02 }, { 0xc, 0x60 }, { WAIT_IDLE }, | ||
1027 | { 0xd, 0x00 }, { 0xc, 0x1b }, { WAIT_IDLE }, | ||
1028 | |||
1029 | { 0x9, 0x05 }, { 0xb, 0x02 }, { 0xa, 0x00 }, | ||
1030 | |||
1031 | { 0xc, 0xc4 }, { WAIT_IDLE }, | ||
1032 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1033 | { 0xc, 0x44 }, { WAIT_IDLE }, | ||
1034 | { 0xc, 0x07 }, { WAIT_IDLE }, | ||
1035 | { 0xc, 0x44 }, { WAIT_IDLE }, | ||
1036 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1037 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1038 | { 0xc, 0x25 }, { WAIT_IDLE }, | ||
1039 | { 0xc, 0x01 }, { WAIT_IDLE }, | ||
1040 | { 0xc, 0x06 }, { WAIT_IDLE }, | ||
1041 | { 0xc, 0xc4 }, { WAIT_IDLE }, | ||
1042 | { 0xc, 0x07 }, { WAIT_IDLE }, | ||
1043 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1044 | { 0xc, 0x25 }, { WAIT_IDLE }, | ||
1045 | { 0xc, 0x01 }, { WAIT_IDLE }, | ||
1046 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1047 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1048 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1049 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1050 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1051 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1052 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1053 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1054 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1055 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1056 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1057 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1058 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1059 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1060 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1061 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1062 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1063 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1064 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1065 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1066 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1067 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1068 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1069 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1070 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1071 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1072 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1073 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1074 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1075 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1076 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1077 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1078 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1079 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1080 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1081 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1082 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1083 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1084 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1085 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1086 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1087 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1088 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1089 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1090 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1091 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1092 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1093 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1094 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1095 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1096 | { 0xc, 0x07 }, { WAIT_IDLE }, | ||
1097 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1098 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1099 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1100 | { 0xc, 0x04 }, { WAIT_IDLE }, | ||
1101 | { 0xc, 0x07 }, { WAIT_IDLE }, | ||
1102 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1103 | { 0xc, 0x04 }, { WAIT_IDLE }, | ||
1104 | { 0xc, 0x07 }, { WAIT_IDLE }, | ||
1105 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1106 | { 0xc, 0x44 }, { WAIT_IDLE }, | ||
1107 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1108 | { 0xc, 0x44 }, { WAIT_IDLE }, | ||
1109 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1110 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1111 | { 0xc, 0x07 }, { WAIT_IDLE }, | ||
1112 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1113 | { 0xc, 0x44 }, { WAIT_IDLE }, | ||
1114 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1115 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1116 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1117 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1118 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1119 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1120 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1121 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1122 | { 0xc, 0x44 }, { WAIT_IDLE }, | ||
1123 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1124 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1125 | { 0xc, 0x07 }, { WAIT_IDLE }, | ||
1126 | { 0xc, 0x44 }, { WAIT_IDLE }, | ||
1127 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1128 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1129 | { 0xc, 0x07 }, { WAIT_IDLE }, | ||
1130 | { 0xc, 0x44 }, { WAIT_IDLE }, | ||
1131 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1132 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1133 | { 0xc, 0x07 }, { WAIT_IDLE }, | ||
1134 | { 0xc, 0x44 }, { WAIT_IDLE }, | ||
1135 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1136 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1137 | { 0xc, 0x07 }, { WAIT_IDLE }, | ||
1138 | { 0xc, 0x44 }, { WAIT_IDLE }, | ||
1139 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1140 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1141 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1142 | { 0xc, 0x44 }, { WAIT_IDLE }, | ||
1143 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1144 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1145 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1146 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1147 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1148 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1149 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1150 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1151 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1152 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1153 | { 0xc, 0x05 }, { WAIT_IDLE }, | ||
1154 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1155 | { 0xc, 0x07 }, { WAIT_IDLE }, | ||
1156 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
1157 | { 0xc, 0x07 }, { WAIT_IDLE }, | ||
1158 | { 0xc, 0x44 }, { WAIT_IDLE }, | ||
1159 | |||
1160 | { 0x9, 0x05 }, { 0xb, 0x03 }, { 0xa, 0x00 }, | ||
1161 | |||
1162 | { 0xc, 0x07 }, { WAIT_IDLE }, | ||
1163 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1164 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1165 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1166 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1167 | { 0xc, 0x47 }, { WAIT_IDLE }, | ||
1168 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1169 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1170 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1171 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1172 | { 0xc, 0x06 }, { WAIT_IDLE }, | ||
1173 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1174 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1175 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1176 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1177 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1178 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1179 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1180 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1181 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1182 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1183 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1184 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1185 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1186 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1187 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1188 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1189 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1190 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1191 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1192 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1193 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1194 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1195 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1196 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1197 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1198 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1199 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1200 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1201 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1202 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1203 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1204 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1205 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1206 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1207 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1208 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1209 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1210 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1211 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1212 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1213 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1214 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1215 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1216 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1217 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1218 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1219 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1220 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1221 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1222 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1223 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1224 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1225 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1226 | { 0xc, 0x80 }, { WAIT_IDLE }, | ||
1227 | { 0xc, 0x80 }, { WAIT_IDLE }, | ||
1228 | { 0xc, 0xc0 }, { WAIT_IDLE }, | ||
1229 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1230 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1231 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1232 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1233 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1234 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1235 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1236 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1237 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1238 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1239 | { 0xc, 0x60 }, { WAIT_IDLE }, | ||
1240 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1241 | { 0xc, 0x70 }, { WAIT_IDLE }, | ||
1242 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1243 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1244 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1245 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1246 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1247 | { 0xc, 0x42 }, { WAIT_IDLE }, | ||
1248 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1249 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1250 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1251 | { 0xc, 0x02 }, { WAIT_IDLE }, | ||
1252 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1253 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1254 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1255 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1256 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1257 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1258 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1259 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1260 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1261 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1262 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1263 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1264 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1265 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1266 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1267 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1268 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1269 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1270 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1271 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1272 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1273 | { 0xc, 0x42 }, { WAIT_IDLE }, | ||
1274 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1275 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1276 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1277 | { 0xc, 0x42 }, { WAIT_IDLE }, | ||
1278 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1279 | { 0xc, 0x02 }, { WAIT_IDLE }, | ||
1280 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1281 | { 0xc, 0x02 }, { WAIT_IDLE }, | ||
1282 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1283 | { 0xc, 0x02 }, { WAIT_IDLE }, | ||
1284 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1285 | { 0xc, 0x42 }, { WAIT_IDLE }, | ||
1286 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1287 | { 0xc, 0xc0 }, { WAIT_IDLE }, | ||
1288 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1289 | { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1290 | |||
1291 | { 0x9, 0x05 }, { 0xb, 0x04 }, { 0xa, 0x00 }, | ||
1292 | |||
1293 | { 0xc, 0x63 }, { WAIT_IDLE }, | ||
1294 | { 0xc, 0x03 }, { WAIT_IDLE }, | ||
1295 | { 0xc, 0x26 }, { WAIT_IDLE }, | ||
1296 | { 0xc, 0x02 }, { WAIT_IDLE }, | ||
1297 | { 0xc, 0x2c }, { WAIT_IDLE }, | ||
1298 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1299 | { 0xc, 0x24 }, { WAIT_IDLE }, | ||
1300 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1301 | { 0xc, 0x2e }, { WAIT_IDLE }, | ||
1302 | { 0xc, 0x02 }, { WAIT_IDLE }, | ||
1303 | { 0xc, 0x02 }, { WAIT_IDLE }, | ||
1304 | { 0xc, 0x02 }, { WAIT_IDLE }, | ||
1305 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1306 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1307 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1308 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1309 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1310 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1311 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1312 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1313 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1314 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1315 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1316 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1317 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1318 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1319 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1320 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1321 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1322 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1323 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1324 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1325 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1326 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1327 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1328 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1329 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1330 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1331 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1332 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1333 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1334 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1335 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1336 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1337 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1338 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1339 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1340 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1341 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1342 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1343 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1344 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1345 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1346 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1347 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1348 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1349 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1350 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1351 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1352 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1353 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1354 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1355 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1356 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1357 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1358 | { 0xc, 0x01 }, { WAIT_IDLE }, | ||
1359 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1360 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1361 | { 0xc, 0x60 }, { WAIT_IDLE }, | ||
1362 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1363 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1364 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1365 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1366 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1367 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1368 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1369 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1370 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1371 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1372 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1373 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1374 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1375 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1376 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1377 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1378 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1379 | { 0xc, 0x60 }, { WAIT_IDLE }, | ||
1380 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1381 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1382 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1383 | { 0xc, 0x60 }, { WAIT_IDLE }, | ||
1384 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1385 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1386 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1387 | { 0xc, 0x60 }, { WAIT_IDLE }, | ||
1388 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1389 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1390 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1391 | { 0xc, 0x60 }, { WAIT_IDLE }, | ||
1392 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1393 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1394 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1395 | { 0xc, 0x60 }, { WAIT_IDLE }, | ||
1396 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1397 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1398 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1399 | { 0xc, 0x60 }, { WAIT_IDLE }, | ||
1400 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1401 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1402 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1403 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1404 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1405 | { 0xc, 0x22 }, { WAIT_IDLE }, | ||
1406 | { 0xc, 0x02 }, { WAIT_IDLE }, | ||
1407 | { 0xc, 0x22 }, { WAIT_IDLE }, | ||
1408 | { 0xc, 0x02 }, { WAIT_IDLE }, | ||
1409 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1410 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1411 | { 0xc, 0x60 }, { WAIT_IDLE }, | ||
1412 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1413 | { 0xc, 0x22 }, { WAIT_IDLE }, | ||
1414 | { 0xc, 0x02 }, { WAIT_IDLE }, | ||
1415 | { 0xc, 0x62 }, { WAIT_IDLE }, | ||
1416 | { 0xc, 0x02 }, { WAIT_IDLE }, | ||
1417 | { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1418 | { 0xc, 0x01 }, { WAIT_IDLE }, | ||
1419 | { 0xc, 0x21 }, { WAIT_IDLE }, | ||
1420 | { 0xc, 0x01 }, { WAIT_IDLE }, | ||
1421 | |||
1422 | /* Load memory area (page six) */ | ||
1423 | { 0x9, 0x01 }, { 0xb, 0x06 }, | ||
1424 | |||
1425 | { 0xa, 0x00 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1426 | { 0xa, 0x02 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1427 | { 0xa, 0x04 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1428 | { 0xa, 0x06 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1429 | { 0xa, 0x08 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1430 | { 0xa, 0x0a }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1431 | { 0xa, 0x0c }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1432 | { 0xa, 0x0e }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1433 | { 0xa, 0x10 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1434 | { 0xa, 0x12 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1435 | { 0xa, 0x14 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1436 | { 0xa, 0x16 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1437 | { 0xa, 0x18 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1438 | { 0xa, 0x1a }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1439 | { 0xa, 0x1c }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1440 | { 0xa, 0x1e }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1441 | { 0xa, 0x20 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1442 | { 0xa, 0x22 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1443 | { 0xa, 0x24 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1444 | { 0xa, 0x26 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1445 | { 0xa, 0x28 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1446 | { 0xa, 0x2a }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1447 | { 0xa, 0x2c }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1448 | { 0xa, 0x2e }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1449 | { 0xa, 0x30 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1450 | { 0xa, 0x32 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1451 | { 0xa, 0x34 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1452 | { 0xa, 0x36 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1453 | { 0xa, 0x38 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1454 | { 0xa, 0x3a }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1455 | { 0xa, 0x3c }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1456 | { 0xa, 0x3e }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1457 | { 0xa, 0x40 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1458 | { 0xa, 0x42 }, { 0xd, 0x03 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1459 | { 0xa, 0x44 }, { 0xd, 0x01 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1460 | { 0xa, 0x46 }, { 0xd, 0x0a }, { 0xc, 0x21 }, { WAIT_IDLE }, | ||
1461 | { 0xa, 0x48 }, { 0xd, 0x0d }, { 0xc, 0x23 }, { WAIT_IDLE }, | ||
1462 | { 0xa, 0x4a }, { 0xd, 0x23 }, { 0xc, 0x1b }, { WAIT_IDLE }, | ||
1463 | { 0xa, 0x4c }, { 0xd, 0x37 }, { 0xc, 0x8f }, { WAIT_IDLE }, | ||
1464 | { 0xa, 0x4e }, { 0xd, 0x45 }, { 0xc, 0x77 }, { WAIT_IDLE }, | ||
1465 | { 0xa, 0x50 }, { 0xd, 0x52 }, { 0xc, 0xe2 }, { WAIT_IDLE }, | ||
1466 | { 0xa, 0x52 }, { 0xd, 0x1c }, { 0xc, 0x92 }, { WAIT_IDLE }, | ||
1467 | { 0xa, 0x54 }, { 0xd, 0x1c }, { 0xc, 0x52 }, { WAIT_IDLE }, | ||
1468 | { 0xa, 0x56 }, { 0xd, 0x07 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1469 | { 0xa, 0x58 }, { 0xd, 0x2f }, { 0xc, 0xc6 }, { WAIT_IDLE }, | ||
1470 | { 0xa, 0x5a }, { 0xd, 0x0b }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1471 | { 0xa, 0x5c }, { 0xd, 0x30 }, { 0xc, 0x06 }, { WAIT_IDLE }, | ||
1472 | { 0xa, 0x5e }, { 0xd, 0x17 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1473 | { 0xa, 0x60 }, { 0xd, 0x3d }, { 0xc, 0xda }, { WAIT_IDLE }, | ||
1474 | { 0xa, 0x62 }, { 0xd, 0x29 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1475 | { 0xa, 0x64 }, { 0xd, 0x3e }, { 0xc, 0x41 }, { WAIT_IDLE }, | ||
1476 | { 0xa, 0x66 }, { 0xd, 0x39 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1477 | { 0xa, 0x68 }, { 0xd, 0x4c }, { 0xc, 0x48 }, { WAIT_IDLE }, | ||
1478 | { 0xa, 0x6a }, { 0xd, 0x49 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1479 | { 0xa, 0x6c }, { 0xd, 0x4c }, { 0xc, 0x6c }, { WAIT_IDLE }, | ||
1480 | { 0xa, 0x6e }, { 0xd, 0x11 }, { 0xc, 0xd2 }, { WAIT_IDLE }, | ||
1481 | { 0xa, 0x70 }, { 0xd, 0x16 }, { 0xc, 0x0c }, { WAIT_IDLE }, | ||
1482 | { 0xa, 0x72 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1483 | { 0xa, 0x74 }, { 0xd, 0x00 }, { 0xc, 0x80 }, { WAIT_IDLE }, | ||
1484 | { 0xa, 0x76 }, { 0xd, 0x0f }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1485 | { 0xa, 0x78 }, { 0xd, 0x00 }, { 0xc, 0x80 }, { WAIT_IDLE }, | ||
1486 | { 0xa, 0x7a }, { 0xd, 0x13 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1487 | { 0xa, 0x7c }, { 0xd, 0x80 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1488 | { 0xa, 0x7e }, { 0xd, 0x80 }, { 0xc, 0x80 }, { WAIT_IDLE }, | ||
1489 | |||
1490 | { 0x9, 0x05 }, { 0xb, 0x07 }, { 0xa, 0x00 }, | ||
1491 | |||
1492 | { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
1493 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1494 | { 0xd, 0x08 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1495 | { 0xd, 0x08 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1496 | { 0xd, 0x02 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1497 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1498 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1499 | { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
1500 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1501 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1502 | { 0xd, 0x08 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1503 | { 0xd, 0x08 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1504 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1505 | { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
1506 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1507 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1508 | { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
1509 | { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
1510 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1511 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1512 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1513 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1514 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1515 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1516 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1517 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1518 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1519 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1520 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1521 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1522 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1523 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1524 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1525 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1526 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1527 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1528 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1529 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1530 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1531 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1532 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1533 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1534 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1535 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1536 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1537 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1538 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1539 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1540 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1541 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1542 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1543 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1544 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1545 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1546 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1547 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1548 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1549 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1550 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1551 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1552 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1553 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1554 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1555 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1556 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1557 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1558 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1559 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1560 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1561 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1562 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1563 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1564 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1565 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1566 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1567 | { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
1568 | { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
1569 | { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
1570 | { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
1571 | { 0xd, 0x02 }, { 0xc, 0xe9 }, { WAIT_IDLE }, | ||
1572 | { 0xd, 0x06 }, { 0xc, 0x8c }, { WAIT_IDLE }, | ||
1573 | { 0xd, 0x06 }, { 0xc, 0x8c }, { WAIT_IDLE }, | ||
1574 | { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
1575 | { 0xd, 0x1a }, { 0xc, 0x75 }, { WAIT_IDLE }, | ||
1576 | { 0xd, 0x0d }, { 0xc, 0x8b }, { WAIT_IDLE }, | ||
1577 | { 0xd, 0x04 }, { 0xc, 0xe9 }, { WAIT_IDLE }, | ||
1578 | { 0xd, 0x0b }, { 0xc, 0x16 }, { WAIT_IDLE }, | ||
1579 | { 0xd, 0x1a }, { 0xc, 0x38 }, { WAIT_IDLE }, | ||
1580 | { 0xd, 0x0d }, { 0xc, 0xc8 }, { WAIT_IDLE }, | ||
1581 | { 0xd, 0x04 }, { 0xc, 0x6f }, { WAIT_IDLE }, | ||
1582 | { 0xd, 0x0b }, { 0xc, 0x91 }, { WAIT_IDLE }, | ||
1583 | { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
1584 | { 0xd, 0x06 }, { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1585 | { 0xd, 0x06 }, { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1586 | { 0xd, 0x02 }, { 0xc, 0x8f }, { WAIT_IDLE }, | ||
1587 | { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
1588 | { 0xd, 0x06 }, { 0xc, 0x62 }, { WAIT_IDLE }, | ||
1589 | { 0xd, 0x06 }, { 0xc, 0x62 }, { WAIT_IDLE }, | ||
1590 | { 0xd, 0x02 }, { 0xc, 0x7b }, { WAIT_IDLE }, | ||
1591 | { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
1592 | { 0xd, 0x06 }, { 0xc, 0x97 }, { WAIT_IDLE }, | ||
1593 | { 0xd, 0x06 }, { 0xc, 0x97 }, { WAIT_IDLE }, | ||
1594 | { 0xd, 0x02 }, { 0xc, 0x52 }, { WAIT_IDLE }, | ||
1595 | { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
1596 | { 0xd, 0x06 }, { 0xc, 0xf6 }, { WAIT_IDLE }, | ||
1597 | { 0xd, 0x06 }, { 0xc, 0xf6 }, { WAIT_IDLE }, | ||
1598 | { 0xd, 0x02 }, { 0xc, 0x19 }, { WAIT_IDLE }, | ||
1599 | { 0xd, 0x05 }, { 0xc, 0x55 }, { WAIT_IDLE }, | ||
1600 | { 0xd, 0x05 }, { 0xc, 0x55 }, { WAIT_IDLE }, | ||
1601 | { 0xd, 0x05 }, { 0xc, 0x55 }, { WAIT_IDLE }, | ||
1602 | { 0xd, 0x05 }, { 0xc, 0x55 }, { WAIT_IDLE }, | ||
1603 | { 0xd, 0x05 }, { 0xc, 0x55 }, { WAIT_IDLE }, | ||
1604 | { 0xd, 0x05 }, { 0xc, 0x55 }, { WAIT_IDLE }, | ||
1605 | { 0xd, 0x05 }, { 0xc, 0x55 }, { WAIT_IDLE }, | ||
1606 | { 0xd, 0x05 }, { 0xc, 0x55 }, { WAIT_IDLE }, | ||
1607 | { 0xd, 0x14 }, { 0xc, 0xda }, { WAIT_IDLE }, | ||
1608 | { 0xd, 0x0d }, { 0xc, 0x93 }, { WAIT_IDLE }, | ||
1609 | { 0xd, 0x04 }, { 0xc, 0xda }, { WAIT_IDLE }, | ||
1610 | { 0xd, 0x05 }, { 0xc, 0x93 }, { WAIT_IDLE }, | ||
1611 | { 0xd, 0x14 }, { 0xc, 0xda }, { WAIT_IDLE }, | ||
1612 | { 0xd, 0x0d }, { 0xc, 0x93 }, { WAIT_IDLE }, | ||
1613 | { 0xd, 0x04 }, { 0xc, 0xda }, { WAIT_IDLE }, | ||
1614 | { 0xd, 0x05 }, { 0xc, 0x93 }, { WAIT_IDLE }, | ||
1615 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1616 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1617 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1618 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1619 | { 0xd, 0x02 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1620 | |||
1621 | /* Now setup the MOD area. */ | ||
1622 | { 0xe, 0x01 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1623 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1624 | { 0xe, 0x01 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1625 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1626 | { 0xe, 0x01 }, { 0xf, 0x02 }, { WAIT_IDLE }, | ||
1627 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1628 | { 0xe, 0x01 }, { 0xf, 0x03 }, { WAIT_IDLE }, | ||
1629 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1630 | { 0xe, 0x01 }, { 0xf, 0x04 }, { WAIT_IDLE }, | ||
1631 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1632 | { 0xe, 0x01 }, { 0xf, 0x05 }, { WAIT_IDLE }, | ||
1633 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1634 | { 0xe, 0x01 }, { 0xf, 0x06 }, { WAIT_IDLE }, | ||
1635 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1636 | { 0xe, 0x01 }, { 0xf, 0x07 }, { WAIT_IDLE }, | ||
1637 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1638 | { 0xe, 0x01 }, { 0xf, 0x08 }, { WAIT_IDLE }, | ||
1639 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1640 | { 0xe, 0x01 }, { 0xf, 0x09 }, { WAIT_IDLE }, | ||
1641 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1642 | { 0xe, 0x01 }, { 0xf, 0x0a }, { WAIT_IDLE }, | ||
1643 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1644 | { 0xe, 0x01 }, { 0xf, 0x0b }, { WAIT_IDLE }, | ||
1645 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1646 | { 0xe, 0x01 }, { 0xf, 0x0c }, { WAIT_IDLE }, | ||
1647 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1648 | { 0xe, 0x01 }, { 0xf, 0x0d }, { WAIT_IDLE }, | ||
1649 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1650 | { 0xe, 0x01 }, { 0xf, 0x0e }, { WAIT_IDLE }, | ||
1651 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1652 | { 0xe, 0x01 }, { 0xf, 0x0f }, { WAIT_IDLE }, | ||
1653 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1654 | |||
1655 | { 0xe, 0xb0 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1656 | { 0xe, 0xb1 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1657 | { 0xe, 0xb2 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1658 | { 0xe, 0xb3 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1659 | { 0xe, 0xb4 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1660 | { 0xe, 0xb5 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1661 | { 0xe, 0xb6 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1662 | { 0xe, 0xb7 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1663 | { 0xe, 0xb8 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1664 | { 0xe, 0xb9 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1665 | { 0xe, 0xba }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1666 | { 0xe, 0xbb }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1667 | { 0xe, 0xbc }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1668 | { 0xe, 0xbd }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1669 | { 0xe, 0xbe }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1670 | { 0xe, 0xbf }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1671 | |||
1672 | { 0xe, 0xf0 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1673 | { 0xe, 0xf1 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1674 | { 0xe, 0xf2 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1675 | { 0xe, 0xf3 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1676 | { 0xe, 0xf4 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1677 | { 0xe, 0xf5 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1678 | { 0xe, 0xf6 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1679 | { 0xe, 0xf7 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1680 | { 0xe, 0xf8 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1681 | { 0xe, 0xf9 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1682 | { 0xe, 0xfa }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1683 | { 0xe, 0xfb }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1684 | { 0xe, 0xfc }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1685 | { 0xe, 0xfd }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1686 | { 0xe, 0xfe }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1687 | { 0xe, 0xff }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1688 | |||
1689 | { 0xe, 0x10 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1690 | { 0xe, 0x11 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1691 | { 0xe, 0x12 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1692 | { 0xe, 0x13 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1693 | { 0xe, 0x14 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1694 | { 0xe, 0x15 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1695 | { 0xe, 0x16 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1696 | { 0xe, 0x17 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1697 | { 0xe, 0x18 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1698 | { 0xe, 0x19 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1699 | { 0xe, 0x1a }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1700 | { 0xe, 0x1b }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1701 | { 0xe, 0x1c }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1702 | { 0xe, 0x1d }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1703 | { 0xe, 0x1e }, { 0xf, 0x40 }, { WAIT_IDLE }, | ||
1704 | { 0xe, 0x1f }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1705 | { 0xe, 0x20 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1706 | { 0xe, 0x21 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1707 | { 0xe, 0x22 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1708 | { 0xe, 0x23 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1709 | { 0xe, 0x24 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1710 | { 0xe, 0x25 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1711 | { 0xe, 0x26 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1712 | { 0xe, 0x27 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1713 | { 0xe, 0x28 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1714 | { 0xe, 0x29 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1715 | { 0xe, 0x2a }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1716 | { 0xe, 0x2b }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1717 | { 0xe, 0x2c }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1718 | { 0xe, 0x2d }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
1719 | { 0xe, 0x2e }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1720 | { 0xe, 0x2f }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1721 | { 0xe, 0x30 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1722 | { 0xe, 0x31 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1723 | { 0xe, 0x32 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1724 | { 0xe, 0x33 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1725 | { 0xe, 0x34 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1726 | { 0xe, 0x35 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1727 | { 0xe, 0x36 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1728 | { 0xe, 0x37 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1729 | { 0xe, 0x38 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1730 | { 0xe, 0x39 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1731 | { 0xe, 0x3a }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1732 | { 0xe, 0x3b }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1733 | { 0xe, 0x3c }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1734 | { 0xe, 0x3d }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1735 | { 0xe, 0x3e }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1736 | { 0xe, 0x3f }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
1737 | { 0xe, 0x40 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1738 | { 0xe, 0x41 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1739 | { 0xe, 0x42 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1740 | { 0xe, 0x43 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1741 | { 0xe, 0x44 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1742 | { 0xe, 0x45 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1743 | { 0xe, 0x46 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1744 | { 0xe, 0x47 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1745 | { 0xe, 0x48 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1746 | { 0xe, 0x49 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1747 | { 0xe, 0x4a }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1748 | { 0xe, 0x4b }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1749 | { 0xe, 0x4c }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1750 | { 0xe, 0x4d }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1751 | { 0xe, 0x4e }, { 0xf, 0x0e }, { WAIT_IDLE }, | ||
1752 | { 0xe, 0x4f }, { 0xf, 0x0e }, { WAIT_IDLE }, | ||
1753 | { 0xe, 0x50 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1754 | { 0xe, 0x51 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1755 | { 0xe, 0x52 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1756 | { 0xe, 0x53 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1757 | { 0xe, 0x54 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1758 | { 0xe, 0x55 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1759 | { 0xe, 0x56 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1760 | { 0xe, 0x57 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1761 | { 0xe, 0x58 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1762 | { 0xe, 0x59 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1763 | { 0xe, 0x5a }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1764 | { 0xe, 0x5b }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1765 | { 0xe, 0x5c }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1766 | { 0xe, 0x5d }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1767 | { 0xe, 0x5e }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1768 | { 0xe, 0x5f }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1769 | { 0xe, 0x60 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1770 | { 0xe, 0x61 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1771 | { 0xe, 0x62 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1772 | { 0xe, 0x63 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1773 | { 0xe, 0x64 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1774 | { 0xe, 0x65 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1775 | { 0xe, 0x66 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1776 | { 0xe, 0x67 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1777 | { 0xe, 0x68 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1778 | { 0xe, 0x69 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1779 | { 0xe, 0x6a }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1780 | { 0xe, 0x6b }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1781 | { 0xe, 0x6c }, { 0xf, 0x40 }, { WAIT_IDLE }, | ||
1782 | { 0xe, 0x6d }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1783 | { 0xe, 0x6e }, { 0xf, 0x40 }, { WAIT_IDLE }, | ||
1784 | { 0xe, 0x6f }, { 0xf, 0x40 }, { WAIT_IDLE }, | ||
1785 | { 0xe, 0x70 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
1786 | { 0xe, 0x71 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
1787 | { 0xe, 0x72 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
1788 | { 0xe, 0x73 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
1789 | { 0xe, 0x74 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
1790 | { 0xe, 0x75 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
1791 | { 0xe, 0x76 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
1792 | { 0xe, 0x77 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
1793 | { 0xe, 0x78 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
1794 | { 0xe, 0x79 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
1795 | { 0xe, 0x7a }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
1796 | { 0xe, 0x7b }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
1797 | { 0xe, 0x7c }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
1798 | { 0xe, 0x7d }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
1799 | { 0xe, 0x7e }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
1800 | { 0xe, 0x7f }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
1801 | { 0xe, 0x80 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1802 | { 0xe, 0x81 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1803 | { 0xe, 0x82 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1804 | { 0xe, 0x83 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1805 | { 0xe, 0x84 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1806 | { 0xe, 0x85 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1807 | { 0xe, 0x86 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1808 | { 0xe, 0x87 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1809 | { 0xe, 0x88 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1810 | { 0xe, 0x89 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1811 | { 0xe, 0x8a }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1812 | { 0xe, 0x8b }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1813 | { 0xe, 0x8c }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1814 | { 0xe, 0x8d }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1815 | { 0xe, 0x8e }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1816 | { 0xe, 0x8f }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1817 | { 0xe, 0x90 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1818 | { 0xe, 0x91 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1819 | { 0xe, 0x92 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1820 | { 0xe, 0x93 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1821 | { 0xe, 0x94 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1822 | { 0xe, 0x95 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1823 | { 0xe, 0x96 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1824 | { 0xe, 0x97 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1825 | { 0xe, 0x98 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1826 | { 0xe, 0x99 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1827 | { 0xe, 0x9a }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1828 | { 0xe, 0x9b }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1829 | { 0xe, 0x9c }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1830 | { 0xe, 0x9d }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1831 | { 0xe, 0x9e }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1832 | { 0xe, 0x9f }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1833 | { 0xe, 0xa0 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1834 | { 0xe, 0xa1 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1835 | { 0xe, 0xa2 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1836 | { 0xe, 0xa3 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1837 | { 0xe, 0xa4 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1838 | { 0xe, 0xa5 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1839 | { 0xe, 0xa6 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1840 | { 0xe, 0xa7 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1841 | { 0xe, 0xa8 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1842 | { 0xe, 0xa9 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1843 | { 0xe, 0xaa }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1844 | { 0xe, 0xab }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1845 | { 0xe, 0xac }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1846 | { 0xe, 0xad }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1847 | { 0xe, 0xae }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1848 | { 0xe, 0xaf }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1849 | |||
1850 | { 0xe, 0xc0 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1851 | { 0xe, 0xc1 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1852 | { 0xe, 0xc2 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1853 | { 0xe, 0xc3 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1854 | { 0xe, 0xc4 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1855 | { 0xe, 0xc5 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1856 | { 0xe, 0xc6 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1857 | { 0xe, 0xc7 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1858 | { 0xe, 0xc8 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1859 | { 0xe, 0xc9 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1860 | { 0xe, 0xca }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1861 | { 0xe, 0xcb }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1862 | { 0xe, 0xcc }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1863 | { 0xe, 0xcd }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1864 | { 0xe, 0xce }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1865 | { 0xe, 0xcf }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1866 | { 0xe, 0xd0 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1867 | { 0xe, 0xd1 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1868 | { 0xe, 0xd2 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1869 | { 0xe, 0xd3 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1870 | { 0xe, 0xd4 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1871 | { 0xe, 0xd5 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1872 | { 0xe, 0xd6 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1873 | { 0xe, 0xd7 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1874 | { 0xe, 0xd8 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1875 | { 0xe, 0xd9 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1876 | { 0xe, 0xda }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1877 | { 0xe, 0xdb }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1878 | { 0xe, 0xdc }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1879 | { 0xe, 0xdd }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1880 | { 0xe, 0xde }, { 0xf, 0x10 }, { WAIT_IDLE }, | ||
1881 | { 0xe, 0xdf }, { 0xf, 0x10 }, { WAIT_IDLE }, | ||
1882 | { 0xe, 0xe0 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1883 | { 0xe, 0xe1 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1884 | { 0xe, 0xe2 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1885 | { 0xe, 0xe3 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1886 | { 0xe, 0xe4 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1887 | { 0xe, 0xe5 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1888 | { 0xe, 0xe6 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1889 | { 0xe, 0xe7 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1890 | { 0xe, 0xe8 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1891 | { 0xe, 0xe9 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1892 | { 0xe, 0xea }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1893 | { 0xe, 0xeb }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1894 | { 0xe, 0xec }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1895 | { 0xe, 0xed }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1896 | { 0xe, 0xee }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1897 | { 0xe, 0xef }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
1898 | |||
1899 | { 0xe, 0x01 }, { 0xf, 0x00 }, { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1900 | { 0xe, 0x01 }, { 0xf, 0x01 }, { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1901 | { 0xe, 0x01 }, { 0xf, 0x02 }, { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1902 | { 0xe, 0x01 }, { 0xf, 0x03 }, { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1903 | { 0xe, 0x01 }, { 0xf, 0x04 }, { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1904 | { 0xe, 0x01 }, { 0xf, 0x05 }, { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1905 | { 0xe, 0x01 }, { 0xf, 0x06 }, { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1906 | { 0xe, 0x01 }, { 0xf, 0x07 }, { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1907 | { 0xe, 0x01 }, { 0xf, 0x08 }, { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1908 | { 0xe, 0x01 }, { 0xf, 0x09 }, { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1909 | { 0xe, 0x01 }, { 0xf, 0x0a }, { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1910 | { 0xe, 0x01 }, { 0xf, 0x0b }, { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1911 | { 0xe, 0x01 }, { 0xf, 0x0c }, { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1912 | { 0xe, 0x01 }, { 0xf, 0x0d }, { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1913 | { 0xe, 0x01 }, { 0xf, 0x0e }, { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1914 | { 0xe, 0x01 }, { 0xf, 0x0f }, { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
1915 | |||
1916 | /* mute on */ | ||
1917 | { 0x8, 0x02 }, | ||
1918 | |||
1919 | /* Now set the coefficients and so forth for the programs above */ | ||
1920 | { 0xb, 0x07 }, { 0xa, 0x46 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1921 | { 0xb, 0x07 }, { 0xa, 0x49 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1922 | { 0xb, 0x00 }, { 0xa, 0x4b }, { 0xd, 0x03 }, { 0xc, 0x11 }, { WAIT_IDLE }, | ||
1923 | { 0xb, 0x00 }, { 0xa, 0x4d }, { 0xd, 0x01 }, { 0xc, 0x32 }, { WAIT_IDLE }, | ||
1924 | { 0xb, 0x07 }, { 0xa, 0x46 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1925 | { 0xb, 0x07 }, { 0xa, 0x49 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1926 | { 0xb, 0x07 }, { 0xa, 0x40 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1927 | { 0xb, 0x07 }, { 0xa, 0x41 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1928 | { 0xb, 0x01 }, { 0xa, 0x40 }, { 0xd, 0x02 }, { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1929 | { 0xb, 0x01 }, { 0xa, 0x41 }, { 0xd, 0x02 }, { 0xc, 0x60 }, { WAIT_IDLE }, | ||
1930 | { 0xb, 0x07 }, { 0xa, 0x40 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1931 | { 0xb, 0x07 }, { 0xa, 0x41 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1932 | { 0xb, 0x07 }, { 0xa, 0x47 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1933 | { 0xb, 0x07 }, { 0xa, 0x4a }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1934 | { 0xb, 0x00 }, { 0xa, 0x47 }, { 0xd, 0x01 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1935 | { 0xb, 0x00 }, { 0xa, 0x4a }, { 0xd, 0x01 }, { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1936 | { 0xb, 0x07 }, { 0xa, 0x47 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1937 | { 0xb, 0x07 }, { 0xa, 0x4a }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1938 | { 0xb, 0x07 }, { 0xa, 0x7c }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1939 | { 0xb, 0x07 }, { 0xa, 0x7e }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1940 | { 0xb, 0x00 }, { 0xa, 0x00 }, { 0xd, 0x01 }, { 0xc, 0x1c }, { WAIT_IDLE }, | ||
1941 | { 0xb, 0x07 }, { 0xa, 0x7c }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1942 | { 0xb, 0x07 }, { 0xa, 0x7e }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1943 | { 0xb, 0x07 }, { 0xa, 0x44 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1944 | { 0xb, 0x00 }, { 0xa, 0x44 }, { 0xd, 0x01 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1945 | { 0xb, 0x07 }, { 0xa, 0x44 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1946 | { 0xb, 0x07 }, { 0xa, 0x42 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1947 | { 0xb, 0x07 }, { 0xa, 0x43 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1948 | { 0xb, 0x00 }, { 0xa, 0x42 }, { 0xd, 0x01 }, { 0xc, 0x1a }, { WAIT_IDLE }, | ||
1949 | { 0xb, 0x00 }, { 0xa, 0x43 }, { 0xd, 0x01 }, { 0xc, 0x20 }, { WAIT_IDLE }, | ||
1950 | { 0xb, 0x07 }, { 0xa, 0x42 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1951 | { 0xb, 0x07 }, { 0xa, 0x43 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1952 | { 0xb, 0x07 }, { 0xa, 0x40 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1953 | { 0xb, 0x07 }, { 0xa, 0x41 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1954 | { 0xb, 0x01 }, { 0xa, 0x40 }, { 0xd, 0x02 }, { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1955 | { 0xb, 0x01 }, { 0xa, 0x41 }, { 0xd, 0x02 }, { 0xc, 0x60 }, { WAIT_IDLE }, | ||
1956 | { 0xb, 0x07 }, { 0xa, 0x40 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1957 | { 0xb, 0x07 }, { 0xa, 0x41 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1958 | { 0xb, 0x07 }, { 0xa, 0x44 }, { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
1959 | { 0xb, 0x07 }, { 0xa, 0x42 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1960 | { 0xb, 0x07 }, { 0xa, 0x43 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1961 | { 0xb, 0x07 }, { 0xa, 0x40 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1962 | { 0xb, 0x07 }, { 0xa, 0x41 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
1963 | { 0xb, 0x07 }, { 0xa, 0x51 }, { 0xd, 0x06 }, { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1964 | { 0xb, 0x07 }, { 0xa, 0x50 }, { 0xd, 0x06 }, { 0xc, 0x40 }, { WAIT_IDLE }, | ||
1965 | { 0xb, 0x07 }, { 0xa, 0x4f }, { 0xd, 0x03 }, { 0xc, 0x81 }, { WAIT_IDLE }, | ||
1966 | { 0xb, 0x07 }, { 0xa, 0x53 }, { 0xd, 0x1a }, { 0xc, 0x76 }, { WAIT_IDLE }, | ||
1967 | { 0xb, 0x07 }, { 0xa, 0x54 }, { 0xd, 0x0d }, { 0xc, 0x8b }, { WAIT_IDLE }, | ||
1968 | { 0xb, 0x07 }, { 0xa, 0x55 }, { 0xd, 0x04 }, { 0xc, 0xe9 }, { WAIT_IDLE }, | ||
1969 | { 0xb, 0x07 }, { 0xa, 0x56 }, { 0xd, 0x0b }, { 0xc, 0x17 }, { WAIT_IDLE }, | ||
1970 | { 0xb, 0x07 }, { 0xa, 0x57 }, { 0xd, 0x1a }, { 0xc, 0x38 }, { WAIT_IDLE }, | ||
1971 | { 0xb, 0x07 }, { 0xa, 0x58 }, { 0xd, 0x0d }, { 0xc, 0xc9 }, { WAIT_IDLE }, | ||
1972 | { 0xb, 0x07 }, { 0xa, 0x59 }, { 0xd, 0x04 }, { 0xc, 0x6f }, { WAIT_IDLE }, | ||
1973 | { 0xb, 0x07 }, { 0xa, 0x5a }, { 0xd, 0x0b }, { 0xc, 0x91 }, { WAIT_IDLE }, | ||
1974 | { 0xb, 0x07 }, { 0xa, 0x73 }, { 0xd, 0x14 }, { 0xc, 0xda }, { WAIT_IDLE }, | ||
1975 | { 0xb, 0x07 }, { 0xa, 0x74 }, { 0xd, 0x0d }, { 0xc, 0x93 }, { WAIT_IDLE }, | ||
1976 | { 0xb, 0x07 }, { 0xa, 0x75 }, { 0xd, 0x04 }, { 0xc, 0xd9 }, { WAIT_IDLE }, | ||
1977 | { 0xb, 0x07 }, { 0xa, 0x76 }, { 0xd, 0x05 }, { 0xc, 0x93 }, { WAIT_IDLE }, | ||
1978 | { 0xb, 0x07 }, { 0xa, 0x77 }, { 0xd, 0x14 }, { 0xc, 0xda }, { WAIT_IDLE }, | ||
1979 | { 0xb, 0x07 }, { 0xa, 0x78 }, { 0xd, 0x0d }, { 0xc, 0x93 }, { WAIT_IDLE }, | ||
1980 | { 0xb, 0x07 }, { 0xa, 0x79 }, { 0xd, 0x04 }, { 0xc, 0xd9 }, { WAIT_IDLE }, | ||
1981 | { 0xb, 0x07 }, { 0xa, 0x7a }, { 0xd, 0x05 }, { 0xc, 0x93 }, { WAIT_IDLE }, | ||
1982 | { 0xb, 0x07 }, { 0xa, 0x5e }, { 0xd, 0x03 }, { 0xc, 0x68 }, { WAIT_IDLE }, | ||
1983 | { 0xb, 0x07 }, { 0xa, 0x5c }, { 0xd, 0x04 }, { 0xc, 0x31 }, { WAIT_IDLE }, | ||
1984 | { 0xb, 0x07 }, { 0xa, 0x5d }, { 0xd, 0x04 }, { 0xc, 0x31 }, { WAIT_IDLE }, | ||
1985 | { 0xb, 0x07 }, { 0xa, 0x62 }, { 0xd, 0x03 }, { 0xc, 0x52 }, { WAIT_IDLE }, | ||
1986 | { 0xb, 0x07 }, { 0xa, 0x60 }, { 0xd, 0x04 }, { 0xc, 0x76 }, { WAIT_IDLE }, | ||
1987 | { 0xb, 0x07 }, { 0xa, 0x61 }, { 0xd, 0x04 }, { 0xc, 0x76 }, { WAIT_IDLE }, | ||
1988 | { 0xb, 0x07 }, { 0xa, 0x66 }, { 0xd, 0x03 }, { 0xc, 0x2e }, { WAIT_IDLE }, | ||
1989 | { 0xb, 0x07 }, { 0xa, 0x64 }, { 0xd, 0x04 }, { 0xc, 0xda }, { WAIT_IDLE }, | ||
1990 | { 0xb, 0x07 }, { 0xa, 0x65 }, { 0xd, 0x04 }, { 0xc, 0xda }, { WAIT_IDLE }, | ||
1991 | { 0xb, 0x07 }, { 0xa, 0x6a }, { 0xd, 0x02 }, { 0xc, 0xf6 }, { WAIT_IDLE }, | ||
1992 | { 0xb, 0x07 }, { 0xa, 0x68 }, { 0xd, 0x05 }, { 0xc, 0x62 }, { WAIT_IDLE }, | ||
1993 | { 0xb, 0x07 }, { 0xa, 0x69 }, { 0xd, 0x05 }, { 0xc, 0x62 }, { WAIT_IDLE }, | ||
1994 | { 0xb, 0x06 }, { 0xa, 0x46 }, { 0xd, 0x0a }, { 0xc, 0x22 }, { WAIT_IDLE }, | ||
1995 | { 0xb, 0x06 }, { 0xa, 0x48 }, { 0xd, 0x0d }, { 0xc, 0x24 }, { WAIT_IDLE }, | ||
1996 | { 0xb, 0x06 }, { 0xa, 0x6e }, { 0xd, 0x11 }, { 0xc, 0xd3 }, { WAIT_IDLE }, | ||
1997 | { 0xb, 0x06 }, { 0xa, 0x70 }, { 0xd, 0x15 }, { 0xc, 0xcb }, { WAIT_IDLE }, | ||
1998 | { 0xb, 0x06 }, { 0xa, 0x52 }, { 0xd, 0x20 }, { 0xc, 0x93 }, { WAIT_IDLE }, | ||
1999 | { 0xb, 0x06 }, { 0xa, 0x54 }, { 0xd, 0x20 }, { 0xc, 0x54 }, { WAIT_IDLE }, | ||
2000 | { 0xb, 0x06 }, { 0xa, 0x4a }, { 0xd, 0x27 }, { 0xc, 0x1d }, { WAIT_IDLE }, | ||
2001 | { 0xb, 0x06 }, { 0xa, 0x58 }, { 0xd, 0x2f }, { 0xc, 0xc8 }, { WAIT_IDLE }, | ||
2002 | { 0xb, 0x06 }, { 0xa, 0x5c }, { 0xd, 0x30 }, { 0xc, 0x07 }, { WAIT_IDLE }, | ||
2003 | { 0xb, 0x06 }, { 0xa, 0x4c }, { 0xd, 0x37 }, { 0xc, 0x90 }, { WAIT_IDLE }, | ||
2004 | { 0xb, 0x06 }, { 0xa, 0x60 }, { 0xd, 0x3d }, { 0xc, 0xdb }, { WAIT_IDLE }, | ||
2005 | { 0xb, 0x06 }, { 0xa, 0x64 }, { 0xd, 0x3e }, { 0xc, 0x42 }, { WAIT_IDLE }, | ||
2006 | { 0xb, 0x06 }, { 0xa, 0x4e }, { 0xd, 0x45 }, { 0xc, 0x78 }, { WAIT_IDLE }, | ||
2007 | { 0xb, 0x06 }, { 0xa, 0x68 }, { 0xd, 0x4c }, { 0xc, 0x48 }, { WAIT_IDLE }, | ||
2008 | { 0xb, 0x06 }, { 0xa, 0x6c }, { 0xd, 0x4c }, { 0xc, 0x6c }, { WAIT_IDLE }, | ||
2009 | { 0xb, 0x06 }, { 0xa, 0x50 }, { 0xd, 0x52 }, { 0xc, 0xe2 }, { WAIT_IDLE }, | ||
2010 | { 0xb, 0x06 }, { 0xa, 0x42 }, { 0xd, 0x02 }, { 0xc, 0xba }, { WAIT_IDLE }, | ||
2011 | |||
2012 | /* Some settings (?) */ | ||
2013 | { WAIT_IDLE }, { 0xe, 0x1e }, { 0xf, 0x14 }, | ||
2014 | { WAIT_IDLE }, { 0xe, 0xde }, { 0xf, 0x20 }, | ||
2015 | { WAIT_IDLE }, { 0xe, 0xdf }, { 0xf, 0x20 }, | ||
2016 | |||
2017 | /* some more coefficients */ | ||
2018 | { WAIT_IDLE }, { 0xb, 0x06 }, { 0xa, 0x78 }, { 0xd, 0x00 }, { 0xc, 0x40 }, | ||
2019 | { WAIT_IDLE }, { 0xb, 0x07 }, { 0xa, 0x03 }, { 0xd, 0x0f }, { 0xc, 0xff }, | ||
2020 | { WAIT_IDLE }, { 0xb, 0x07 }, { 0xa, 0x0b }, { 0xd, 0x0f }, { 0xc, 0xff }, | ||
2021 | { WAIT_IDLE }, { 0xb, 0x07 }, { 0xa, 0x02 }, { 0xd, 0x00 }, { 0xc, 0x00 }, | ||
2022 | { WAIT_IDLE }, { 0xb, 0x07 }, { 0xa, 0x0a }, { 0xd, 0x00 }, { 0xc, 0x00 }, | ||
2023 | { WAIT_IDLE }, { 0xb, 0x07 }, { 0xa, 0x46 }, { 0xd, 0x00 }, { 0xc, 0x00 }, | ||
2024 | { WAIT_IDLE }, { 0xb, 0x07 }, { 0xa, 0x49 }, { 0xd, 0x00 }, { 0xc, 0x00 }, | ||
2025 | |||
2026 | /* Now, for some strange reason, lets reload every page | ||
2027 | and all the coefficients over again. I have *NO* idea | ||
2028 | why this is done. I do know that no sound is produced | ||
2029 | is this phase is omitted. */ | ||
2030 | { 0x9, 0x05 }, { 0xb, 0x00 }, { 0xa, 0x10 }, | ||
2031 | |||
2032 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2033 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2034 | { 0xd, 0x02 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2035 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2036 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2037 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2038 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2039 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2040 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2041 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2042 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2043 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2044 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2045 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2046 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2047 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2048 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2049 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2050 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2051 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2052 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2053 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2054 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2055 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2056 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2057 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2058 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2059 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2060 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2061 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2062 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2063 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2064 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2065 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2066 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2067 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2068 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2069 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2070 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2071 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2072 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2073 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2074 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2075 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2076 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2077 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2078 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2079 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2080 | |||
2081 | { 0x9, 0x05 }, { 0xb, 0x01 }, { 0xa, 0x10 }, | ||
2082 | |||
2083 | { 0xd, 0x01 }, { 0xc, 0xc0 }, { WAIT_IDLE }, | ||
2084 | { 0xd, 0x01 }, { 0xc, 0xfa }, { WAIT_IDLE }, | ||
2085 | { 0xd, 0x00 }, { 0xc, 0x1a }, { WAIT_IDLE }, | ||
2086 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2087 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2088 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2089 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2090 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2091 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2092 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2093 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2094 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2095 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2096 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2097 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2098 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2099 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2100 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2101 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2102 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2103 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2104 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2105 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2106 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2107 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2108 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2109 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2110 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2111 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2112 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2113 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2114 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2115 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2116 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2117 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2118 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2119 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2120 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2121 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2122 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2123 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2124 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2125 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2126 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2127 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2128 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2129 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2130 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2131 | |||
2132 | { WAIT_IDLE }, { WAIT_IDLE }, | ||
2133 | |||
2134 | { 0x9, 0x05 }, { 0xb, 0x02 }, { 0xa, 0x10 }, | ||
2135 | |||
2136 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
2137 | { 0xc, 0x46 }, { WAIT_IDLE }, | ||
2138 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2139 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2140 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2141 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2142 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2143 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2144 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2145 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2146 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2147 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2148 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2149 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2150 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2151 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2152 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2153 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2154 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2155 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2156 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2157 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2158 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2159 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2160 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2161 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2162 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2163 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2164 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2165 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2166 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2167 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2168 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2169 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2170 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2171 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2172 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2173 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2174 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2175 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2176 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2177 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2178 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2179 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2180 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2181 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2182 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2183 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2184 | |||
2185 | { 0x9, 0x05 }, { 0xb, 0x03 }, { 0xa, 0x10 }, | ||
2186 | |||
2187 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2188 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2189 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2190 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2191 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2192 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2193 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2194 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2195 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2196 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2197 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2198 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2199 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2200 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2201 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2202 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2203 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2204 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2205 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2206 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2207 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2208 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2209 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2210 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2211 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2212 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2213 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2214 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2215 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2216 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2217 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2218 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2219 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2220 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2221 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2222 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2223 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2224 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2225 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2226 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2227 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2228 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2229 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2230 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2231 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2232 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2233 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2234 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2235 | |||
2236 | { 0x9, 0x05 }, { 0xb, 0x04 }, { 0xa, 0x10 }, | ||
2237 | |||
2238 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2239 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2240 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2241 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2242 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2243 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2244 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2245 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2246 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2247 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2248 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2249 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2250 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2251 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2252 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2253 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2254 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2255 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2256 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2257 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2258 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2259 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2260 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2261 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2262 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2263 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2264 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2265 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2266 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2267 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2268 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2269 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2270 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2271 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2272 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2273 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2274 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2275 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2276 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2277 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2278 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2279 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2280 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2281 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2282 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2283 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2284 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2285 | { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2286 | |||
2287 | /* Page six v.2 */ | ||
2288 | { 0x9, 0x01 }, { 0xb, 0x06 }, | ||
2289 | |||
2290 | { 0xa, 0x10 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2291 | { 0xa, 0x12 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2292 | { 0xa, 0x14 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2293 | { 0xa, 0x16 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2294 | { 0xa, 0x18 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2295 | { 0xa, 0x1a }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2296 | { 0xa, 0x1c }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2297 | { 0xa, 0x1e }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2298 | { 0xa, 0x20 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2299 | { 0xa, 0x22 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2300 | { 0xa, 0x24 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2301 | { 0xa, 0x26 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2302 | { 0xa, 0x28 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2303 | { 0xa, 0x2a }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2304 | { 0xa, 0x2c }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2305 | { 0xa, 0x2e }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2306 | { 0xa, 0x30 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2307 | { 0xa, 0x32 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2308 | { 0xa, 0x34 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2309 | { 0xa, 0x36 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2310 | { 0xa, 0x38 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2311 | { 0xa, 0x3a }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2312 | { 0xa, 0x3c }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2313 | { 0xa, 0x3e }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2314 | |||
2315 | { 0x9, 0x05 }, { 0xb, 0x07 }, { 0xa, 0x10 }, | ||
2316 | |||
2317 | { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
2318 | { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
2319 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2320 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2321 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2322 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2323 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2324 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2325 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2326 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2327 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2328 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2329 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2330 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2331 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2332 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2333 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2334 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2335 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2336 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2337 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2338 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2339 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2340 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2341 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2342 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2343 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2344 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2345 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2346 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2347 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2348 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2349 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2350 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2351 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2352 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2353 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2354 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2355 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2356 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2357 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2358 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2359 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2360 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2361 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2362 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2363 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2364 | { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2365 | |||
2366 | { 0xe, 0x01 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2367 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2368 | { 0xe, 0x01 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
2369 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2370 | { 0xe, 0x01 }, { 0xf, 0x02 }, { WAIT_IDLE }, | ||
2371 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2372 | { 0xe, 0x01 }, { 0xf, 0x03 }, { WAIT_IDLE }, | ||
2373 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2374 | { 0xe, 0x01 }, { 0xf, 0x04 }, { WAIT_IDLE }, | ||
2375 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2376 | { 0xe, 0x01 }, { 0xf, 0x05 }, { WAIT_IDLE }, | ||
2377 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2378 | { 0xe, 0x01 }, { 0xf, 0x06 }, { WAIT_IDLE }, | ||
2379 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2380 | { 0xe, 0x01 }, { 0xf, 0x07 }, { WAIT_IDLE }, | ||
2381 | { 0xe, 0x02 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2382 | { 0xe, 0xb0 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
2383 | { 0xe, 0xb1 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
2384 | { 0xe, 0xb2 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
2385 | { 0xe, 0xb3 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
2386 | { 0xe, 0xb4 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
2387 | { 0xe, 0xb5 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
2388 | { 0xe, 0xb6 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
2389 | { 0xe, 0xb7 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
2390 | { 0xe, 0xf0 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
2391 | { 0xe, 0xf1 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
2392 | { 0xe, 0xf2 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
2393 | { 0xe, 0xf3 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
2394 | { 0xe, 0xf4 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
2395 | { 0xe, 0xf5 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
2396 | { 0xe, 0xf6 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
2397 | { 0xe, 0xf7 }, { 0xf, 0x20 }, { WAIT_IDLE }, | ||
2398 | { 0xe, 0x10 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
2399 | { 0xe, 0x11 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
2400 | { 0xe, 0x12 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
2401 | { 0xe, 0x13 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
2402 | { 0xe, 0x14 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
2403 | { 0xe, 0x15 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
2404 | { 0xe, 0x16 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
2405 | { 0xe, 0x17 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
2406 | { 0xe, 0x20 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
2407 | { 0xe, 0x21 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
2408 | { 0xe, 0x22 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
2409 | { 0xe, 0x23 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
2410 | { 0xe, 0x24 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
2411 | { 0xe, 0x25 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
2412 | { 0xe, 0x26 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
2413 | { 0xe, 0x27 }, { 0xf, 0xff }, { WAIT_IDLE }, | ||
2414 | { 0xe, 0x30 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2415 | { 0xe, 0x31 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2416 | { 0xe, 0x32 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2417 | { 0xe, 0x33 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2418 | { 0xe, 0x34 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2419 | { 0xe, 0x35 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2420 | { 0xe, 0x36 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2421 | { 0xe, 0x37 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2422 | { 0xe, 0x40 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2423 | { 0xe, 0x41 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2424 | { 0xe, 0x42 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2425 | { 0xe, 0x43 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2426 | { 0xe, 0x44 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2427 | { 0xe, 0x45 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2428 | { 0xe, 0x46 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2429 | { 0xe, 0x47 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2430 | { 0xe, 0x50 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2431 | { 0xe, 0x51 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2432 | { 0xe, 0x52 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2433 | { 0xe, 0x53 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2434 | { 0xe, 0x54 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2435 | { 0xe, 0x55 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2436 | { 0xe, 0x56 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2437 | { 0xe, 0x57 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2438 | { 0xe, 0x60 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2439 | { 0xe, 0x61 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2440 | { 0xe, 0x62 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2441 | { 0xe, 0x63 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2442 | { 0xe, 0x64 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2443 | { 0xe, 0x65 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2444 | { 0xe, 0x66 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2445 | { 0xe, 0x67 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2446 | { 0xe, 0x70 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
2447 | { 0xe, 0x71 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
2448 | { 0xe, 0x72 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
2449 | { 0xe, 0x73 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
2450 | { 0xe, 0x74 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
2451 | { 0xe, 0x75 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
2452 | { 0xe, 0x76 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
2453 | { 0xe, 0x77 }, { 0xf, 0xc0 }, { WAIT_IDLE }, | ||
2454 | { 0xe, 0x80 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2455 | { 0xe, 0x81 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2456 | { 0xe, 0x82 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2457 | { 0xe, 0x83 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2458 | { 0xe, 0x84 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2459 | { 0xe, 0x85 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2460 | { 0xe, 0x86 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2461 | { 0xe, 0x87 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2462 | { 0xe, 0x90 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2463 | { 0xe, 0x91 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2464 | { 0xe, 0x92 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2465 | { 0xe, 0x93 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2466 | { 0xe, 0x94 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2467 | { 0xe, 0x95 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2468 | { 0xe, 0x96 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2469 | { 0xe, 0x97 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2470 | { 0xe, 0xa0 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2471 | { 0xe, 0xa1 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2472 | { 0xe, 0xa2 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2473 | { 0xe, 0xa3 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2474 | { 0xe, 0xa4 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2475 | { 0xe, 0xa5 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2476 | { 0xe, 0xa6 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2477 | { 0xe, 0xa7 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2478 | { 0xe, 0xc0 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2479 | { 0xe, 0xc1 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2480 | { 0xe, 0xc2 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2481 | { 0xe, 0xc3 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2482 | { 0xe, 0xc4 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2483 | { 0xe, 0xc5 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2484 | { 0xe, 0xc6 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2485 | { 0xe, 0xc7 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2486 | { 0xe, 0xd0 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2487 | { 0xe, 0xd1 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2488 | { 0xe, 0xd2 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2489 | { 0xe, 0xd3 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2490 | { 0xe, 0xd4 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2491 | { 0xe, 0xd5 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2492 | { 0xe, 0xd6 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2493 | { 0xe, 0xd7 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2494 | { 0xe, 0xe0 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2495 | { 0xe, 0xe1 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2496 | { 0xe, 0xe2 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2497 | { 0xe, 0xe3 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2498 | { 0xe, 0xe4 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2499 | { 0xe, 0xe5 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2500 | { 0xe, 0xe6 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2501 | { 0xe, 0xe7 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2502 | { 0xe, 0x01 }, { 0xf, 0x00 }, { WAIT_IDLE }, | ||
2503 | { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
2504 | { 0xe, 0x01 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
2505 | { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
2506 | { 0xe, 0x01 }, { 0xf, 0x02 }, { WAIT_IDLE }, | ||
2507 | { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
2508 | { 0xe, 0x01 }, { 0xf, 0x03 }, { WAIT_IDLE }, | ||
2509 | { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
2510 | { 0xe, 0x01 }, { 0xf, 0x04 }, { WAIT_IDLE }, | ||
2511 | { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
2512 | { 0xe, 0x01 }, { 0xf, 0x05 }, { WAIT_IDLE }, | ||
2513 | { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
2514 | { 0xe, 0x01 }, { 0xf, 0x06 }, { WAIT_IDLE }, | ||
2515 | { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
2516 | { 0xe, 0x01 }, { 0xf, 0x07 }, { WAIT_IDLE }, | ||
2517 | { 0xe, 0x02 }, { 0xf, 0x01 }, { WAIT_IDLE }, | ||
2518 | |||
2519 | { 0xb, 0x07 }, { 0xa, 0x46 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2520 | { 0xb, 0x07 }, { 0xa, 0x49 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2521 | { 0xb, 0x07 }, { 0xa, 0x45 }, { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
2522 | { 0xb, 0x07 }, { 0xa, 0x48 }, { 0xd, 0x0f }, { 0xc, 0xff }, { WAIT_IDLE }, | ||
2523 | { 0xb, 0x07 }, { 0xa, 0x7b }, { 0xd, 0x04 }, { 0xc, 0xcc }, { WAIT_IDLE }, | ||
2524 | { 0xb, 0x07 }, { 0xa, 0x7d }, { 0xd, 0x04 }, { 0xc, 0xcc }, { WAIT_IDLE }, | ||
2525 | { 0xb, 0x07 }, { 0xa, 0x7c }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2526 | { 0xb, 0x07 }, { 0xa, 0x7e }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2527 | { 0xb, 0x07 }, { 0xa, 0x46 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2528 | { 0xb, 0x07 }, { 0xa, 0x49 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2529 | { 0xb, 0x07 }, { 0xa, 0x47 }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2530 | { 0xb, 0x07 }, { 0xa, 0x4a }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2531 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2532 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x00 }, { 0xc, 0x00 }, { WAIT_IDLE }, | ||
2533 | |||
2534 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x00 }, { 0xc, 0x00 }, | ||
2535 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x00 }, { 0xc, 0x00 }, | ||
2536 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x00 }, { 0xc, 0x28 }, | ||
2537 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x00 }, { 0xc, 0x28 }, | ||
2538 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x00 }, { 0xc, 0x51 }, | ||
2539 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x00 }, { 0xc, 0x51 }, | ||
2540 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x00 }, { 0xc, 0x7a }, | ||
2541 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x00 }, { 0xc, 0x7a }, | ||
2542 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x00 }, { 0xc, 0xa3 }, | ||
2543 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x00 }, { 0xc, 0xa3 }, | ||
2544 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x00 }, { 0xc, 0xcc }, | ||
2545 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x00 }, { 0xc, 0xcc }, | ||
2546 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x00 }, { 0xc, 0xf5 }, | ||
2547 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x00 }, { 0xc, 0xf5 }, | ||
2548 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x01 }, { 0xc, 0x1e }, | ||
2549 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x01 }, { 0xc, 0x1e }, | ||
2550 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x01 }, { 0xc, 0x47 }, | ||
2551 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x01 }, { 0xc, 0x47 }, | ||
2552 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x01 }, { 0xc, 0x70 }, | ||
2553 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x01 }, { 0xc, 0x70 }, | ||
2554 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x01 }, { 0xc, 0x99 }, | ||
2555 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x01 }, { 0xc, 0x99 }, | ||
2556 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x01 }, { 0xc, 0xc2 }, | ||
2557 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x01 }, { 0xc, 0xc2 }, | ||
2558 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x01 }, { 0xc, 0xeb }, | ||
2559 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x01 }, { 0xc, 0xeb }, | ||
2560 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x02 }, { 0xc, 0x14 }, | ||
2561 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x02 }, { 0xc, 0x14 }, | ||
2562 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x02 }, { 0xc, 0x3d }, | ||
2563 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x02 }, { 0xc, 0x3d }, | ||
2564 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x02 }, { 0xc, 0x66 }, | ||
2565 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x02 }, { 0xc, 0x66 }, | ||
2566 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x02 }, { 0xc, 0x8f }, | ||
2567 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x02 }, { 0xc, 0x8f }, | ||
2568 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x02 }, { 0xc, 0xb8 }, | ||
2569 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x02 }, { 0xc, 0xb8 }, | ||
2570 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x02 }, { 0xc, 0xe1 }, | ||
2571 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x02 }, { 0xc, 0xe1 }, | ||
2572 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x03 }, { 0xc, 0x0a }, | ||
2573 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x03 }, { 0xc, 0x0a }, | ||
2574 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x03 }, { 0xc, 0x33 }, | ||
2575 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x03 }, { 0xc, 0x33 }, | ||
2576 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x03 }, { 0xc, 0x5c }, | ||
2577 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x03 }, { 0xc, 0x5c }, | ||
2578 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x03 }, { 0xc, 0x85 }, | ||
2579 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x03 }, { 0xc, 0x85 }, | ||
2580 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x03 }, { 0xc, 0xae }, | ||
2581 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x03 }, { 0xc, 0xae }, | ||
2582 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x03 }, { 0xc, 0xd7 }, | ||
2583 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x03 }, { 0xc, 0xd7 }, | ||
2584 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x04 }, { 0xc, 0x00 }, | ||
2585 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x04 }, { 0xc, 0x00 }, | ||
2586 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x04 }, { 0xc, 0x28 }, | ||
2587 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x04 }, { 0xc, 0x28 }, | ||
2588 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x04 }, { 0xc, 0x51 }, | ||
2589 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x04 }, { 0xc, 0x51 }, | ||
2590 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x04 }, { 0xc, 0x7a }, | ||
2591 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x04 }, { 0xc, 0x7a }, | ||
2592 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x04 }, { 0xc, 0xa3 }, | ||
2593 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x04 }, { 0xc, 0xa3 }, | ||
2594 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x04 }, { 0xc, 0xcc }, | ||
2595 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x04 }, { 0xc, 0xcc }, | ||
2596 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x04 }, { 0xc, 0xf5 }, | ||
2597 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x04 }, { 0xc, 0xf5 }, | ||
2598 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x05 }, { 0xc, 0x1e }, | ||
2599 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x05 }, { 0xc, 0x1e }, | ||
2600 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x05 }, { 0xc, 0x47 }, | ||
2601 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x05 }, { 0xc, 0x47 }, | ||
2602 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x05 }, { 0xc, 0x70 }, | ||
2603 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x05 }, { 0xc, 0x70 }, | ||
2604 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x05 }, { 0xc, 0x99 }, | ||
2605 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x05 }, { 0xc, 0x99 }, | ||
2606 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x05 }, { 0xc, 0xc2 }, | ||
2607 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x05 }, { 0xc, 0xc2 }, | ||
2608 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x05 }, { 0xc, 0xeb }, | ||
2609 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x05 }, { 0xc, 0xeb }, | ||
2610 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x06 }, { 0xc, 0x14 }, | ||
2611 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x06 }, { 0xc, 0x14 }, | ||
2612 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x06 }, { 0xc, 0x3d }, | ||
2613 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x06 }, { 0xc, 0x3d }, | ||
2614 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x06 }, { 0xc, 0x66 }, | ||
2615 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x06 }, { 0xc, 0x66 }, | ||
2616 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x06 }, { 0xc, 0x8f }, | ||
2617 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x06 }, { 0xc, 0x8f }, | ||
2618 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x06 }, { 0xc, 0xb8 }, | ||
2619 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x06 }, { 0xc, 0xb8 }, | ||
2620 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x06 }, { 0xc, 0xe1 }, | ||
2621 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x06 }, { 0xc, 0xe1 }, | ||
2622 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x07 }, { 0xc, 0x0a }, | ||
2623 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x07 }, { 0xc, 0x0a }, | ||
2624 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x07 }, { 0xc, 0x33 }, | ||
2625 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x07 }, { 0xc, 0x33 }, | ||
2626 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x07 }, { 0xc, 0x5c }, | ||
2627 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x07 }, { 0xc, 0x5c }, | ||
2628 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x07 }, { 0xc, 0x85 }, | ||
2629 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x07 }, { 0xc, 0x85 }, | ||
2630 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x07 }, { 0xc, 0xae }, | ||
2631 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x07 }, { 0xc, 0xae }, | ||
2632 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x07 }, { 0xc, 0xd7 }, | ||
2633 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x07 }, { 0xc, 0xd7 }, | ||
2634 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x08 }, { 0xc, 0x00 }, | ||
2635 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x08 }, { 0xc, 0x00 }, | ||
2636 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x08 }, { 0xc, 0x28 }, | ||
2637 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x08 }, { 0xc, 0x28 }, | ||
2638 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x08 }, { 0xc, 0x51 }, | ||
2639 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x08 }, { 0xc, 0x51 }, | ||
2640 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x08 }, { 0xc, 0x7a }, | ||
2641 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x08 }, { 0xc, 0x7a }, | ||
2642 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x08 }, { 0xc, 0xa3 }, | ||
2643 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x08 }, { 0xc, 0xa3 }, | ||
2644 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x08 }, { 0xc, 0xcc }, | ||
2645 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x08 }, { 0xc, 0xcc }, | ||
2646 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x08 }, { 0xc, 0xf5 }, | ||
2647 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x08 }, { 0xc, 0xf5 }, | ||
2648 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x09 }, { 0xc, 0x1e }, | ||
2649 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x09 }, { 0xc, 0x1e }, | ||
2650 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x09 }, { 0xc, 0x47 }, | ||
2651 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x09 }, { 0xc, 0x47 }, | ||
2652 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x09 }, { 0xc, 0x70 }, | ||
2653 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x09 }, { 0xc, 0x70 }, | ||
2654 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x09 }, { 0xc, 0x99 }, | ||
2655 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x09 }, { 0xc, 0x99 }, | ||
2656 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x09 }, { 0xc, 0xc2 }, | ||
2657 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x09 }, { 0xc, 0xc2 }, | ||
2658 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x09 }, { 0xc, 0xeb }, | ||
2659 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x09 }, { 0xc, 0xeb }, | ||
2660 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0a }, { 0xc, 0x14 }, | ||
2661 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0a }, { 0xc, 0x14 }, | ||
2662 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0a }, { 0xc, 0x3d }, | ||
2663 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0a }, { 0xc, 0x3d }, | ||
2664 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0a }, { 0xc, 0x66 }, | ||
2665 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0a }, { 0xc, 0x66 }, | ||
2666 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0a }, { 0xc, 0x8f }, | ||
2667 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0a }, { 0xc, 0x8f }, | ||
2668 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0a }, { 0xc, 0xb8 }, | ||
2669 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0a }, { 0xc, 0xb8 }, | ||
2670 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0a }, { 0xc, 0xe1 }, | ||
2671 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0a }, { 0xc, 0xe1 }, | ||
2672 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0b }, { 0xc, 0x0a }, | ||
2673 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0b }, { 0xc, 0x0a }, | ||
2674 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0b }, { 0xc, 0x33 }, | ||
2675 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0b }, { 0xc, 0x33 }, | ||
2676 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0b }, { 0xc, 0x5c }, | ||
2677 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0b }, { 0xc, 0x5c }, | ||
2678 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0b }, { 0xc, 0x85 }, | ||
2679 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0b }, { 0xc, 0x85 }, | ||
2680 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0b }, { 0xc, 0xae }, | ||
2681 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0b }, { 0xc, 0xae }, | ||
2682 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0b }, { 0xc, 0xd7 }, | ||
2683 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0b }, { 0xc, 0xd7 }, | ||
2684 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0c }, { 0xc, 0x00 }, | ||
2685 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0c }, { 0xc, 0x00 }, | ||
2686 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0c }, { 0xc, 0x28 }, | ||
2687 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0c }, { 0xc, 0x28 }, | ||
2688 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0c }, { 0xc, 0x51 }, | ||
2689 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0c }, { 0xc, 0x51 }, | ||
2690 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0c }, { 0xc, 0x7a }, | ||
2691 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0c }, { 0xc, 0x7a }, | ||
2692 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0c }, { 0xc, 0xa3 }, | ||
2693 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0c }, { 0xc, 0xa3 }, | ||
2694 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0c }, { 0xc, 0xcc }, | ||
2695 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0c }, { 0xc, 0xcc }, | ||
2696 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0c }, { 0xc, 0xf5 }, | ||
2697 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0c }, { 0xc, 0xf5 }, | ||
2698 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0d }, { 0xc, 0x1e }, | ||
2699 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0d }, { 0xc, 0x1e }, | ||
2700 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0d }, { 0xc, 0x47 }, | ||
2701 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0d }, { 0xc, 0x47 }, | ||
2702 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0d }, { 0xc, 0x70 }, | ||
2703 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0d }, { 0xc, 0x70 }, | ||
2704 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0d }, { 0xc, 0x99 }, | ||
2705 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0d }, { 0xc, 0x99 }, | ||
2706 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0d }, { 0xc, 0xc2 }, | ||
2707 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0d }, { 0xc, 0xc2 }, | ||
2708 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0d }, { 0xc, 0xeb }, | ||
2709 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0d }, { 0xc, 0xeb }, | ||
2710 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0e }, { 0xc, 0x14 }, | ||
2711 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0e }, { 0xc, 0x14 }, | ||
2712 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0e }, { 0xc, 0x3d }, | ||
2713 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0e }, { 0xc, 0x3d }, | ||
2714 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0e }, { 0xc, 0x66 }, | ||
2715 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0e }, { 0xc, 0x66 }, | ||
2716 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0e }, { 0xc, 0x8f }, | ||
2717 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0e }, { 0xc, 0x8f }, | ||
2718 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0e }, { 0xc, 0xb8 }, | ||
2719 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0e }, { 0xc, 0xb8 }, | ||
2720 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0e }, { 0xc, 0xe1 }, | ||
2721 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0e }, { 0xc, 0xe1 }, | ||
2722 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0f }, { 0xc, 0x0a }, | ||
2723 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0f }, { 0xc, 0x0a }, | ||
2724 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0f }, { 0xc, 0x33 }, | ||
2725 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0f }, { 0xc, 0x33 }, | ||
2726 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0f }, { 0xc, 0x5c }, | ||
2727 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0f }, { 0xc, 0x5c }, | ||
2728 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0f }, { 0xc, 0x85 }, | ||
2729 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0f }, { 0xc, 0x85 }, | ||
2730 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0f }, { 0xc, 0xae }, | ||
2731 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0f }, { 0xc, 0xae }, | ||
2732 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0f }, { 0xc, 0xd7 }, | ||
2733 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0f }, { 0xc, 0xd7 }, | ||
2734 | { 0xb, 0x07 }, { 0xa, 0x4c }, { 0xd, 0x0f }, { 0xc, 0xff }, | ||
2735 | { 0xb, 0x07 }, { 0xa, 0x4e }, { 0xd, 0x0f }, { 0xc, 0xff }, | ||
2736 | |||
2737 | /* mute off */ | ||
2738 | { 0x8, 0x00 }, { WAIT_IDLE } | ||
2739 | }; | ||
diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c index 9ce8548c03e4..71515ddb4593 100644 --- a/sound/pci/atiixp.c +++ b/sound/pci/atiixp.c | |||
@@ -1393,6 +1393,12 @@ static struct ac97_quirk ac97_quirks[] __devinitdata = { | |||
1393 | .name = "HP nx6125", | 1393 | .name = "HP nx6125", |
1394 | .type = AC97_TUNE_MUTE_LED | 1394 | .type = AC97_TUNE_MUTE_LED |
1395 | }, | 1395 | }, |
1396 | { | ||
1397 | .subvendor = 0x103c, | ||
1398 | .subdevice = 0x3091, | ||
1399 | .name = "unknown HP", | ||
1400 | .type = AC97_TUNE_MUTE_LED | ||
1401 | }, | ||
1396 | { } /* terminator */ | 1402 | { } /* terminator */ |
1397 | }; | 1403 | }; |
1398 | 1404 | ||
diff --git a/sound/pci/emu10k1/emufx.c b/sound/pci/emu10k1/emufx.c index 191e1cd9997d..4b302d86f5f2 100644 --- a/sound/pci/emu10k1/emufx.c +++ b/sound/pci/emu10k1/emufx.c | |||
@@ -2493,24 +2493,17 @@ static int snd_emu10k1_fx8010_ioctl(struct snd_hwdep * hw, struct file *file, un | |||
2493 | case SNDRV_EMU10K1_IOCTL_CODE_POKE: | 2493 | case SNDRV_EMU10K1_IOCTL_CODE_POKE: |
2494 | if (!capable(CAP_SYS_ADMIN)) | 2494 | if (!capable(CAP_SYS_ADMIN)) |
2495 | return -EPERM; | 2495 | return -EPERM; |
2496 | icode = kmalloc(sizeof(*icode), GFP_KERNEL); | 2496 | |
2497 | if (icode == NULL) | 2497 | icode = memdup_user(argp, sizeof(*icode)); |
2498 | return -ENOMEM; | 2498 | if (IS_ERR(icode)) |
2499 | if (copy_from_user(icode, argp, sizeof(*icode))) { | 2499 | return PTR_ERR(icode); |
2500 | kfree(icode); | ||
2501 | return -EFAULT; | ||
2502 | } | ||
2503 | res = snd_emu10k1_icode_poke(emu, icode); | 2500 | res = snd_emu10k1_icode_poke(emu, icode); |
2504 | kfree(icode); | 2501 | kfree(icode); |
2505 | return res; | 2502 | return res; |
2506 | case SNDRV_EMU10K1_IOCTL_CODE_PEEK: | 2503 | case SNDRV_EMU10K1_IOCTL_CODE_PEEK: |
2507 | icode = kmalloc(sizeof(*icode), GFP_KERNEL); | 2504 | icode = memdup_user(argp, sizeof(*icode)); |
2508 | if (icode == NULL) | 2505 | if (IS_ERR(icode)) |
2509 | return -ENOMEM; | 2506 | return PTR_ERR(icode); |
2510 | if (copy_from_user(icode, argp, sizeof(*icode))) { | ||
2511 | kfree(icode); | ||
2512 | return -EFAULT; | ||
2513 | } | ||
2514 | res = snd_emu10k1_icode_peek(emu, icode); | 2507 | res = snd_emu10k1_icode_peek(emu, icode); |
2515 | if (res == 0 && copy_to_user(argp, icode, sizeof(*icode))) { | 2508 | if (res == 0 && copy_to_user(argp, icode, sizeof(*icode))) { |
2516 | kfree(icode); | 2509 | kfree(icode); |
@@ -2519,24 +2512,16 @@ static int snd_emu10k1_fx8010_ioctl(struct snd_hwdep * hw, struct file *file, un | |||
2519 | kfree(icode); | 2512 | kfree(icode); |
2520 | return res; | 2513 | return res; |
2521 | case SNDRV_EMU10K1_IOCTL_PCM_POKE: | 2514 | case SNDRV_EMU10K1_IOCTL_PCM_POKE: |
2522 | ipcm = kmalloc(sizeof(*ipcm), GFP_KERNEL); | 2515 | ipcm = memdup_user(argp, sizeof(*ipcm)); |
2523 | if (ipcm == NULL) | 2516 | if (IS_ERR(ipcm)) |
2524 | return -ENOMEM; | 2517 | return PTR_ERR(ipcm); |
2525 | if (copy_from_user(ipcm, argp, sizeof(*ipcm))) { | ||
2526 | kfree(ipcm); | ||
2527 | return -EFAULT; | ||
2528 | } | ||
2529 | res = snd_emu10k1_ipcm_poke(emu, ipcm); | 2518 | res = snd_emu10k1_ipcm_poke(emu, ipcm); |
2530 | kfree(ipcm); | 2519 | kfree(ipcm); |
2531 | return res; | 2520 | return res; |
2532 | case SNDRV_EMU10K1_IOCTL_PCM_PEEK: | 2521 | case SNDRV_EMU10K1_IOCTL_PCM_PEEK: |
2533 | ipcm = kzalloc(sizeof(*ipcm), GFP_KERNEL); | 2522 | ipcm = memdup_user(argp, sizeof(*ipcm)); |
2534 | if (ipcm == NULL) | 2523 | if (IS_ERR(ipcm)) |
2535 | return -ENOMEM; | 2524 | return PTR_ERR(ipcm); |
2536 | if (copy_from_user(ipcm, argp, sizeof(*ipcm))) { | ||
2537 | kfree(ipcm); | ||
2538 | return -EFAULT; | ||
2539 | } | ||
2540 | res = snd_emu10k1_ipcm_peek(emu, ipcm); | 2525 | res = snd_emu10k1_ipcm_peek(emu, ipcm); |
2541 | if (res == 0 && copy_to_user(argp, ipcm, sizeof(*ipcm))) { | 2526 | if (res == 0 && copy_to_user(argp, ipcm, sizeof(*ipcm))) { |
2542 | kfree(ipcm); | 2527 | kfree(ipcm); |
diff --git a/sound/pci/emu10k1/io.c b/sound/pci/emu10k1/io.c index 4bfc31d1b281..c1a5aa15af8f 100644 --- a/sound/pci/emu10k1/io.c +++ b/sound/pci/emu10k1/io.c | |||
@@ -490,7 +490,7 @@ void snd_emu10k1_wait(struct snd_emu10k1 *emu, unsigned int wait) | |||
490 | if (newtime != curtime) | 490 | if (newtime != curtime) |
491 | break; | 491 | break; |
492 | } | 492 | } |
493 | if (count >= 16384) | 493 | if (count > 16384) |
494 | break; | 494 | break; |
495 | curtime = newtime; | 495 | curtime = newtime; |
496 | } | 496 | } |
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index a4e5e5952115..8820faf6c9d8 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -642,19 +642,21 @@ static int get_codec_name(struct hda_codec *codec) | |||
642 | */ | 642 | */ |
643 | static void /*__devinit*/ setup_fg_nodes(struct hda_codec *codec) | 643 | static void /*__devinit*/ setup_fg_nodes(struct hda_codec *codec) |
644 | { | 644 | { |
645 | int i, total_nodes; | 645 | int i, total_nodes, function_id; |
646 | hda_nid_t nid; | 646 | hda_nid_t nid; |
647 | 647 | ||
648 | total_nodes = snd_hda_get_sub_nodes(codec, AC_NODE_ROOT, &nid); | 648 | total_nodes = snd_hda_get_sub_nodes(codec, AC_NODE_ROOT, &nid); |
649 | for (i = 0; i < total_nodes; i++, nid++) { | 649 | for (i = 0; i < total_nodes; i++, nid++) { |
650 | codec->function_id = snd_hda_param_read(codec, nid, | 650 | function_id = snd_hda_param_read(codec, nid, |
651 | AC_PAR_FUNCTION_TYPE) & 0xff; | 651 | AC_PAR_FUNCTION_TYPE) & 0xff; |
652 | switch (codec->function_id) { | 652 | switch (function_id) { |
653 | case AC_GRP_AUDIO_FUNCTION: | 653 | case AC_GRP_AUDIO_FUNCTION: |
654 | codec->afg = nid; | 654 | codec->afg = nid; |
655 | codec->function_id = function_id; | ||
655 | break; | 656 | break; |
656 | case AC_GRP_MODEM_FUNCTION: | 657 | case AC_GRP_MODEM_FUNCTION: |
657 | codec->mfg = nid; | 658 | codec->mfg = nid; |
659 | codec->function_id = function_id; | ||
658 | break; | 660 | break; |
659 | default: | 661 | default: |
660 | break; | 662 | break; |
@@ -2250,7 +2252,11 @@ int snd_hda_codec_write_cache(struct hda_codec *codec, hda_nid_t nid, | |||
2250 | err = bus->ops.command(bus, res); | 2252 | err = bus->ops.command(bus, res); |
2251 | if (!err) { | 2253 | if (!err) { |
2252 | struct hda_cache_head *c; | 2254 | struct hda_cache_head *c; |
2253 | u32 key = build_cmd_cache_key(nid, verb); | 2255 | u32 key; |
2256 | /* parm may contain the verb stuff for get/set amp */ | ||
2257 | verb = verb | (parm >> 8); | ||
2258 | parm &= 0xff; | ||
2259 | key = build_cmd_cache_key(nid, verb); | ||
2254 | c = get_alloc_hash(&codec->cmd_cache, key); | 2260 | c = get_alloc_hash(&codec->cmd_cache, key); |
2255 | if (c) | 2261 | if (c) |
2256 | c->val = parm; | 2262 | c->val = parm; |
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 6d3b927e0f84..21e99cfa8c49 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -312,7 +312,6 @@ struct azx_dev { | |||
312 | unsigned int period_bytes; /* size of the period in bytes */ | 312 | unsigned int period_bytes; /* size of the period in bytes */ |
313 | unsigned int frags; /* number for period in the play buffer */ | 313 | unsigned int frags; /* number for period in the play buffer */ |
314 | unsigned int fifo_size; /* FIFO size */ | 314 | unsigned int fifo_size; /* FIFO size */ |
315 | unsigned int start_flag: 1; /* stream full start flag */ | ||
316 | unsigned long start_jiffies; /* start + minimum jiffies */ | 315 | unsigned long start_jiffies; /* start + minimum jiffies */ |
317 | unsigned long min_jiffies; /* minimum jiffies before position is valid */ | 316 | unsigned long min_jiffies; /* minimum jiffies before position is valid */ |
318 | 317 | ||
@@ -333,6 +332,7 @@ struct azx_dev { | |||
333 | unsigned int opened :1; | 332 | unsigned int opened :1; |
334 | unsigned int running :1; | 333 | unsigned int running :1; |
335 | unsigned int irq_pending :1; | 334 | unsigned int irq_pending :1; |
335 | unsigned int start_flag: 1; /* stream full start flag */ | ||
336 | /* | 336 | /* |
337 | * For VIA: | 337 | * For VIA: |
338 | * A flag to ensure DMA position is 0 | 338 | * A flag to ensure DMA position is 0 |
@@ -2271,11 +2271,11 @@ static int __devinit azx_create(struct snd_card *card, struct pci_dev *pci, | |||
2271 | gcap &= ~0x01; | 2271 | gcap &= ~0x01; |
2272 | 2272 | ||
2273 | /* allow 64bit DMA address if supported by H/W */ | 2273 | /* allow 64bit DMA address if supported by H/W */ |
2274 | if ((gcap & 0x01) && !pci_set_dma_mask(pci, DMA_64BIT_MASK)) | 2274 | if ((gcap & 0x01) && !pci_set_dma_mask(pci, DMA_BIT_MASK(64))) |
2275 | pci_set_consistent_dma_mask(pci, DMA_64BIT_MASK); | 2275 | pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(64)); |
2276 | else { | 2276 | else { |
2277 | pci_set_dma_mask(pci, DMA_32BIT_MASK); | 2277 | pci_set_dma_mask(pci, DMA_BIT_MASK(32)); |
2278 | pci_set_consistent_dma_mask(pci, DMA_32BIT_MASK); | 2278 | pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(32)); |
2279 | } | 2279 | } |
2280 | 2280 | ||
2281 | /* read number of streams from GCAP register instead of using | 2281 | /* read number of streams from GCAP register instead of using |
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c index 38ad3f7b040f..9bcd8ab5a27f 100644 --- a/sound/pci/hda/patch_analog.c +++ b/sound/pci/hda/patch_analog.c | |||
@@ -3977,6 +3977,14 @@ static int patch_ad1884a(struct hda_codec *codec) | |||
3977 | spec->input_mux = &ad1884a_laptop_capture_source; | 3977 | spec->input_mux = &ad1884a_laptop_capture_source; |
3978 | codec->patch_ops.unsol_event = ad1884a_hp_unsol_event; | 3978 | codec->patch_ops.unsol_event = ad1884a_hp_unsol_event; |
3979 | codec->patch_ops.init = ad1884a_hp_init; | 3979 | codec->patch_ops.init = ad1884a_hp_init; |
3980 | /* set the upper-limit for mixer amp to 0dB for avoiding the | ||
3981 | * possible damage by overloading | ||
3982 | */ | ||
3983 | snd_hda_override_amp_caps(codec, 0x20, HDA_INPUT, | ||
3984 | (0x17 << AC_AMPCAP_OFFSET_SHIFT) | | ||
3985 | (0x17 << AC_AMPCAP_NUM_STEPS_SHIFT) | | ||
3986 | (0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) | | ||
3987 | (1 << AC_AMPCAP_MUTE_SHIFT)); | ||
3980 | break; | 3988 | break; |
3981 | case AD1884A_MOBILE: | 3989 | case AD1884A_MOBILE: |
3982 | spec->mixers[0] = ad1884a_mobile_mixers; | 3990 | spec->mixers[0] = ad1884a_mobile_mixers; |
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c index 1f2ad76ca94b..56ce19e68cb5 100644 --- a/sound/pci/hda/patch_conexant.c +++ b/sound/pci/hda/patch_conexant.c | |||
@@ -350,12 +350,20 @@ static int conexant_mux_enum_put(struct snd_kcontrol *kcontrol, | |||
350 | } | 350 | } |
351 | 351 | ||
352 | #ifdef CONFIG_SND_JACK | 352 | #ifdef CONFIG_SND_JACK |
353 | static void conexant_free_jack_priv(struct snd_jack *jack) | ||
354 | { | ||
355 | struct conexant_jack *jacks = jack->private_data; | ||
356 | jacks->nid = 0; | ||
357 | jacks->jack = NULL; | ||
358 | } | ||
359 | |||
353 | static int conexant_add_jack(struct hda_codec *codec, | 360 | static int conexant_add_jack(struct hda_codec *codec, |
354 | hda_nid_t nid, int type) | 361 | hda_nid_t nid, int type) |
355 | { | 362 | { |
356 | struct conexant_spec *spec; | 363 | struct conexant_spec *spec; |
357 | struct conexant_jack *jack; | 364 | struct conexant_jack *jack; |
358 | const char *name; | 365 | const char *name; |
366 | int err; | ||
359 | 367 | ||
360 | spec = codec->spec; | 368 | spec = codec->spec; |
361 | snd_array_init(&spec->jacks, sizeof(*jack), 32); | 369 | snd_array_init(&spec->jacks, sizeof(*jack), 32); |
@@ -368,7 +376,12 @@ static int conexant_add_jack(struct hda_codec *codec, | |||
368 | jack->nid = nid; | 376 | jack->nid = nid; |
369 | jack->type = type; | 377 | jack->type = type; |
370 | 378 | ||
371 | return snd_jack_new(codec->bus->card, name, type, &jack->jack); | 379 | err = snd_jack_new(codec->bus->card, name, type, &jack->jack); |
380 | if (err < 0) | ||
381 | return err; | ||
382 | jack->jack->private_data = jack; | ||
383 | jack->jack->private_free = conexant_free_jack_priv; | ||
384 | return 0; | ||
372 | } | 385 | } |
373 | 386 | ||
374 | static void conexant_report_jack(struct hda_codec *codec, hda_nid_t nid) | 387 | static void conexant_report_jack(struct hda_codec *codec, hda_nid_t nid) |
@@ -455,8 +468,10 @@ static void conexant_free(struct hda_codec *codec) | |||
455 | if (spec->jacks.list) { | 468 | if (spec->jacks.list) { |
456 | struct conexant_jack *jacks = spec->jacks.list; | 469 | struct conexant_jack *jacks = spec->jacks.list; |
457 | int i; | 470 | int i; |
458 | for (i = 0; i < spec->jacks.used; i++) | 471 | for (i = 0; i < spec->jacks.used; i++, jacks++) { |
459 | snd_device_free(codec->bus->card, &jacks[i].jack); | 472 | if (jacks->jack) |
473 | snd_device_free(codec->bus->card, jacks->jack); | ||
474 | } | ||
460 | snd_array_free(&spec->jacks); | 475 | snd_array_free(&spec->jacks); |
461 | } | 476 | } |
462 | #endif | 477 | #endif |
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index f35e58a2d921..b8a0d3e79272 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -188,6 +188,8 @@ enum { | |||
188 | ALC663_ASUS_MODE4, | 188 | ALC663_ASUS_MODE4, |
189 | ALC663_ASUS_MODE5, | 189 | ALC663_ASUS_MODE5, |
190 | ALC663_ASUS_MODE6, | 190 | ALC663_ASUS_MODE6, |
191 | ALC272_DELL, | ||
192 | ALC272_DELL_ZM1, | ||
191 | ALC662_AUTO, | 193 | ALC662_AUTO, |
192 | ALC662_MODEL_LAST, | 194 | ALC662_MODEL_LAST, |
193 | }; | 195 | }; |
@@ -8742,10 +8744,9 @@ static struct snd_pci_quirk alc883_cfg_tbl[] = { | |||
8742 | SND_PCI_QUIRK_VENDOR(0x1558, "Clevo laptop", ALC883_LAPTOP_EAPD), | 8744 | SND_PCI_QUIRK_VENDOR(0x1558, "Clevo laptop", ALC883_LAPTOP_EAPD), |
8743 | SND_PCI_QUIRK(0x15d9, 0x8780, "Supermicro PDSBA", ALC883_3ST_6ch), | 8745 | SND_PCI_QUIRK(0x15d9, 0x8780, "Supermicro PDSBA", ALC883_3ST_6ch), |
8744 | SND_PCI_QUIRK(0x161f, 0x2054, "Medion laptop", ALC883_MEDION), | 8746 | SND_PCI_QUIRK(0x161f, 0x2054, "Medion laptop", ALC883_MEDION), |
8745 | SND_PCI_QUIRK(0x1734, 0x1107, "FSC AMILO Xi2550", | 8747 | SND_PCI_QUIRK_MASK(0x1734, 0xfff0, 0x1100, "FSC AMILO Xi/Pi25xx", |
8746 | ALC883_FUJITSU_PI2515), | 8748 | ALC883_FUJITSU_PI2515), |
8747 | SND_PCI_QUIRK(0x1734, 0x1108, "Fujitsu AMILO Pi2515", ALC883_FUJITSU_PI2515), | 8749 | SND_PCI_QUIRK_MASK(0x1734, 0xfff0, 0x1130, "Fujitsu AMILO Xa35xx", |
8748 | SND_PCI_QUIRK(0x1734, 0x113d, "Fujitsu AMILO Xa3530", | ||
8749 | ALC888_FUJITSU_XA3530), | 8750 | ALC888_FUJITSU_XA3530), |
8750 | SND_PCI_QUIRK(0x17aa, 0x101e, "Lenovo 101e", ALC883_LENOVO_101E_2ch), | 8751 | SND_PCI_QUIRK(0x17aa, 0x101e, "Lenovo 101e", ALC883_LENOVO_101E_2ch), |
8751 | SND_PCI_QUIRK(0x17aa, 0x2085, "Lenovo NB0763", ALC883_LENOVO_NB0763), | 8752 | SND_PCI_QUIRK(0x17aa, 0x2085, "Lenovo NB0763", ALC883_LENOVO_NB0763), |
@@ -12977,10 +12978,17 @@ static struct snd_pci_quirk alc269_cfg_tbl[] = { | |||
12977 | SND_PCI_QUIRK(0x17aa, 0x3bf8, "Quanta FL1", ALC269_QUANTA_FL1), | 12978 | SND_PCI_QUIRK(0x17aa, 0x3bf8, "Quanta FL1", ALC269_QUANTA_FL1), |
12978 | SND_PCI_QUIRK(0x1043, 0x8330, "ASUS Eeepc P703 P900A", | 12979 | SND_PCI_QUIRK(0x1043, 0x8330, "ASUS Eeepc P703 P900A", |
12979 | ALC269_ASUS_EEEPC_P703), | 12980 | ALC269_ASUS_EEEPC_P703), |
12981 | SND_PCI_QUIRK(0x1043, 0x1883, "ASUS F81Se", ALC269_ASUS_EEEPC_P703), | ||
12982 | SND_PCI_QUIRK(0x1043, 0x16a3, "ASUS F5Q", ALC269_ASUS_EEEPC_P703), | ||
12983 | SND_PCI_QUIRK(0x1043, 0x1723, "ASUS P80", ALC269_ASUS_EEEPC_P703), | ||
12984 | SND_PCI_QUIRK(0x1043, 0x1773, "ASUS U20A", ALC269_ASUS_EEEPC_P703), | ||
12985 | SND_PCI_QUIRK(0x1043, 0x1743, "ASUS U80", ALC269_ASUS_EEEPC_P703), | ||
12986 | SND_PCI_QUIRK(0x1043, 0x1653, "ASUS U50", ALC269_ASUS_EEEPC_P703), | ||
12980 | SND_PCI_QUIRK(0x1043, 0x831a, "ASUS Eeepc P901", | 12987 | SND_PCI_QUIRK(0x1043, 0x831a, "ASUS Eeepc P901", |
12981 | ALC269_ASUS_EEEPC_P901), | 12988 | ALC269_ASUS_EEEPC_P901), |
12982 | SND_PCI_QUIRK(0x1043, 0x834a, "ASUS Eeepc S101", | 12989 | SND_PCI_QUIRK(0x1043, 0x834a, "ASUS Eeepc S101", |
12983 | ALC269_ASUS_EEEPC_P901), | 12990 | ALC269_ASUS_EEEPC_P901), |
12991 | SND_PCI_QUIRK(0x1043, 0x16e3, "ASUS UX50", ALC269_ASUS_EEEPC_P901), | ||
12984 | SND_PCI_QUIRK(0x1734, 0x115d, "FSC Amilo", ALC269_FUJITSU), | 12992 | SND_PCI_QUIRK(0x1734, 0x115d, "FSC Amilo", ALC269_FUJITSU), |
12985 | SND_PCI_QUIRK(0x10cf, 0x1475, "Lifebook ICH9M-based", ALC269_LIFEBOOK), | 12993 | SND_PCI_QUIRK(0x10cf, 0x1475, "Lifebook ICH9M-based", ALC269_LIFEBOOK), |
12986 | {} | 12994 | {} |
@@ -15211,12 +15219,23 @@ static hda_nid_t alc662_dac_nids[4] = { | |||
15211 | 0x02, 0x03, 0x04 | 15219 | 0x02, 0x03, 0x04 |
15212 | }; | 15220 | }; |
15213 | 15221 | ||
15222 | static hda_nid_t alc272_dac_nids[2] = { | ||
15223 | 0x02, 0x03 | ||
15224 | }; | ||
15225 | |||
15214 | static hda_nid_t alc662_adc_nids[1] = { | 15226 | static hda_nid_t alc662_adc_nids[1] = { |
15215 | /* ADC1-2 */ | 15227 | /* ADC1-2 */ |
15216 | 0x09, | 15228 | 0x09, |
15217 | }; | 15229 | }; |
15218 | 15230 | ||
15231 | static hda_nid_t alc272_adc_nids[1] = { | ||
15232 | /* ADC1-2 */ | ||
15233 | 0x08, | ||
15234 | }; | ||
15235 | |||
15219 | static hda_nid_t alc662_capsrc_nids[1] = { 0x22 }; | 15236 | static hda_nid_t alc662_capsrc_nids[1] = { 0x22 }; |
15237 | static hda_nid_t alc272_capsrc_nids[1] = { 0x23 }; | ||
15238 | |||
15220 | 15239 | ||
15221 | /* input MUX */ | 15240 | /* input MUX */ |
15222 | /* FIXME: should be a matrix-type input source selection */ | 15241 | /* FIXME: should be a matrix-type input source selection */ |
@@ -15642,14 +15661,7 @@ static struct hda_verb alc662_init_verbs[] = { | |||
15642 | /* Mixer elements: 0x18, 19, 1a, 1b, 1c, 1d, 14, 15, 16, 17, 0b */ | 15661 | /* Mixer elements: 0x18, 19, 1a, 1b, 1c, 1d, 14, 15, 16, 17, 0b */ |
15643 | /* Input mixer */ | 15662 | /* Input mixer */ |
15644 | {0x22, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)}, | 15663 | {0x22, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)}, |
15645 | {0x22, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(1)}, | ||
15646 | {0x22, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(2)}, | ||
15647 | {0x22, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(4)}, | ||
15648 | |||
15649 | {0x23, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)}, | 15664 | {0x23, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)}, |
15650 | {0x23, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(1)}, | ||
15651 | {0x23, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(2)}, | ||
15652 | {0x23, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(4)}, | ||
15653 | 15665 | ||
15654 | /* always trun on EAPD */ | 15666 | /* always trun on EAPD */ |
15655 | {0x14, AC_VERB_SET_EAPD_BTLENABLE, 2}, | 15667 | {0x14, AC_VERB_SET_EAPD_BTLENABLE, 2}, |
@@ -15844,12 +15856,48 @@ static struct hda_verb alc662_ecs_init_verbs[] = { | |||
15844 | {} | 15856 | {} |
15845 | }; | 15857 | }; |
15846 | 15858 | ||
15859 | static struct hda_verb alc272_dell_zm1_init_verbs[] = { | ||
15860 | {0x12, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, | ||
15861 | {0x13, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, | ||
15862 | {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, | ||
15863 | {0x16, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, | ||
15864 | {0x21, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP}, | ||
15865 | {0x21, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, | ||
15866 | {0x21, AC_VERB_SET_CONNECT_SEL, 0x01}, /* Headphone */ | ||
15867 | {0x22, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)}, | ||
15868 | {0x22, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(9)}, | ||
15869 | {0x18, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | ALC880_MIC_EVENT}, | ||
15870 | {0x21, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | ALC880_HP_EVENT}, | ||
15871 | {} | ||
15872 | }; | ||
15873 | |||
15874 | static struct hda_verb alc272_dell_init_verbs[] = { | ||
15875 | {0x12, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, | ||
15876 | {0x13, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, | ||
15877 | {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, | ||
15878 | {0x16, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, | ||
15879 | {0x21, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP}, | ||
15880 | {0x21, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, | ||
15881 | {0x21, AC_VERB_SET_CONNECT_SEL, 0x01}, /* Headphone */ | ||
15882 | {0x23, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)}, | ||
15883 | {0x23, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(9)}, | ||
15884 | {0x18, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | ALC880_MIC_EVENT}, | ||
15885 | {0x21, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | ALC880_HP_EVENT}, | ||
15886 | {} | ||
15887 | }; | ||
15888 | |||
15847 | static struct snd_kcontrol_new alc662_auto_capture_mixer[] = { | 15889 | static struct snd_kcontrol_new alc662_auto_capture_mixer[] = { |
15848 | HDA_CODEC_VOLUME("Capture Volume", 0x09, 0x0, HDA_INPUT), | 15890 | HDA_CODEC_VOLUME("Capture Volume", 0x09, 0x0, HDA_INPUT), |
15849 | HDA_CODEC_MUTE("Capture Switch", 0x09, 0x0, HDA_INPUT), | 15891 | HDA_CODEC_MUTE("Capture Switch", 0x09, 0x0, HDA_INPUT), |
15850 | { } /* end */ | 15892 | { } /* end */ |
15851 | }; | 15893 | }; |
15852 | 15894 | ||
15895 | static struct snd_kcontrol_new alc272_auto_capture_mixer[] = { | ||
15896 | HDA_CODEC_VOLUME("Capture Volume", 0x08, 0x0, HDA_INPUT), | ||
15897 | HDA_CODEC_MUTE("Capture Switch", 0x08, 0x0, HDA_INPUT), | ||
15898 | { } /* end */ | ||
15899 | }; | ||
15900 | |||
15853 | static void alc662_lenovo_101e_ispeaker_automute(struct hda_codec *codec) | 15901 | static void alc662_lenovo_101e_ispeaker_automute(struct hda_codec *codec) |
15854 | { | 15902 | { |
15855 | unsigned int present; | 15903 | unsigned int present; |
@@ -16361,6 +16409,8 @@ static const char *alc662_models[ALC662_MODEL_LAST] = { | |||
16361 | 16409 | ||
16362 | static struct snd_pci_quirk alc662_cfg_tbl[] = { | 16410 | static struct snd_pci_quirk alc662_cfg_tbl[] = { |
16363 | SND_PCI_QUIRK(0x1019, 0x9087, "ECS", ALC662_ECS), | 16411 | SND_PCI_QUIRK(0x1019, 0x9087, "ECS", ALC662_ECS), |
16412 | SND_PCI_QUIRK(0x1028, 0x02d6, "DELL", ALC272_DELL), | ||
16413 | SND_PCI_QUIRK(0x1028, 0x02f4, "DELL ZM1", ALC272_DELL_ZM1), | ||
16364 | SND_PCI_QUIRK(0x1043, 0x1000, "ASUS N50Vm", ALC663_ASUS_MODE1), | 16414 | SND_PCI_QUIRK(0x1043, 0x1000, "ASUS N50Vm", ALC663_ASUS_MODE1), |
16365 | SND_PCI_QUIRK(0x1043, 0x1092, "ASUS NB", ALC663_ASUS_MODE3), | 16415 | SND_PCI_QUIRK(0x1043, 0x1092, "ASUS NB", ALC663_ASUS_MODE3), |
16366 | SND_PCI_QUIRK(0x1043, 0x11c3, "ASUS M70V", ALC663_ASUS_MODE3), | 16416 | SND_PCI_QUIRK(0x1043, 0x11c3, "ASUS M70V", ALC663_ASUS_MODE3), |
@@ -16373,26 +16423,36 @@ static struct snd_pci_quirk alc662_cfg_tbl[] = { | |||
16373 | SND_PCI_QUIRK(0x1043, 0x1763, "ASUS NB", ALC663_ASUS_MODE6), | 16423 | SND_PCI_QUIRK(0x1043, 0x1763, "ASUS NB", ALC663_ASUS_MODE6), |
16374 | SND_PCI_QUIRK(0x1043, 0x1765, "ASUS NB", ALC663_ASUS_MODE6), | 16424 | SND_PCI_QUIRK(0x1043, 0x1765, "ASUS NB", ALC663_ASUS_MODE6), |
16375 | SND_PCI_QUIRK(0x1043, 0x1783, "ASUS NB", ALC662_ASUS_MODE2), | 16425 | SND_PCI_QUIRK(0x1043, 0x1783, "ASUS NB", ALC662_ASUS_MODE2), |
16426 | SND_PCI_QUIRK(0x1043, 0x17b3, "ASUS F70SL", ALC663_ASUS_MODE3), | ||
16427 | SND_PCI_QUIRK(0x1043, 0x17c3, "ASUS UX20", ALC663_ASUS_M51VA), | ||
16428 | SND_PCI_QUIRK(0x1043, 0x17f3, "ASUS X58LE", ALC662_ASUS_MODE2), | ||
16376 | SND_PCI_QUIRK(0x1043, 0x1813, "ASUS NB", ALC662_ASUS_MODE2), | 16429 | SND_PCI_QUIRK(0x1043, 0x1813, "ASUS NB", ALC662_ASUS_MODE2), |
16377 | SND_PCI_QUIRK(0x1043, 0x1823, "ASUS NB", ALC663_ASUS_MODE5), | 16430 | SND_PCI_QUIRK(0x1043, 0x1823, "ASUS NB", ALC663_ASUS_MODE5), |
16378 | SND_PCI_QUIRK(0x1043, 0x1833, "ASUS NB", ALC663_ASUS_MODE6), | 16431 | SND_PCI_QUIRK(0x1043, 0x1833, "ASUS NB", ALC663_ASUS_MODE6), |
16379 | SND_PCI_QUIRK(0x1043, 0x1843, "ASUS NB", ALC662_ASUS_MODE2), | 16432 | SND_PCI_QUIRK(0x1043, 0x1843, "ASUS NB", ALC662_ASUS_MODE2), |
16433 | SND_PCI_QUIRK(0x1043, 0x1853, "ASUS F50Z", ALC663_ASUS_MODE1), | ||
16380 | SND_PCI_QUIRK(0x1043, 0x1864, "ASUS NB", ALC662_ASUS_MODE2), | 16434 | SND_PCI_QUIRK(0x1043, 0x1864, "ASUS NB", ALC662_ASUS_MODE2), |
16381 | SND_PCI_QUIRK(0x1043, 0x1876, "ASUS NB", ALC662_ASUS_MODE2), | 16435 | SND_PCI_QUIRK(0x1043, 0x1876, "ASUS NB", ALC662_ASUS_MODE2), |
16382 | SND_PCI_QUIRK(0x1043, 0x1878, "ASUS M51VA", ALC663_ASUS_M51VA), | 16436 | SND_PCI_QUIRK(0x1043, 0x1878, "ASUS M51VA", ALC663_ASUS_M51VA), |
16383 | /*SND_PCI_QUIRK(0x1043, 0x1878, "ASUS M50Vr", ALC663_ASUS_MODE1),*/ | 16437 | /*SND_PCI_QUIRK(0x1043, 0x1878, "ASUS M50Vr", ALC663_ASUS_MODE1),*/ |
16384 | SND_PCI_QUIRK(0x1043, 0x1893, "ASUS M50Vm", ALC663_ASUS_MODE3), | 16438 | SND_PCI_QUIRK(0x1043, 0x1893, "ASUS M50Vm", ALC663_ASUS_MODE3), |
16385 | SND_PCI_QUIRK(0x1043, 0x1894, "ASUS X55", ALC663_ASUS_MODE3), | 16439 | SND_PCI_QUIRK(0x1043, 0x1894, "ASUS X55", ALC663_ASUS_MODE3), |
16440 | SND_PCI_QUIRK(0x1043, 0x18b3, "ASUS N80Vc", ALC663_ASUS_MODE1), | ||
16441 | SND_PCI_QUIRK(0x1043, 0x18d3, "ASUS N81Te", ALC663_ASUS_MODE1), | ||
16442 | SND_PCI_QUIRK(0x1043, 0x18f3, "ASUS N505Tp", ALC663_ASUS_MODE1), | ||
16386 | SND_PCI_QUIRK(0x1043, 0x1903, "ASUS F5GL", ALC663_ASUS_MODE1), | 16443 | SND_PCI_QUIRK(0x1043, 0x1903, "ASUS F5GL", ALC663_ASUS_MODE1), |
16387 | SND_PCI_QUIRK(0x1043, 0x1913, "ASUS NB", ALC662_ASUS_MODE2), | 16444 | SND_PCI_QUIRK(0x1043, 0x1913, "ASUS NB", ALC662_ASUS_MODE2), |
16388 | SND_PCI_QUIRK(0x1043, 0x1933, "ASUS F80Q", ALC662_ASUS_MODE2), | 16445 | SND_PCI_QUIRK(0x1043, 0x1933, "ASUS F80Q", ALC662_ASUS_MODE2), |
16446 | SND_PCI_QUIRK(0x1043, 0x1943, "ASUS Vx3V", ALC663_ASUS_MODE1), | ||
16389 | SND_PCI_QUIRK(0x1043, 0x1953, "ASUS NB", ALC663_ASUS_MODE1), | 16447 | SND_PCI_QUIRK(0x1043, 0x1953, "ASUS NB", ALC663_ASUS_MODE1), |
16390 | SND_PCI_QUIRK(0x1043, 0x1963, "ASUS X71C", ALC663_ASUS_MODE3), | 16448 | SND_PCI_QUIRK(0x1043, 0x1963, "ASUS X71C", ALC663_ASUS_MODE3), |
16449 | SND_PCI_QUIRK(0x1043, 0x1983, "ASUS N5051A", ALC663_ASUS_MODE1), | ||
16391 | SND_PCI_QUIRK(0x1043, 0x1993, "ASUS N20", ALC663_ASUS_MODE1), | 16450 | SND_PCI_QUIRK(0x1043, 0x1993, "ASUS N20", ALC663_ASUS_MODE1), |
16392 | SND_PCI_QUIRK(0x1043, 0x19a3, "ASUS G50V", ALC663_ASUS_G50V), | 16451 | SND_PCI_QUIRK(0x1043, 0x19a3, "ASUS G50V", ALC663_ASUS_G50V), |
16393 | /*SND_PCI_QUIRK(0x1043, 0x19a3, "ASUS NB", ALC663_ASUS_MODE1),*/ | 16452 | /*SND_PCI_QUIRK(0x1043, 0x19a3, "ASUS NB", ALC663_ASUS_MODE1),*/ |
16394 | SND_PCI_QUIRK(0x1043, 0x19b3, "ASUS F7Z", ALC663_ASUS_MODE1), | 16453 | SND_PCI_QUIRK(0x1043, 0x19b3, "ASUS F7Z", ALC663_ASUS_MODE1), |
16395 | SND_PCI_QUIRK(0x1043, 0x19c3, "ASUS F5Z/F6x", ALC662_ASUS_MODE2), | 16454 | SND_PCI_QUIRK(0x1043, 0x19c3, "ASUS F5Z/F6x", ALC662_ASUS_MODE2), |
16455 | SND_PCI_QUIRK(0x1043, 0x19d3, "ASUS NB", ALC663_ASUS_M51VA), | ||
16396 | SND_PCI_QUIRK(0x1043, 0x19e3, "ASUS NB", ALC663_ASUS_MODE1), | 16456 | SND_PCI_QUIRK(0x1043, 0x19e3, "ASUS NB", ALC663_ASUS_MODE1), |
16397 | SND_PCI_QUIRK(0x1043, 0x19f3, "ASUS NB", ALC663_ASUS_MODE4), | 16457 | SND_PCI_QUIRK(0x1043, 0x19f3, "ASUS NB", ALC663_ASUS_MODE4), |
16398 | SND_PCI_QUIRK(0x1043, 0x8290, "ASUS P5GC-MX", ALC662_3ST_6ch_DIG), | 16458 | SND_PCI_QUIRK(0x1043, 0x8290, "ASUS P5GC-MX", ALC662_3ST_6ch_DIG), |
@@ -16404,6 +16464,7 @@ static struct snd_pci_quirk alc662_cfg_tbl[] = { | |||
16404 | SND_PCI_QUIRK(0x1458, 0xa002, "Gigabyte 945GCM-S2L", | 16464 | SND_PCI_QUIRK(0x1458, 0xa002, "Gigabyte 945GCM-S2L", |
16405 | ALC662_3ST_6ch_DIG), | 16465 | ALC662_3ST_6ch_DIG), |
16406 | SND_PCI_QUIRK(0x1565, 0x820f, "Biostar TA780G M2+", ALC662_3ST_6ch_DIG), | 16466 | SND_PCI_QUIRK(0x1565, 0x820f, "Biostar TA780G M2+", ALC662_3ST_6ch_DIG), |
16467 | SND_PCI_QUIRK(0x1631, 0xc10c, "PB RS65", ALC663_ASUS_M51VA), | ||
16407 | SND_PCI_QUIRK(0x17aa, 0x101e, "Lenovo", ALC662_LENOVO_101E), | 16468 | SND_PCI_QUIRK(0x17aa, 0x101e, "Lenovo", ALC662_LENOVO_101E), |
16408 | SND_PCI_QUIRK(0x1849, 0x3662, "ASROCK K10N78FullHD-hSLI R3.0", | 16469 | SND_PCI_QUIRK(0x1849, 0x3662, "ASROCK K10N78FullHD-hSLI R3.0", |
16409 | ALC662_3ST_6ch_DIG), | 16470 | ALC662_3ST_6ch_DIG), |
@@ -16641,6 +16702,36 @@ static struct alc_config_preset alc662_presets[] = { | |||
16641 | .unsol_event = alc663_mode6_unsol_event, | 16702 | .unsol_event = alc663_mode6_unsol_event, |
16642 | .init_hook = alc663_mode6_inithook, | 16703 | .init_hook = alc663_mode6_inithook, |
16643 | }, | 16704 | }, |
16705 | [ALC272_DELL] = { | ||
16706 | .mixers = { alc663_m51va_mixer }, | ||
16707 | .cap_mixer = alc272_auto_capture_mixer, | ||
16708 | .init_verbs = { alc662_init_verbs, alc272_dell_init_verbs }, | ||
16709 | .num_dacs = ARRAY_SIZE(alc272_dac_nids), | ||
16710 | .dac_nids = alc662_dac_nids, | ||
16711 | .num_channel_mode = ARRAY_SIZE(alc662_3ST_2ch_modes), | ||
16712 | .adc_nids = alc272_adc_nids, | ||
16713 | .num_adc_nids = ARRAY_SIZE(alc272_adc_nids), | ||
16714 | .capsrc_nids = alc272_capsrc_nids, | ||
16715 | .channel_mode = alc662_3ST_2ch_modes, | ||
16716 | .input_mux = &alc663_m51va_capture_source, | ||
16717 | .unsol_event = alc663_m51va_unsol_event, | ||
16718 | .init_hook = alc663_m51va_inithook, | ||
16719 | }, | ||
16720 | [ALC272_DELL_ZM1] = { | ||
16721 | .mixers = { alc663_m51va_mixer }, | ||
16722 | .cap_mixer = alc662_auto_capture_mixer, | ||
16723 | .init_verbs = { alc662_init_verbs, alc272_dell_zm1_init_verbs }, | ||
16724 | .num_dacs = ARRAY_SIZE(alc272_dac_nids), | ||
16725 | .dac_nids = alc662_dac_nids, | ||
16726 | .num_channel_mode = ARRAY_SIZE(alc662_3ST_2ch_modes), | ||
16727 | .adc_nids = alc662_adc_nids, | ||
16728 | .num_adc_nids = ARRAY_SIZE(alc662_adc_nids), | ||
16729 | .capsrc_nids = alc662_capsrc_nids, | ||
16730 | .channel_mode = alc662_3ST_2ch_modes, | ||
16731 | .input_mux = &alc663_m51va_capture_source, | ||
16732 | .unsol_event = alc663_m51va_unsol_event, | ||
16733 | .init_hook = alc663_m51va_inithook, | ||
16734 | }, | ||
16644 | }; | 16735 | }; |
16645 | 16736 | ||
16646 | 16737 | ||
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 61996a2f45df..917bc5d3ac2c 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -3076,6 +3076,11 @@ static int create_multi_out_ctls(struct hda_codec *codec, int num_outs, | |||
3076 | unsigned int wid_caps; | 3076 | unsigned int wid_caps; |
3077 | 3077 | ||
3078 | for (i = 0; i < num_outs && i < ARRAY_SIZE(chname); i++) { | 3078 | for (i = 0; i < num_outs && i < ARRAY_SIZE(chname); i++) { |
3079 | if (type == AUTO_PIN_HP_OUT && !spec->hp_detect) { | ||
3080 | wid_caps = get_wcaps(codec, pins[i]); | ||
3081 | if (wid_caps & AC_WCAP_UNSOL_CAP) | ||
3082 | spec->hp_detect = 1; | ||
3083 | } | ||
3079 | nid = dac_nids[i]; | 3084 | nid = dac_nids[i]; |
3080 | if (!nid) | 3085 | if (!nid) |
3081 | continue; | 3086 | continue; |
@@ -3119,11 +3124,6 @@ static int create_multi_out_ctls(struct hda_codec *codec, int num_outs, | |||
3119 | err = create_controls_idx(codec, name, idx, nid, 3); | 3124 | err = create_controls_idx(codec, name, idx, nid, 3); |
3120 | if (err < 0) | 3125 | if (err < 0) |
3121 | return err; | 3126 | return err; |
3122 | if (type == AUTO_PIN_HP_OUT && !spec->hp_detect) { | ||
3123 | wid_caps = get_wcaps(codec, pins[i]); | ||
3124 | if (wid_caps & AC_WCAP_UNSOL_CAP) | ||
3125 | spec->hp_detect = 1; | ||
3126 | } | ||
3127 | } | 3127 | } |
3128 | } | 3128 | } |
3129 | return 0; | 3129 | return 0; |
@@ -3851,6 +3851,15 @@ static void stac_gpio_set(struct hda_codec *codec, unsigned int mask, | |||
3851 | AC_VERB_SET_GPIO_DATA, gpiostate); /* sync */ | 3851 | AC_VERB_SET_GPIO_DATA, gpiostate); /* sync */ |
3852 | } | 3852 | } |
3853 | 3853 | ||
3854 | #ifdef CONFIG_SND_JACK | ||
3855 | static void stac92xx_free_jack_priv(struct snd_jack *jack) | ||
3856 | { | ||
3857 | struct sigmatel_jack *jacks = jack->private_data; | ||
3858 | jacks->nid = 0; | ||
3859 | jacks->jack = NULL; | ||
3860 | } | ||
3861 | #endif | ||
3862 | |||
3854 | static int stac92xx_add_jack(struct hda_codec *codec, | 3863 | static int stac92xx_add_jack(struct hda_codec *codec, |
3855 | hda_nid_t nid, int type) | 3864 | hda_nid_t nid, int type) |
3856 | { | 3865 | { |
@@ -3860,6 +3869,7 @@ static int stac92xx_add_jack(struct hda_codec *codec, | |||
3860 | int def_conf = snd_hda_codec_get_pincfg(codec, nid); | 3869 | int def_conf = snd_hda_codec_get_pincfg(codec, nid); |
3861 | int connectivity = get_defcfg_connect(def_conf); | 3870 | int connectivity = get_defcfg_connect(def_conf); |
3862 | char name[32]; | 3871 | char name[32]; |
3872 | int err; | ||
3863 | 3873 | ||
3864 | if (connectivity && connectivity != AC_JACK_PORT_FIXED) | 3874 | if (connectivity && connectivity != AC_JACK_PORT_FIXED) |
3865 | return 0; | 3875 | return 0; |
@@ -3876,10 +3886,15 @@ static int stac92xx_add_jack(struct hda_codec *codec, | |||
3876 | snd_hda_get_jack_connectivity(def_conf), | 3886 | snd_hda_get_jack_connectivity(def_conf), |
3877 | snd_hda_get_jack_location(def_conf)); | 3887 | snd_hda_get_jack_location(def_conf)); |
3878 | 3888 | ||
3879 | return snd_jack_new(codec->bus->card, name, type, &jack->jack); | 3889 | err = snd_jack_new(codec->bus->card, name, type, &jack->jack); |
3880 | #else | 3890 | if (err < 0) { |
3881 | return 0; | 3891 | jack->nid = 0; |
3892 | return err; | ||
3893 | } | ||
3894 | jack->jack->private_data = jack; | ||
3895 | jack->jack->private_free = stac92xx_free_jack_priv; | ||
3882 | #endif | 3896 | #endif |
3897 | return 0; | ||
3883 | } | 3898 | } |
3884 | 3899 | ||
3885 | static int stac_add_event(struct sigmatel_spec *spec, hda_nid_t nid, | 3900 | static int stac_add_event(struct sigmatel_spec *spec, hda_nid_t nid, |
@@ -4138,8 +4153,10 @@ static void stac92xx_free_jacks(struct hda_codec *codec) | |||
4138 | if (!codec->bus->shutdown && spec->jacks.list) { | 4153 | if (!codec->bus->shutdown && spec->jacks.list) { |
4139 | struct sigmatel_jack *jacks = spec->jacks.list; | 4154 | struct sigmatel_jack *jacks = spec->jacks.list; |
4140 | int i; | 4155 | int i; |
4141 | for (i = 0; i < spec->jacks.used; i++) | 4156 | for (i = 0; i < spec->jacks.used; i++, jacks++) { |
4142 | snd_device_free(codec->bus->card, &jacks[i].jack); | 4157 | if (jacks->jack) |
4158 | snd_device_free(codec->bus->card, jacks->jack); | ||
4159 | } | ||
4143 | } | 4160 | } |
4144 | snd_array_free(&spec->jacks); | 4161 | snd_array_free(&spec->jacks); |
4145 | #endif | 4162 | #endif |
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c index c4ba486785c6..173bebf9f51d 100644 --- a/sound/pci/intel8x0.c +++ b/sound/pci/intel8x0.c | |||
@@ -1854,6 +1854,12 @@ static struct ac97_quirk ac97_quirks[] __devinitdata = { | |||
1854 | }, | 1854 | }, |
1855 | { | 1855 | { |
1856 | .subvendor = 0x1028, | 1856 | .subvendor = 0x1028, |
1857 | .subdevice = 0x016a, | ||
1858 | .name = "Dell Inspiron 8600", /* STAC9750/51 */ | ||
1859 | .type = AC97_TUNE_HP_ONLY | ||
1860 | }, | ||
1861 | { | ||
1862 | .subvendor = 0x1028, | ||
1857 | .subdevice = 0x0186, | 1863 | .subdevice = 0x0186, |
1858 | .name = "Dell Latitude D810", /* cf. Malone #41015 */ | 1864 | .name = "Dell Latitude D810", /* cf. Malone #41015 */ |
1859 | .type = AC97_TUNE_HP_MUTE_LED | 1865 | .type = AC97_TUNE_HP_MUTE_LED |
@@ -1896,12 +1902,6 @@ static struct ac97_quirk ac97_quirks[] __devinitdata = { | |||
1896 | }, | 1902 | }, |
1897 | { | 1903 | { |
1898 | .subvendor = 0x103c, | 1904 | .subvendor = 0x103c, |
1899 | .subdevice = 0x0934, | ||
1900 | .name = "HP nx8220", | ||
1901 | .type = AC97_TUNE_MUTE_LED | ||
1902 | }, | ||
1903 | { | ||
1904 | .subvendor = 0x103c, | ||
1905 | .subdevice = 0x129d, | 1905 | .subdevice = 0x129d, |
1906 | .name = "HP xw8000", | 1906 | .name = "HP xw8000", |
1907 | .type = AC97_TUNE_HP_ONLY | 1907 | .type = AC97_TUNE_HP_ONLY |
diff --git a/sound/ppc/keywest.c b/sound/ppc/keywest.c index 6ff99ed77516..a5afb2682e7f 100644 --- a/sound/ppc/keywest.c +++ b/sound/ppc/keywest.c | |||
@@ -33,26 +33,25 @@ | |||
33 | static struct pmac_keywest *keywest_ctx; | 33 | static struct pmac_keywest *keywest_ctx; |
34 | 34 | ||
35 | 35 | ||
36 | static int keywest_attach_adapter(struct i2c_adapter *adapter); | ||
37 | static int keywest_detach_client(struct i2c_client *client); | ||
38 | |||
39 | struct i2c_driver keywest_driver = { | ||
40 | .driver = { | ||
41 | .name = "PMac Keywest Audio", | ||
42 | }, | ||
43 | .attach_adapter = &keywest_attach_adapter, | ||
44 | .detach_client = &keywest_detach_client, | ||
45 | }; | ||
46 | |||
47 | |||
48 | #ifndef i2c_device_name | 36 | #ifndef i2c_device_name |
49 | #define i2c_device_name(x) ((x)->name) | 37 | #define i2c_device_name(x) ((x)->name) |
50 | #endif | 38 | #endif |
51 | 39 | ||
40 | static int keywest_probe(struct i2c_client *client, | ||
41 | const struct i2c_device_id *id) | ||
42 | { | ||
43 | i2c_set_clientdata(client, keywest_ctx); | ||
44 | return 0; | ||
45 | } | ||
46 | |||
47 | /* | ||
48 | * This is kind of a hack, best would be to turn powermac to fixed i2c | ||
49 | * bus numbers and declare the sound device as part of platform | ||
50 | * initialization | ||
51 | */ | ||
52 | static int keywest_attach_adapter(struct i2c_adapter *adapter) | 52 | static int keywest_attach_adapter(struct i2c_adapter *adapter) |
53 | { | 53 | { |
54 | int err; | 54 | struct i2c_board_info info; |
55 | struct i2c_client *new_client; | ||
56 | 55 | ||
57 | if (! keywest_ctx) | 56 | if (! keywest_ctx) |
58 | return -EINVAL; | 57 | return -EINVAL; |
@@ -60,46 +59,47 @@ static int keywest_attach_adapter(struct i2c_adapter *adapter) | |||
60 | if (strncmp(i2c_device_name(adapter), "mac-io", 6)) | 59 | if (strncmp(i2c_device_name(adapter), "mac-io", 6)) |
61 | return 0; /* ignored */ | 60 | return 0; /* ignored */ |
62 | 61 | ||
63 | new_client = kzalloc(sizeof(struct i2c_client), GFP_KERNEL); | 62 | memset(&info, 0, sizeof(struct i2c_board_info)); |
64 | if (! new_client) | 63 | strlcpy(info.type, "keywest", I2C_NAME_SIZE); |
65 | return -ENOMEM; | 64 | info.addr = keywest_ctx->addr; |
66 | 65 | keywest_ctx->client = i2c_new_device(adapter, &info); | |
67 | new_client->addr = keywest_ctx->addr; | ||
68 | i2c_set_clientdata(new_client, keywest_ctx); | ||
69 | new_client->adapter = adapter; | ||
70 | new_client->driver = &keywest_driver; | ||
71 | new_client->flags = 0; | ||
72 | |||
73 | strcpy(i2c_device_name(new_client), keywest_ctx->name); | ||
74 | keywest_ctx->client = new_client; | ||
75 | 66 | ||
76 | /* Tell the i2c layer a new client has arrived */ | 67 | /* |
77 | if (i2c_attach_client(new_client)) { | 68 | * Let i2c-core delete that device on driver removal. |
78 | snd_printk(KERN_ERR "tumbler: cannot attach i2c client\n"); | 69 | * This is safe because i2c-core holds the core_lock mutex for us. |
79 | err = -ENODEV; | 70 | */ |
80 | goto __err; | 71 | list_add_tail(&keywest_ctx->client->detected, |
81 | } | 72 | &keywest_ctx->client->driver->clients); |
82 | |||
83 | return 0; | 73 | return 0; |
84 | |||
85 | __err: | ||
86 | kfree(new_client); | ||
87 | keywest_ctx->client = NULL; | ||
88 | return err; | ||
89 | } | 74 | } |
90 | 75 | ||
91 | static int keywest_detach_client(struct i2c_client *client) | 76 | static int keywest_remove(struct i2c_client *client) |
92 | { | 77 | { |
78 | i2c_set_clientdata(client, NULL); | ||
93 | if (! keywest_ctx) | 79 | if (! keywest_ctx) |
94 | return 0; | 80 | return 0; |
95 | if (client == keywest_ctx->client) | 81 | if (client == keywest_ctx->client) |
96 | keywest_ctx->client = NULL; | 82 | keywest_ctx->client = NULL; |
97 | 83 | ||
98 | i2c_detach_client(client); | ||
99 | kfree(client); | ||
100 | return 0; | 84 | return 0; |
101 | } | 85 | } |
102 | 86 | ||
87 | |||
88 | static const struct i2c_device_id keywest_i2c_id[] = { | ||
89 | { "keywest", 0 }, | ||
90 | { } | ||
91 | }; | ||
92 | |||
93 | struct i2c_driver keywest_driver = { | ||
94 | .driver = { | ||
95 | .name = "PMac Keywest Audio", | ||
96 | }, | ||
97 | .attach_adapter = keywest_attach_adapter, | ||
98 | .probe = keywest_probe, | ||
99 | .remove = keywest_remove, | ||
100 | .id_table = keywest_i2c_id, | ||
101 | }; | ||
102 | |||
103 | /* exported */ | 103 | /* exported */ |
104 | void snd_pmac_keywest_cleanup(struct pmac_keywest *i2c) | 104 | void snd_pmac_keywest_cleanup(struct pmac_keywest *i2c) |
105 | { | 105 | { |
diff --git a/sound/soc/codecs/wm9705.c b/sound/soc/codecs/wm9705.c index 6e23a81dba78..c2d1a7a18fa3 100644 --- a/sound/soc/codecs/wm9705.c +++ b/sound/soc/codecs/wm9705.c | |||
@@ -318,7 +318,7 @@ static int wm9705_reset(struct snd_soc_codec *codec) | |||
318 | } | 318 | } |
319 | 319 | ||
320 | #ifdef CONFIG_PM | 320 | #ifdef CONFIG_PM |
321 | static int wm9705_soc_suspend(struct platform_device *pdev) | 321 | static int wm9705_soc_suspend(struct platform_device *pdev, pm_message_t msg) |
322 | { | 322 | { |
323 | struct snd_soc_device *socdev = platform_get_drvdata(pdev); | 323 | struct snd_soc_device *socdev = platform_get_drvdata(pdev); |
324 | struct snd_soc_codec *codec = socdev->card->codec; | 324 | struct snd_soc_codec *codec = socdev->card->codec; |
diff --git a/sound/soc/omap/n810.c b/sound/soc/omap/n810.c index a6d1178ce128..91ef17992de5 100644 --- a/sound/soc/omap/n810.c +++ b/sound/soc/omap/n810.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * Copyright (C) 2008 Nokia Corporation | 4 | * Copyright (C) 2008 Nokia Corporation |
5 | * | 5 | * |
6 | * Contact: Jarkko Nikula <jarkko.nikula@nokia.com> | 6 | * Contact: Jarkko Nikula <jhnikula@gmail.com> |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or | 8 | * This program is free software; you can redistribute it and/or |
9 | * modify it under the terms of the GNU General Public License | 9 | * modify it under the terms of the GNU General Public License |
@@ -417,6 +417,6 @@ static void __exit n810_soc_exit(void) | |||
417 | module_init(n810_soc_init); | 417 | module_init(n810_soc_init); |
418 | module_exit(n810_soc_exit); | 418 | module_exit(n810_soc_exit); |
419 | 419 | ||
420 | MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@nokia.com>"); | 420 | MODULE_AUTHOR("Jarkko Nikula <jhnikula@gmail.com>"); |
421 | MODULE_DESCRIPTION("ALSA SoC Nokia N810"); | 421 | MODULE_DESCRIPTION("ALSA SoC Nokia N810"); |
422 | MODULE_LICENSE("GPL"); | 422 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c index 9c09b94f0cf8..912614283848 100644 --- a/sound/soc/omap/omap-mcbsp.c +++ b/sound/soc/omap/omap-mcbsp.c | |||
@@ -3,7 +3,8 @@ | |||
3 | * | 3 | * |
4 | * Copyright (C) 2008 Nokia Corporation | 4 | * Copyright (C) 2008 Nokia Corporation |
5 | * | 5 | * |
6 | * Contact: Jarkko Nikula <jarkko.nikula@nokia.com> | 6 | * Contact: Jarkko Nikula <jhnikula@gmail.com> |
7 | * Peter Ujfalusi <peter.ujfalusi@nokia.com> | ||
7 | * | 8 | * |
8 | * This program is free software; you can redistribute it and/or | 9 | * This program is free software; you can redistribute it and/or |
9 | * modify it under the terms of the GNU General Public License | 10 | * modify it under the terms of the GNU General Public License |
@@ -283,7 +284,7 @@ static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream, | |||
283 | break; | 284 | break; |
284 | case SND_SOC_DAIFMT_DSP_B: | 285 | case SND_SOC_DAIFMT_DSP_B: |
285 | regs->srgr2 |= FPER(wlen * channels - 1); | 286 | regs->srgr2 |= FPER(wlen * channels - 1); |
286 | regs->srgr1 |= FWID(wlen * channels - 2); | 287 | regs->srgr1 |= FWID(0); |
287 | break; | 288 | break; |
288 | } | 289 | } |
289 | 290 | ||
@@ -302,6 +303,7 @@ static int omap_mcbsp_dai_set_dai_fmt(struct snd_soc_dai *cpu_dai, | |||
302 | { | 303 | { |
303 | struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data); | 304 | struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data); |
304 | struct omap_mcbsp_reg_cfg *regs = &mcbsp_data->regs; | 305 | struct omap_mcbsp_reg_cfg *regs = &mcbsp_data->regs; |
306 | unsigned int temp_fmt = fmt; | ||
305 | 307 | ||
306 | if (mcbsp_data->configured) | 308 | if (mcbsp_data->configured) |
307 | return 0; | 309 | return 0; |
@@ -328,6 +330,8 @@ static int omap_mcbsp_dai_set_dai_fmt(struct snd_soc_dai *cpu_dai, | |||
328 | /* 0-bit data delay */ | 330 | /* 0-bit data delay */ |
329 | regs->rcr2 |= RDATDLY(0); | 331 | regs->rcr2 |= RDATDLY(0); |
330 | regs->xcr2 |= XDATDLY(0); | 332 | regs->xcr2 |= XDATDLY(0); |
333 | /* Invert FS polarity configuration */ | ||
334 | temp_fmt ^= SND_SOC_DAIFMT_NB_IF; | ||
331 | break; | 335 | break; |
332 | default: | 336 | default: |
333 | /* Unsupported data format */ | 337 | /* Unsupported data format */ |
@@ -351,7 +355,7 @@ static int omap_mcbsp_dai_set_dai_fmt(struct snd_soc_dai *cpu_dai, | |||
351 | } | 355 | } |
352 | 356 | ||
353 | /* Set bit clock (CLKX/CLKR) and FS polarities */ | 357 | /* Set bit clock (CLKX/CLKR) and FS polarities */ |
354 | switch (fmt & SND_SOC_DAIFMT_INV_MASK) { | 358 | switch (temp_fmt & SND_SOC_DAIFMT_INV_MASK) { |
355 | case SND_SOC_DAIFMT_NB_NF: | 359 | case SND_SOC_DAIFMT_NB_NF: |
356 | /* | 360 | /* |
357 | * Normal BCLK + FS. | 361 | * Normal BCLK + FS. |
@@ -529,6 +533,6 @@ static void __exit snd_omap_mcbsp_exit(void) | |||
529 | } | 533 | } |
530 | module_exit(snd_omap_mcbsp_exit); | 534 | module_exit(snd_omap_mcbsp_exit); |
531 | 535 | ||
532 | MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@nokia.com>"); | 536 | MODULE_AUTHOR("Jarkko Nikula <jhnikula@gmail.com>"); |
533 | MODULE_DESCRIPTION("OMAP I2S SoC Interface"); | 537 | MODULE_DESCRIPTION("OMAP I2S SoC Interface"); |
534 | MODULE_LICENSE("GPL"); | 538 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/omap/omap-mcbsp.h b/sound/soc/omap/omap-mcbsp.h index df7ad13ba73d..c8147aace813 100644 --- a/sound/soc/omap/omap-mcbsp.h +++ b/sound/soc/omap/omap-mcbsp.h | |||
@@ -3,7 +3,8 @@ | |||
3 | * | 3 | * |
4 | * Copyright (C) 2008 Nokia Corporation | 4 | * Copyright (C) 2008 Nokia Corporation |
5 | * | 5 | * |
6 | * Contact: Jarkko Nikula <jarkko.nikula@nokia.com> | 6 | * Contact: Jarkko Nikula <jhnikula@gmail.com> |
7 | * Peter Ujfalusi <peter.ujfalusi@nokia.com> | ||
7 | * | 8 | * |
8 | * This program is free software; you can redistribute it and/or | 9 | * This program is free software; you can redistribute it and/or |
9 | * modify it under the terms of the GNU General Public License | 10 | * modify it under the terms of the GNU General Public License |
diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c index 1bdbb0427183..07cf7f46b584 100644 --- a/sound/soc/omap/omap-pcm.c +++ b/sound/soc/omap/omap-pcm.c | |||
@@ -3,7 +3,8 @@ | |||
3 | * | 3 | * |
4 | * Copyright (C) 2008 Nokia Corporation | 4 | * Copyright (C) 2008 Nokia Corporation |
5 | * | 5 | * |
6 | * Contact: Jarkko Nikula <jarkko.nikula@nokia.com> | 6 | * Contact: Jarkko Nikula <jhnikula@gmail.com> |
7 | * Peter Ujfalusi <peter.ujfalusi@nokia.com> | ||
7 | * | 8 | * |
8 | * This program is free software; you can redistribute it and/or | 9 | * This program is free software; you can redistribute it and/or |
9 | * modify it under the terms of the GNU General Public License | 10 | * modify it under the terms of the GNU General Public License |
@@ -367,6 +368,6 @@ static void __exit omap_soc_platform_exit(void) | |||
367 | } | 368 | } |
368 | module_exit(omap_soc_platform_exit); | 369 | module_exit(omap_soc_platform_exit); |
369 | 370 | ||
370 | MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@nokia.com>"); | 371 | MODULE_AUTHOR("Jarkko Nikula <jhnikula@gmail.com>"); |
371 | MODULE_DESCRIPTION("OMAP PCM DMA module"); | 372 | MODULE_DESCRIPTION("OMAP PCM DMA module"); |
372 | MODULE_LICENSE("GPL"); | 373 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/omap/omap-pcm.h b/sound/soc/omap/omap-pcm.h index e4369bdfd77d..8d9d26916b05 100644 --- a/sound/soc/omap/omap-pcm.h +++ b/sound/soc/omap/omap-pcm.h | |||
@@ -3,7 +3,8 @@ | |||
3 | * | 3 | * |
4 | * Copyright (C) 2008 Nokia Corporation | 4 | * Copyright (C) 2008 Nokia Corporation |
5 | * | 5 | * |
6 | * Contact: Jarkko Nikula <jarkko.nikula@nokia.com> | 6 | * Contact: Jarkko Nikula <jhnikula@gmail.com> |
7 | * Peter Ujfalusi <peter.ujfalusi@nokia.com> | ||
7 | * | 8 | * |
8 | * This program is free software; you can redistribute it and/or | 9 | * This program is free software; you can redistribute it and/or |
9 | * modify it under the terms of the GNU General Public License | 10 | * modify it under the terms of the GNU General Public License |
diff --git a/sound/soc/omap/osk5912.c b/sound/soc/omap/osk5912.c index a952a4eb3361..a4e149b7f0eb 100644 --- a/sound/soc/omap/osk5912.c +++ b/sound/soc/omap/osk5912.c | |||
@@ -62,7 +62,7 @@ static int osk_hw_params(struct snd_pcm_substream *substream, | |||
62 | /* Set codec DAI configuration */ | 62 | /* Set codec DAI configuration */ |
63 | err = snd_soc_dai_set_fmt(codec_dai, | 63 | err = snd_soc_dai_set_fmt(codec_dai, |
64 | SND_SOC_DAIFMT_DSP_B | | 64 | SND_SOC_DAIFMT_DSP_B | |
65 | SND_SOC_DAIFMT_NB_IF | | 65 | SND_SOC_DAIFMT_NB_NF | |
66 | SND_SOC_DAIFMT_CBM_CFM); | 66 | SND_SOC_DAIFMT_CBM_CFM); |
67 | if (err < 0) { | 67 | if (err < 0) { |
68 | printk(KERN_ERR "can't set codec DAI configuration\n"); | 68 | printk(KERN_ERR "can't set codec DAI configuration\n"); |
@@ -72,7 +72,7 @@ static int osk_hw_params(struct snd_pcm_substream *substream, | |||
72 | /* Set cpu DAI configuration */ | 72 | /* Set cpu DAI configuration */ |
73 | err = snd_soc_dai_set_fmt(cpu_dai, | 73 | err = snd_soc_dai_set_fmt(cpu_dai, |
74 | SND_SOC_DAIFMT_DSP_B | | 74 | SND_SOC_DAIFMT_DSP_B | |
75 | SND_SOC_DAIFMT_NB_IF | | 75 | SND_SOC_DAIFMT_NB_NF | |
76 | SND_SOC_DAIFMT_CBM_CFM); | 76 | SND_SOC_DAIFMT_CBM_CFM); |
77 | if (err < 0) { | 77 | if (err < 0) { |
78 | printk(KERN_ERR "can't set cpu DAI configuration\n"); | 78 | printk(KERN_ERR "can't set cpu DAI configuration\n"); |
diff --git a/sound/soc/pxa/magician.c b/sound/soc/pxa/magician.c index f7c4544f7859..0625c342a1c9 100644 --- a/sound/soc/pxa/magician.c +++ b/sound/soc/pxa/magician.c | |||
@@ -27,8 +27,6 @@ | |||
27 | #include <sound/soc.h> | 27 | #include <sound/soc.h> |
28 | #include <sound/soc-dapm.h> | 28 | #include <sound/soc-dapm.h> |
29 | 29 | ||
30 | #include <mach/pxa-regs.h> | ||
31 | #include <mach/hardware.h> | ||
32 | #include <mach/magician.h> | 30 | #include <mach/magician.h> |
33 | #include <asm/mach-types.h> | 31 | #include <asm/mach-types.h> |
34 | #include "../codecs/uda1380.h" | 32 | #include "../codecs/uda1380.h" |
diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c index 308a657928d2..286be31545df 100644 --- a/sound/soc/pxa/pxa-ssp.c +++ b/sound/soc/pxa/pxa-ssp.c | |||
@@ -280,12 +280,33 @@ static int pxa_ssp_resume(struct snd_soc_dai *cpu_dai) | |||
280 | * ssp_set_clkdiv - set SSP clock divider | 280 | * ssp_set_clkdiv - set SSP clock divider |
281 | * @div: serial clock rate divider | 281 | * @div: serial clock rate divider |
282 | */ | 282 | */ |
283 | static void ssp_set_scr(struct ssp_dev *dev, u32 div) | 283 | static void ssp_set_scr(struct ssp_device *ssp, u32 div) |
284 | { | 284 | { |
285 | struct ssp_device *ssp = dev->ssp; | 285 | u32 sscr0 = ssp_read_reg(ssp, SSCR0); |
286 | u32 sscr0 = ssp_read_reg(dev->ssp, SSCR0) & ~SSCR0_SCR; | 286 | |
287 | if (cpu_is_pxa25x() && ssp->type == PXA25x_SSP) { | ||
288 | sscr0 &= ~0x0000ff00; | ||
289 | sscr0 |= ((div - 2)/2) << 8; /* 2..512 */ | ||
290 | } else { | ||
291 | sscr0 &= ~0x000fff00; | ||
292 | sscr0 |= (div - 1) << 8; /* 1..4096 */ | ||
293 | } | ||
294 | ssp_write_reg(ssp, SSCR0, sscr0); | ||
295 | } | ||
296 | |||
297 | /** | ||
298 | * ssp_get_clkdiv - get SSP clock divider | ||
299 | */ | ||
300 | static u32 ssp_get_scr(struct ssp_device *ssp) | ||
301 | { | ||
302 | u32 sscr0 = ssp_read_reg(ssp, SSCR0); | ||
303 | u32 div; | ||
287 | 304 | ||
288 | ssp_write_reg(ssp, SSCR0, (sscr0 | SSCR0_SerClkDiv(div))); | 305 | if (cpu_is_pxa25x() && ssp->type == PXA25x_SSP) |
306 | div = ((sscr0 >> 8) & 0xff) * 2 + 2; | ||
307 | else | ||
308 | div = ((sscr0 >> 8) & 0xfff) + 1; | ||
309 | return div; | ||
289 | } | 310 | } |
290 | 311 | ||
291 | /* | 312 | /* |
@@ -326,7 +347,7 @@ static int pxa_ssp_set_dai_sysclk(struct snd_soc_dai *cpu_dai, | |||
326 | break; | 347 | break; |
327 | case PXA_SSP_CLK_AUDIO: | 348 | case PXA_SSP_CLK_AUDIO: |
328 | priv->sysclk = 0; | 349 | priv->sysclk = 0; |
329 | ssp_set_scr(&priv->dev, 1); | 350 | ssp_set_scr(ssp, 1); |
330 | sscr0 |= SSCR0_ACS; | 351 | sscr0 |= SSCR0_ACS; |
331 | break; | 352 | break; |
332 | default: | 353 | default: |
@@ -387,7 +408,7 @@ static int pxa_ssp_set_dai_clkdiv(struct snd_soc_dai *cpu_dai, | |||
387 | ssp_write_reg(ssp, SSACD, val); | 408 | ssp_write_reg(ssp, SSACD, val); |
388 | break; | 409 | break; |
389 | case PXA_SSP_DIV_SCR: | 410 | case PXA_SSP_DIV_SCR: |
390 | ssp_set_scr(&priv->dev, div); | 411 | ssp_set_scr(ssp, div); |
391 | break; | 412 | break; |
392 | default: | 413 | default: |
393 | return -ENODEV; | 414 | return -ENODEV; |
@@ -674,8 +695,7 @@ static int pxa_ssp_hw_params(struct snd_pcm_substream *substream, | |||
674 | case SND_SOC_DAIFMT_I2S: | 695 | case SND_SOC_DAIFMT_I2S: |
675 | sspsp = ssp_read_reg(ssp, SSPSP); | 696 | sspsp = ssp_read_reg(ssp, SSPSP); |
676 | 697 | ||
677 | if (((sscr0 & SSCR0_SCR) == SSCR0_SerClkDiv(4)) && | 698 | if ((ssp_get_scr(ssp) == 4) && (width == 16)) { |
678 | (width == 16)) { | ||
679 | /* This is a special case where the bitclk is 64fs | 699 | /* This is a special case where the bitclk is 64fs |
680 | * and we're not dealing with 2*32 bits of audio | 700 | * and we're not dealing with 2*32 bits of audio |
681 | * samples. | 701 | * samples. |
@@ -806,6 +826,7 @@ static int pxa_ssp_probe(struct platform_device *pdev, | |||
806 | goto err_priv; | 826 | goto err_priv; |
807 | } | 827 | } |
808 | 828 | ||
829 | priv->dai_fmt = (unsigned int) -1; | ||
809 | dai->private_data = priv; | 830 | dai->private_data = priv; |
810 | 831 | ||
811 | return 0; | 832 | return 0; |
diff --git a/sound/soc/s3c24xx/Kconfig b/sound/soc/s3c24xx/Kconfig index 2f3a21eee051..df494d1e346f 100644 --- a/sound/soc/s3c24xx/Kconfig +++ b/sound/soc/s3c24xx/Kconfig | |||
@@ -1,10 +1,10 @@ | |||
1 | config SND_S3C24XX_SOC | 1 | config SND_S3C24XX_SOC |
2 | tristate "SoC Audio for the Samsung S3CXXXX chips" | 2 | tristate "SoC Audio for the Samsung S3CXXXX chips" |
3 | depends on ARCH_S3C2410 || ARCH_S3C64XX | 3 | depends on ARCH_S3C2410 |
4 | help | 4 | help |
5 | Say Y or M if you want to add support for codecs attached to | 5 | Say Y or M if you want to add support for codecs attached to |
6 | the S3C24XX and S3C64XX AC97, I2S or SSP interface. You will | 6 | the S3C24XX AC97 or I2S interfaces. You will also need to |
7 | also need to select the audio interfaces to support below. | 7 | select the audio interfaces to support below. |
8 | 8 | ||
9 | config SND_S3C24XX_SOC_I2S | 9 | config SND_S3C24XX_SOC_I2S |
10 | tristate | 10 | tristate |
diff --git a/sound/soc/s3c24xx/jive_wm8750.c b/sound/soc/s3c24xx/jive_wm8750.c index 32063790d95b..93e6c87b7399 100644 --- a/sound/soc/s3c24xx/jive_wm8750.c +++ b/sound/soc/s3c24xx/jive_wm8750.c | |||
@@ -69,8 +69,8 @@ static int jive_hw_params(struct snd_pcm_substream *substream, | |||
69 | break; | 69 | break; |
70 | } | 70 | } |
71 | 71 | ||
72 | s3c_i2sv2_calc_rate(&div, NULL, params_rate(params), | 72 | s3c_i2sv2_iis_calc_rate(&div, NULL, params_rate(params), |
73 | s3c2412_get_iisclk()); | 73 | s3c2412_get_iisclk()); |
74 | 74 | ||
75 | /* set codec DAI configuration */ | 75 | /* set codec DAI configuration */ |
76 | ret = snd_soc_dai_set_fmt(codec_dai, SND_SOC_DAIFMT_I2S | | 76 | ret = snd_soc_dai_set_fmt(codec_dai, SND_SOC_DAIFMT_I2S | |
@@ -145,8 +145,9 @@ static struct snd_soc_dai_link jive_dai = { | |||
145 | }; | 145 | }; |
146 | 146 | ||
147 | /* jive audio machine driver */ | 147 | /* jive audio machine driver */ |
148 | static struct snd_soc_machine snd_soc_machine_jive = { | 148 | static struct snd_soc_card snd_soc_machine_jive = { |
149 | .name = "Jive", | 149 | .name = "Jive", |
150 | .platform = &s3c24xx_soc_platform, | ||
150 | .dai_link = &jive_dai, | 151 | .dai_link = &jive_dai, |
151 | .num_links = 1, | 152 | .num_links = 1, |
152 | }; | 153 | }; |
@@ -157,9 +158,8 @@ static struct wm8750_setup_data jive_wm8750_setup = { | |||
157 | 158 | ||
158 | /* jive audio subsystem */ | 159 | /* jive audio subsystem */ |
159 | static struct snd_soc_device jive_snd_devdata = { | 160 | static struct snd_soc_device jive_snd_devdata = { |
160 | .machine = &snd_soc_machine_jive, | 161 | .card = &snd_soc_machine_jive, |
161 | .platform = &s3c24xx_soc_platform, | 162 | .codec_dev = &soc_codec_dev_wm8750, |
162 | .codec_dev = &soc_codec_dev_wm8750_spi, | ||
163 | .codec_data = &jive_wm8750_setup, | 163 | .codec_data = &jive_wm8750_setup, |
164 | }; | 164 | }; |
165 | 165 | ||
diff --git a/sound/soc/s3c24xx/s3c-i2s-v2.c b/sound/soc/s3c24xx/s3c-i2s-v2.c index 295a4c910262..689ffcd17e1f 100644 --- a/sound/soc/s3c24xx/s3c-i2s-v2.c +++ b/sound/soc/s3c24xx/s3c-i2s-v2.c | |||
@@ -473,9 +473,9 @@ static int s3c2412_i2s_set_clkdiv(struct snd_soc_dai *cpu_dai, | |||
473 | /* default table of all avaialable root fs divisors */ | 473 | /* default table of all avaialable root fs divisors */ |
474 | static unsigned int iis_fs_tab[] = { 256, 512, 384, 768 }; | 474 | static unsigned int iis_fs_tab[] = { 256, 512, 384, 768 }; |
475 | 475 | ||
476 | int s3c2412_iis_calc_rate(struct s3c_i2sv2_rate_calc *info, | 476 | int s3c_i2sv2_iis_calc_rate(struct s3c_i2sv2_rate_calc *info, |
477 | unsigned int *fstab, | 477 | unsigned int *fstab, |
478 | unsigned int rate, struct clk *clk) | 478 | unsigned int rate, struct clk *clk) |
479 | { | 479 | { |
480 | unsigned long clkrate = clk_get_rate(clk); | 480 | unsigned long clkrate = clk_get_rate(clk); |
481 | unsigned int div; | 481 | unsigned int div; |
@@ -531,7 +531,7 @@ int s3c2412_iis_calc_rate(struct s3c_i2sv2_rate_calc *info, | |||
531 | 531 | ||
532 | return 0; | 532 | return 0; |
533 | } | 533 | } |
534 | EXPORT_SYMBOL_GPL(s3c2412_iis_calc_rate); | 534 | EXPORT_SYMBOL_GPL(s3c_i2sv2_iis_calc_rate); |
535 | 535 | ||
536 | int s3c_i2sv2_probe(struct platform_device *pdev, | 536 | int s3c_i2sv2_probe(struct platform_device *pdev, |
537 | struct snd_soc_dai *dai, | 537 | struct snd_soc_dai *dai, |
@@ -624,10 +624,12 @@ static int s3c2412_i2s_resume(struct snd_soc_dai *dai) | |||
624 | 624 | ||
625 | int s3c_i2sv2_register_dai(struct snd_soc_dai *dai) | 625 | int s3c_i2sv2_register_dai(struct snd_soc_dai *dai) |
626 | { | 626 | { |
627 | dai->ops.trigger = s3c2412_i2s_trigger; | 627 | struct snd_soc_dai_ops *ops = dai->ops; |
628 | dai->ops.hw_params = s3c2412_i2s_hw_params; | 628 | |
629 | dai->ops.set_fmt = s3c2412_i2s_set_fmt; | 629 | ops->trigger = s3c2412_i2s_trigger; |
630 | dai->ops.set_clkdiv = s3c2412_i2s_set_clkdiv; | 630 | ops->hw_params = s3c2412_i2s_hw_params; |
631 | ops->set_fmt = s3c2412_i2s_set_fmt; | ||
632 | ops->set_clkdiv = s3c2412_i2s_set_clkdiv; | ||
631 | 633 | ||
632 | dai->suspend = s3c2412_i2s_suspend; | 634 | dai->suspend = s3c2412_i2s_suspend; |
633 | dai->resume = s3c2412_i2s_resume; | 635 | dai->resume = s3c2412_i2s_resume; |
diff --git a/sound/soc/s3c24xx/s3c2412-i2s.c b/sound/soc/s3c24xx/s3c2412-i2s.c index 1ca3cdaa8213..b7e0b3f0bfc8 100644 --- a/sound/soc/s3c24xx/s3c2412-i2s.c +++ b/sound/soc/s3c24xx/s3c2412-i2s.c | |||
@@ -33,8 +33,8 @@ | |||
33 | 33 | ||
34 | #include <plat/regs-s3c2412-iis.h> | 34 | #include <plat/regs-s3c2412-iis.h> |
35 | 35 | ||
36 | #include <plat/regs-gpio.h> | ||
37 | #include <plat/audio.h> | 36 | #include <plat/audio.h> |
37 | #include <mach/regs-gpio.h> | ||
38 | #include <mach/dma.h> | 38 | #include <mach/dma.h> |
39 | 39 | ||
40 | #include "s3c24xx-pcm.h" | 40 | #include "s3c24xx-pcm.h" |
diff --git a/sound/sparc/cs4231.c b/sound/sparc/cs4231.c index 7d93fa705ccf..8d13d933087d 100644 --- a/sound/sparc/cs4231.c +++ b/sound/sparc/cs4231.c | |||
@@ -703,7 +703,7 @@ static int snd_cs4231_timer_stop(struct snd_timer *timer) | |||
703 | return 0; | 703 | return 0; |
704 | } | 704 | } |
705 | 705 | ||
706 | static void __init snd_cs4231_init(struct snd_cs4231 *chip) | 706 | static void __devinit snd_cs4231_init(struct snd_cs4231 *chip) |
707 | { | 707 | { |
708 | unsigned long flags; | 708 | unsigned long flags; |
709 | 709 | ||
@@ -1020,7 +1020,7 @@ static snd_pcm_uframes_t snd_cs4231_capture_pointer( | |||
1020 | return bytes_to_frames(substream->runtime, ptr); | 1020 | return bytes_to_frames(substream->runtime, ptr); |
1021 | } | 1021 | } |
1022 | 1022 | ||
1023 | static int __init snd_cs4231_probe(struct snd_cs4231 *chip) | 1023 | static int __devinit snd_cs4231_probe(struct snd_cs4231 *chip) |
1024 | { | 1024 | { |
1025 | unsigned long flags; | 1025 | unsigned long flags; |
1026 | int i; | 1026 | int i; |
@@ -1219,7 +1219,7 @@ static struct snd_pcm_ops snd_cs4231_capture_ops = { | |||
1219 | .pointer = snd_cs4231_capture_pointer, | 1219 | .pointer = snd_cs4231_capture_pointer, |
1220 | }; | 1220 | }; |
1221 | 1221 | ||
1222 | static int __init snd_cs4231_pcm(struct snd_card *card) | 1222 | static int __devinit snd_cs4231_pcm(struct snd_card *card) |
1223 | { | 1223 | { |
1224 | struct snd_cs4231 *chip = card->private_data; | 1224 | struct snd_cs4231 *chip = card->private_data; |
1225 | struct snd_pcm *pcm; | 1225 | struct snd_pcm *pcm; |
@@ -1248,7 +1248,7 @@ static int __init snd_cs4231_pcm(struct snd_card *card) | |||
1248 | return 0; | 1248 | return 0; |
1249 | } | 1249 | } |
1250 | 1250 | ||
1251 | static int __init snd_cs4231_timer(struct snd_card *card) | 1251 | static int __devinit snd_cs4231_timer(struct snd_card *card) |
1252 | { | 1252 | { |
1253 | struct snd_cs4231 *chip = card->private_data; | 1253 | struct snd_cs4231 *chip = card->private_data; |
1254 | struct snd_timer *timer; | 1254 | struct snd_timer *timer; |
@@ -1499,7 +1499,7 @@ static int snd_cs4231_put_double(struct snd_kcontrol *kcontrol, | |||
1499 | .private_value = (left_reg) | ((right_reg) << 8) | ((shift_left) << 16) | \ | 1499 | .private_value = (left_reg) | ((right_reg) << 8) | ((shift_left) << 16) | \ |
1500 | ((shift_right) << 19) | ((mask) << 24) | ((invert) << 22) } | 1500 | ((shift_right) << 19) | ((mask) << 24) | ((invert) << 22) } |
1501 | 1501 | ||
1502 | static struct snd_kcontrol_new snd_cs4231_controls[] __initdata = { | 1502 | static struct snd_kcontrol_new snd_cs4231_controls[] __devinitdata = { |
1503 | CS4231_DOUBLE("PCM Playback Switch", 0, CS4231_LEFT_OUTPUT, | 1503 | CS4231_DOUBLE("PCM Playback Switch", 0, CS4231_LEFT_OUTPUT, |
1504 | CS4231_RIGHT_OUTPUT, 7, 7, 1, 1), | 1504 | CS4231_RIGHT_OUTPUT, 7, 7, 1, 1), |
1505 | CS4231_DOUBLE("PCM Playback Volume", 0, CS4231_LEFT_OUTPUT, | 1505 | CS4231_DOUBLE("PCM Playback Volume", 0, CS4231_LEFT_OUTPUT, |
@@ -1538,7 +1538,7 @@ CS4231_SINGLE("Line Out Switch", 0, CS4231_PIN_CTRL, 6, 1, 1), | |||
1538 | CS4231_SINGLE("Headphone Out Switch", 0, CS4231_PIN_CTRL, 7, 1, 1) | 1538 | CS4231_SINGLE("Headphone Out Switch", 0, CS4231_PIN_CTRL, 7, 1, 1) |
1539 | }; | 1539 | }; |
1540 | 1540 | ||
1541 | static int __init snd_cs4231_mixer(struct snd_card *card) | 1541 | static int __devinit snd_cs4231_mixer(struct snd_card *card) |
1542 | { | 1542 | { |
1543 | struct snd_cs4231 *chip = card->private_data; | 1543 | struct snd_cs4231 *chip = card->private_data; |
1544 | int err, idx; | 1544 | int err, idx; |
@@ -1559,7 +1559,7 @@ static int __init snd_cs4231_mixer(struct snd_card *card) | |||
1559 | 1559 | ||
1560 | static int dev; | 1560 | static int dev; |
1561 | 1561 | ||
1562 | static int __init cs4231_attach_begin(struct snd_card **rcard) | 1562 | static int __devinit cs4231_attach_begin(struct snd_card **rcard) |
1563 | { | 1563 | { |
1564 | struct snd_card *card; | 1564 | struct snd_card *card; |
1565 | struct snd_cs4231 *chip; | 1565 | struct snd_cs4231 *chip; |
@@ -1590,7 +1590,7 @@ static int __init cs4231_attach_begin(struct snd_card **rcard) | |||
1590 | return 0; | 1590 | return 0; |
1591 | } | 1591 | } |
1592 | 1592 | ||
1593 | static int __init cs4231_attach_finish(struct snd_card *card) | 1593 | static int __devinit cs4231_attach_finish(struct snd_card *card) |
1594 | { | 1594 | { |
1595 | struct snd_cs4231 *chip = card->private_data; | 1595 | struct snd_cs4231 *chip = card->private_data; |
1596 | int err; | 1596 | int err; |
@@ -1794,9 +1794,9 @@ static struct snd_device_ops snd_cs4231_sbus_dev_ops = { | |||
1794 | .dev_free = snd_cs4231_sbus_dev_free, | 1794 | .dev_free = snd_cs4231_sbus_dev_free, |
1795 | }; | 1795 | }; |
1796 | 1796 | ||
1797 | static int __init snd_cs4231_sbus_create(struct snd_card *card, | 1797 | static int __devinit snd_cs4231_sbus_create(struct snd_card *card, |
1798 | struct of_device *op, | 1798 | struct of_device *op, |
1799 | int dev) | 1799 | int dev) |
1800 | { | 1800 | { |
1801 | struct snd_cs4231 *chip = card->private_data; | 1801 | struct snd_cs4231 *chip = card->private_data; |
1802 | int err; | 1802 | int err; |
@@ -1960,9 +1960,9 @@ static struct snd_device_ops snd_cs4231_ebus_dev_ops = { | |||
1960 | .dev_free = snd_cs4231_ebus_dev_free, | 1960 | .dev_free = snd_cs4231_ebus_dev_free, |
1961 | }; | 1961 | }; |
1962 | 1962 | ||
1963 | static int __init snd_cs4231_ebus_create(struct snd_card *card, | 1963 | static int __devinit snd_cs4231_ebus_create(struct snd_card *card, |
1964 | struct of_device *op, | 1964 | struct of_device *op, |
1965 | int dev) | 1965 | int dev) |
1966 | { | 1966 | { |
1967 | struct snd_cs4231 *chip = card->private_data; | 1967 | struct snd_cs4231 *chip = card->private_data; |
1968 | int err; | 1968 | int err; |
diff --git a/sound/usb/caiaq/Makefile b/sound/usb/caiaq/Makefile index 23dadd5a11cd..388999653aaa 100644 --- a/sound/usb/caiaq/Makefile +++ b/sound/usb/caiaq/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | snd-usb-caiaq-y := caiaq-device.o caiaq-audio.o caiaq-midi.o caiaq-control.o | 1 | snd-usb-caiaq-y := device.o audio.o midi.o control.o |
2 | snd-usb-caiaq-$(CONFIG_SND_USB_CAIAQ_INPUT) += caiaq-input.o | 2 | snd-usb-caiaq-$(CONFIG_SND_USB_CAIAQ_INPUT) += input.o |
3 | 3 | ||
4 | obj-$(CONFIG_SND_USB_CAIAQ) += snd-usb-caiaq.o | 4 | obj-$(CONFIG_SND_USB_CAIAQ) += snd-usb-caiaq.o |
diff --git a/sound/usb/caiaq/caiaq-audio.c b/sound/usb/caiaq/audio.c index 08d51e0c9fea..3f45c0fe61ab 100644 --- a/sound/usb/caiaq/caiaq-audio.c +++ b/sound/usb/caiaq/audio.c | |||
@@ -16,20 +16,14 @@ | |||
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <linux/spinlock.h> | ||
19 | #include <linux/init.h> | 20 | #include <linux/init.h> |
20 | #include <linux/module.h> | ||
21 | #include <linux/moduleparam.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/usb.h> | 21 | #include <linux/usb.h> |
24 | #include <linux/spinlock.h> | ||
25 | #include <sound/core.h> | 22 | #include <sound/core.h> |
26 | #include <sound/initval.h> | ||
27 | #include <sound/pcm.h> | 23 | #include <sound/pcm.h> |
28 | #include <sound/rawmidi.h> | ||
29 | #include <linux/input.h> | ||
30 | 24 | ||
31 | #include "caiaq-device.h" | 25 | #include "device.h" |
32 | #include "caiaq-audio.h" | 26 | #include "audio.h" |
33 | 27 | ||
34 | #define N_URBS 32 | 28 | #define N_URBS 32 |
35 | #define CLOCK_DRIFT_TOLERANCE 5 | 29 | #define CLOCK_DRIFT_TOLERANCE 5 |
diff --git a/sound/usb/caiaq/caiaq-audio.h b/sound/usb/caiaq/audio.h index 8ab1f8d9529e..8ab1f8d9529e 100644 --- a/sound/usb/caiaq/caiaq-audio.h +++ b/sound/usb/caiaq/audio.h | |||
diff --git a/sound/usb/caiaq/caiaq-control.c b/sound/usb/caiaq/control.c index e92c2bbf4fe9..537102ba6b9d 100644 --- a/sound/usb/caiaq/caiaq-control.c +++ b/sound/usb/caiaq/control.c | |||
@@ -18,17 +18,13 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/interrupt.h> | ||
22 | #include <linux/usb.h> | 21 | #include <linux/usb.h> |
22 | #include <sound/control.h> | ||
23 | #include <sound/core.h> | 23 | #include <sound/core.h> |
24 | #include <sound/initval.h> | ||
25 | #include <sound/pcm.h> | 24 | #include <sound/pcm.h> |
26 | #include <sound/rawmidi.h> | ||
27 | #include <sound/control.h> | ||
28 | #include <linux/input.h> | ||
29 | 25 | ||
30 | #include "caiaq-device.h" | 26 | #include "device.h" |
31 | #include "caiaq-control.h" | 27 | #include "control.h" |
32 | 28 | ||
33 | #define CNT_INTVAL 0x10000 | 29 | #define CNT_INTVAL 0x10000 |
34 | 30 | ||
diff --git a/sound/usb/caiaq/caiaq-control.h b/sound/usb/caiaq/control.h index 2e7ab1aa4fb3..2e7ab1aa4fb3 100644 --- a/sound/usb/caiaq/caiaq-control.h +++ b/sound/usb/caiaq/control.h | |||
diff --git a/sound/usb/caiaq/caiaq-device.c b/sound/usb/caiaq/device.c index cf573a982fdc..6d517705da0e 100644 --- a/sound/usb/caiaq/caiaq-device.c +++ b/sound/usb/caiaq/device.c | |||
@@ -19,27 +19,20 @@ | |||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <linux/init.h> | ||
23 | #include <linux/module.h> | ||
24 | #include <linux/moduleparam.h> | 22 | #include <linux/moduleparam.h> |
25 | #include <linux/interrupt.h> | 23 | #include <linux/interrupt.h> |
24 | #include <linux/module.h> | ||
25 | #include <linux/init.h> | ||
26 | #include <linux/usb.h> | 26 | #include <linux/usb.h> |
27 | #include <linux/input.h> | ||
28 | #include <linux/spinlock.h> | ||
29 | #include <sound/core.h> | ||
30 | #include <sound/initval.h> | 27 | #include <sound/initval.h> |
28 | #include <sound/core.h> | ||
31 | #include <sound/pcm.h> | 29 | #include <sound/pcm.h> |
32 | #include <sound/rawmidi.h> | ||
33 | #include <sound/control.h> | ||
34 | |||
35 | #include "caiaq-device.h" | ||
36 | #include "caiaq-audio.h" | ||
37 | #include "caiaq-midi.h" | ||
38 | #include "caiaq-control.h" | ||
39 | 30 | ||
40 | #ifdef CONFIG_SND_USB_CAIAQ_INPUT | 31 | #include "device.h" |
41 | #include "caiaq-input.h" | 32 | #include "audio.h" |
42 | #endif | 33 | #include "midi.h" |
34 | #include "control.h" | ||
35 | #include "input.h" | ||
43 | 36 | ||
44 | MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>"); | 37 | MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>"); |
45 | MODULE_DESCRIPTION("caiaq USB audio, version 1.3.13"); | 38 | MODULE_DESCRIPTION("caiaq USB audio, version 1.3.13"); |
diff --git a/sound/usb/caiaq/caiaq-device.h b/sound/usb/caiaq/device.h index 4cce1ad7493d..4cce1ad7493d 100644 --- a/sound/usb/caiaq/caiaq-device.h +++ b/sound/usb/caiaq/device.h | |||
diff --git a/sound/usb/caiaq/caiaq-input.c b/sound/usb/caiaq/input.c index f743847a5e5a..a48d309bd94c 100644 --- a/sound/usb/caiaq/caiaq-input.c +++ b/sound/usb/caiaq/input.c | |||
@@ -17,17 +17,12 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
20 | #include <linux/module.h> | ||
21 | #include <linux/moduleparam.h> | ||
22 | #include <linux/input.h> | ||
23 | #include <linux/usb.h> | 20 | #include <linux/usb.h> |
24 | #include <linux/usb/input.h> | 21 | #include <linux/usb/input.h> |
25 | #include <linux/spinlock.h> | ||
26 | #include <sound/core.h> | ||
27 | #include <sound/rawmidi.h> | ||
28 | #include <sound/pcm.h> | 22 | #include <sound/pcm.h> |
29 | #include "caiaq-device.h" | 23 | |
30 | #include "caiaq-input.h" | 24 | #include "device.h" |
25 | #include "input.h" | ||
31 | 26 | ||
32 | static unsigned short keycode_ak1[] = { KEY_C, KEY_B, KEY_A }; | 27 | static unsigned short keycode_ak1[] = { KEY_C, KEY_B, KEY_A }; |
33 | static unsigned short keycode_rk2[] = { KEY_1, KEY_2, KEY_3, KEY_4, | 28 | static unsigned short keycode_rk2[] = { KEY_1, KEY_2, KEY_3, KEY_4, |
diff --git a/sound/usb/caiaq/caiaq-input.h b/sound/usb/caiaq/input.h index ced535577864..ced535577864 100644 --- a/sound/usb/caiaq/caiaq-input.h +++ b/sound/usb/caiaq/input.h | |||
diff --git a/sound/usb/caiaq/caiaq-midi.c b/sound/usb/caiaq/midi.c index f19fd360c936..8fa8cd88d763 100644 --- a/sound/usb/caiaq/caiaq-midi.c +++ b/sound/usb/caiaq/midi.c | |||
@@ -16,20 +16,13 @@ | |||
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <linux/init.h> | ||
20 | #include <linux/module.h> | ||
21 | #include <linux/moduleparam.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/usb.h> | 19 | #include <linux/usb.h> |
24 | #include <linux/input.h> | ||
25 | #include <linux/spinlock.h> | ||
26 | #include <sound/core.h> | ||
27 | #include <sound/rawmidi.h> | 20 | #include <sound/rawmidi.h> |
21 | #include <sound/core.h> | ||
28 | #include <sound/pcm.h> | 22 | #include <sound/pcm.h> |
29 | 23 | ||
30 | #include "caiaq-device.h" | 24 | #include "device.h" |
31 | #include "caiaq-midi.h" | 25 | #include "midi.h" |
32 | |||
33 | 26 | ||
34 | static int snd_usb_caiaq_midi_input_open(struct snd_rawmidi_substream *substream) | 27 | static int snd_usb_caiaq_midi_input_open(struct snd_rawmidi_substream *substream) |
35 | { | 28 | { |
diff --git a/sound/usb/caiaq/caiaq-midi.h b/sound/usb/caiaq/midi.h index 9d16db027fc3..9d16db027fc3 100644 --- a/sound/usb/caiaq/caiaq-midi.h +++ b/sound/usb/caiaq/midi.h | |||
diff --git a/sound/usb/usx2y/us122l.c b/sound/usb/usx2y/us122l.c index 98276aafefe6..a5aae9d67f31 100644 --- a/sound/usb/usx2y/us122l.c +++ b/sound/usb/usx2y/us122l.c | |||
@@ -349,14 +349,10 @@ static int usb_stream_hwdep_ioctl(struct snd_hwdep *hw, struct file *file, | |||
349 | if (cmd != SNDRV_USB_STREAM_IOCTL_SET_PARAMS) | 349 | if (cmd != SNDRV_USB_STREAM_IOCTL_SET_PARAMS) |
350 | return -ENOTTY; | 350 | return -ENOTTY; |
351 | 351 | ||
352 | cfg = kmalloc(sizeof(*cfg), GFP_KERNEL); | 352 | cfg = memdup_user((void *)arg, sizeof(*cfg)); |
353 | if (!cfg) | 353 | if (IS_ERR(cfg)) |
354 | return -ENOMEM; | 354 | return PTR_ERR(cfg); |
355 | 355 | ||
356 | if (copy_from_user(cfg, (void *)arg, sizeof(*cfg))) { | ||
357 | err = -EFAULT; | ||
358 | goto free; | ||
359 | } | ||
360 | if (cfg->version != USB_STREAM_INTERFACE_VERSION) { | 356 | if (cfg->version != USB_STREAM_INTERFACE_VERSION) { |
361 | err = -ENXIO; | 357 | err = -ENXIO; |
362 | goto free; | 358 | goto free; |
@@ -478,6 +474,14 @@ static bool us122l_create_card(struct snd_card *card) | |||
478 | return true; | 474 | return true; |
479 | } | 475 | } |
480 | 476 | ||
477 | static void snd_us122l_free(struct snd_card *card) | ||
478 | { | ||
479 | struct us122l *us122l = US122L(card); | ||
480 | int index = us122l->chip.index; | ||
481 | if (index >= 0 && index < SNDRV_CARDS) | ||
482 | snd_us122l_card_used[index] = 0; | ||
483 | } | ||
484 | |||
481 | static int usx2y_create_card(struct usb_device *device, struct snd_card **cardp) | 485 | static int usx2y_create_card(struct usb_device *device, struct snd_card **cardp) |
482 | { | 486 | { |
483 | int dev; | 487 | int dev; |
@@ -494,7 +498,7 @@ static int usx2y_create_card(struct usb_device *device, struct snd_card **cardp) | |||
494 | if (err < 0) | 498 | if (err < 0) |
495 | return err; | 499 | return err; |
496 | snd_us122l_card_used[US122L(card)->chip.index = dev] = 1; | 500 | snd_us122l_card_used[US122L(card)->chip.index = dev] = 1; |
497 | 501 | card->private_free = snd_us122l_free; | |
498 | US122L(card)->chip.dev = device; | 502 | US122L(card)->chip.dev = device; |
499 | US122L(card)->chip.card = card; | 503 | US122L(card)->chip.card = card; |
500 | mutex_init(&US122L(card)->mutex); | 504 | mutex_init(&US122L(card)->mutex); |
@@ -588,7 +592,7 @@ static void snd_us122l_disconnect(struct usb_interface *intf) | |||
588 | } | 592 | } |
589 | 593 | ||
590 | usb_put_intf(intf); | 594 | usb_put_intf(intf); |
591 | usb_put_dev(US122L(card)->chip.dev); | 595 | usb_put_dev(us122l->chip.dev); |
592 | 596 | ||
593 | while (atomic_read(&us122l->mmap_count)) | 597 | while (atomic_read(&us122l->mmap_count)) |
594 | msleep(500); | 598 | msleep(500); |
diff --git a/sound/usb/usx2y/usX2Yhwdep.c b/sound/usb/usx2y/usX2Yhwdep.c index 4af8740db717..f3d8f71265dd 100644 --- a/sound/usb/usx2y/usX2Yhwdep.c +++ b/sound/usb/usx2y/usX2Yhwdep.c | |||
@@ -203,13 +203,12 @@ static int snd_usX2Y_hwdep_dsp_load(struct snd_hwdep *hw, | |||
203 | 203 | ||
204 | if (access_ok(VERIFY_READ, dsp->image, dsp->length)) { | 204 | if (access_ok(VERIFY_READ, dsp->image, dsp->length)) { |
205 | struct usb_device* dev = priv->chip.dev; | 205 | struct usb_device* dev = priv->chip.dev; |
206 | char *buf = kmalloc(dsp->length, GFP_KERNEL); | 206 | char *buf; |
207 | if (!buf) | 207 | |
208 | return -ENOMEM; | 208 | buf = memdup_user(dsp->image, dsp->length); |
209 | if (copy_from_user(buf, dsp->image, dsp->length)) { | 209 | if (IS_ERR(buf)) |
210 | kfree(buf); | 210 | return PTR_ERR(buf); |
211 | return -EFAULT; | 211 | |
212 | } | ||
213 | err = usb_set_interface(dev, 0, 1); | 212 | err = usb_set_interface(dev, 0, 1); |
214 | if (err) | 213 | if (err) |
215 | snd_printk(KERN_ERR "usb_set_interface error \n"); | 214 | snd_printk(KERN_ERR "usb_set_interface error \n"); |
diff --git a/sound/usb/usx2y/usb_stream.c b/sound/usb/usx2y/usb_stream.c index 24393dafcb6e..12ae0340adc0 100644 --- a/sound/usb/usx2y/usb_stream.c +++ b/sound/usb/usx2y/usb_stream.c | |||
@@ -33,32 +33,26 @@ static unsigned usb_stream_next_packet_size(struct usb_stream_kernel *sk) | |||
33 | static void playback_prep_freqn(struct usb_stream_kernel *sk, struct urb *urb) | 33 | static void playback_prep_freqn(struct usb_stream_kernel *sk, struct urb *urb) |
34 | { | 34 | { |
35 | struct usb_stream *s = sk->s; | 35 | struct usb_stream *s = sk->s; |
36 | unsigned l = 0; | 36 | int pack, lb = 0; |
37 | int pack; | 37 | |
38 | 38 | for (pack = 0; pack < sk->n_o_ps; pack++) { | |
39 | urb->iso_frame_desc[0].offset = 0; | 39 | int l = usb_stream_next_packet_size(sk); |
40 | urb->iso_frame_desc[0].length = usb_stream_next_packet_size(sk); | 40 | if (s->idle_outsize + lb + l > s->period_size) |
41 | sk->out_phase = sk->out_phase_peeked; | ||
42 | urb->transfer_buffer_length = urb->iso_frame_desc[0].length; | ||
43 | |||
44 | for (pack = 1; pack < sk->n_o_ps; pack++) { | ||
45 | l = usb_stream_next_packet_size(sk); | ||
46 | if (s->idle_outsize + urb->transfer_buffer_length + l > | ||
47 | s->period_size) | ||
48 | goto check; | 41 | goto check; |
49 | 42 | ||
50 | sk->out_phase = sk->out_phase_peeked; | 43 | sk->out_phase = sk->out_phase_peeked; |
51 | urb->iso_frame_desc[pack].offset = urb->transfer_buffer_length; | 44 | urb->iso_frame_desc[pack].offset = lb; |
52 | urb->iso_frame_desc[pack].length = l; | 45 | urb->iso_frame_desc[pack].length = l; |
53 | urb->transfer_buffer_length += l; | 46 | lb += l; |
54 | } | 47 | } |
55 | snd_printdd(KERN_DEBUG "%i\n", urb->transfer_buffer_length); | 48 | snd_printdd(KERN_DEBUG "%i\n", lb); |
56 | 49 | ||
57 | check: | 50 | check: |
58 | urb->number_of_packets = pack; | 51 | urb->number_of_packets = pack; |
59 | s->idle_outsize += urb->transfer_buffer_length - s->period_size; | 52 | urb->transfer_buffer_length = lb; |
53 | s->idle_outsize += lb - s->period_size; | ||
60 | snd_printdd(KERN_DEBUG "idle=%i ul=%i ps=%i\n", s->idle_outsize, | 54 | snd_printdd(KERN_DEBUG "idle=%i ul=%i ps=%i\n", s->idle_outsize, |
61 | urb->transfer_buffer_length, s->period_size); | 55 | lb, s->period_size); |
62 | } | 56 | } |
63 | 57 | ||
64 | static void init_pipe_urbs(struct usb_stream_kernel *sk, unsigned use_packsize, | 58 | static void init_pipe_urbs(struct usb_stream_kernel *sk, unsigned use_packsize, |
@@ -282,21 +276,20 @@ static int usb_stream_prepare_playback(struct usb_stream_kernel *sk, | |||
282 | struct usb_stream *s = sk->s; | 276 | struct usb_stream *s = sk->s; |
283 | struct urb *io; | 277 | struct urb *io; |
284 | struct usb_iso_packet_descriptor *id, *od; | 278 | struct usb_iso_packet_descriptor *id, *od; |
285 | int p, l = 0; | 279 | int p = 0, lb = 0, l = 0; |
286 | 280 | ||
287 | io = sk->idle_outurb; | 281 | io = sk->idle_outurb; |
288 | od = io->iso_frame_desc; | 282 | od = io->iso_frame_desc; |
289 | io->transfer_buffer_length = 0; | ||
290 | 283 | ||
291 | for (p = 0; s->sync_packet < 0; ++p, ++s->sync_packet) { | 284 | for (; s->sync_packet < 0; ++p, ++s->sync_packet) { |
292 | struct urb *ii = sk->completed_inurb; | 285 | struct urb *ii = sk->completed_inurb; |
293 | id = ii->iso_frame_desc + | 286 | id = ii->iso_frame_desc + |
294 | ii->number_of_packets + s->sync_packet; | 287 | ii->number_of_packets + s->sync_packet; |
295 | l = id->actual_length; | 288 | l = id->actual_length; |
296 | 289 | ||
297 | od[p].length = l; | 290 | od[p].length = l; |
298 | od[p].offset = io->transfer_buffer_length; | 291 | od[p].offset = lb; |
299 | io->transfer_buffer_length += l; | 292 | lb += l; |
300 | } | 293 | } |
301 | 294 | ||
302 | for (; | 295 | for (; |
@@ -304,38 +297,38 @@ static int usb_stream_prepare_playback(struct usb_stream_kernel *sk, | |||
304 | ++p, ++s->sync_packet) { | 297 | ++p, ++s->sync_packet) { |
305 | l = inurb->iso_frame_desc[s->sync_packet].actual_length; | 298 | l = inurb->iso_frame_desc[s->sync_packet].actual_length; |
306 | 299 | ||
307 | if (s->idle_outsize + io->transfer_buffer_length + l > | 300 | if (s->idle_outsize + lb + l > s->period_size) |
308 | s->period_size) | ||
309 | goto check_ok; | 301 | goto check_ok; |
310 | 302 | ||
311 | od[p].length = l; | 303 | od[p].length = l; |
312 | od[p].offset = io->transfer_buffer_length; | 304 | od[p].offset = lb; |
313 | io->transfer_buffer_length += l; | 305 | lb += l; |
314 | } | 306 | } |
315 | 307 | ||
316 | check_ok: | 308 | check_ok: |
317 | s->sync_packet -= inurb->number_of_packets; | 309 | s->sync_packet -= inurb->number_of_packets; |
318 | if (s->sync_packet < -2 || s->sync_packet > 0) { | 310 | if (unlikely(s->sync_packet < -2 || s->sync_packet > 0)) { |
319 | snd_printk(KERN_WARNING "invalid sync_packet = %i;" | 311 | snd_printk(KERN_WARNING "invalid sync_packet = %i;" |
320 | " p=%i nop=%i %i %x %x %x > %x\n", | 312 | " p=%i nop=%i %i %x %x %x > %x\n", |
321 | s->sync_packet, p, inurb->number_of_packets, | 313 | s->sync_packet, p, inurb->number_of_packets, |
322 | s->idle_outsize + io->transfer_buffer_length + l, | 314 | s->idle_outsize + lb + l, |
323 | s->idle_outsize, io->transfer_buffer_length, l, | 315 | s->idle_outsize, lb, l, |
324 | s->period_size); | 316 | s->period_size); |
325 | return -1; | 317 | return -1; |
326 | } | 318 | } |
327 | if (io->transfer_buffer_length % s->cfg.frame_size) { | 319 | if (unlikely(lb % s->cfg.frame_size)) { |
328 | snd_printk(KERN_WARNING"invalid outsize = %i\n", | 320 | snd_printk(KERN_WARNING"invalid outsize = %i\n", |
329 | io->transfer_buffer_length); | 321 | lb); |
330 | return -1; | 322 | return -1; |
331 | } | 323 | } |
332 | s->idle_outsize += io->transfer_buffer_length - s->period_size; | 324 | s->idle_outsize += lb - s->period_size; |
333 | io->number_of_packets = p; | 325 | io->number_of_packets = p; |
334 | if (s->idle_outsize > 0) { | 326 | io->transfer_buffer_length = lb; |
335 | snd_printk(KERN_WARNING "idle=%i\n", s->idle_outsize); | 327 | if (s->idle_outsize <= 0) |
336 | return -1; | 328 | return 0; |
337 | } | 329 | |
338 | return 0; | 330 | snd_printk(KERN_WARNING "idle=%i\n", s->idle_outsize); |
331 | return -1; | ||
339 | } | 332 | } |
340 | 333 | ||
341 | static void prepare_inurb(int number_of_packets, struct urb *iu) | 334 | static void prepare_inurb(int number_of_packets, struct urb *iu) |