diff options
Diffstat (limited to 'drivers/media/IR/mceusb.c')
-rw-r--r-- | drivers/media/IR/mceusb.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/media/IR/mceusb.c b/drivers/media/IR/mceusb.c index eb965613259b..3a968f082e65 100644 --- a/drivers/media/IR/mceusb.c +++ b/drivers/media/IR/mceusb.c | |||
@@ -156,7 +156,7 @@ struct mceusb_model { | |||
156 | u32 mce_gen1:1; | 156 | u32 mce_gen1:1; |
157 | u32 mce_gen2:1; | 157 | u32 mce_gen2:1; |
158 | u32 mce_gen3:1; | 158 | u32 mce_gen3:1; |
159 | u32 tx_mask_inverted:1; | 159 | u32 tx_mask_normal:1; |
160 | u32 is_polaris:1; | 160 | u32 is_polaris:1; |
161 | u32 no_tx:1; | 161 | u32 no_tx:1; |
162 | 162 | ||
@@ -167,18 +167,18 @@ struct mceusb_model { | |||
167 | static const struct mceusb_model mceusb_model[] = { | 167 | static const struct mceusb_model mceusb_model[] = { |
168 | [MCE_GEN1] = { | 168 | [MCE_GEN1] = { |
169 | .mce_gen1 = 1, | 169 | .mce_gen1 = 1, |
170 | .tx_mask_inverted = 1, | 170 | .tx_mask_normal = 1, |
171 | }, | 171 | }, |
172 | [MCE_GEN2] = { | 172 | [MCE_GEN2] = { |
173 | .mce_gen2 = 1, | 173 | .mce_gen2 = 1, |
174 | }, | 174 | }, |
175 | [MCE_GEN2_TX_INV] = { | 175 | [MCE_GEN2_TX_INV] = { |
176 | .mce_gen2 = 1, | 176 | .mce_gen2 = 1, |
177 | .tx_mask_inverted = 1, | 177 | .tx_mask_normal = 1, |
178 | }, | 178 | }, |
179 | [MCE_GEN3] = { | 179 | [MCE_GEN3] = { |
180 | .mce_gen3 = 1, | 180 | .mce_gen3 = 1, |
181 | .tx_mask_inverted = 1, | 181 | .tx_mask_normal = 1, |
182 | }, | 182 | }, |
183 | [POLARIS_EVK] = { | 183 | [POLARIS_EVK] = { |
184 | .is_polaris = 1, | 184 | .is_polaris = 1, |
@@ -350,7 +350,7 @@ struct mceusb_dev { | |||
350 | 350 | ||
351 | struct { | 351 | struct { |
352 | u32 connected:1; | 352 | u32 connected:1; |
353 | u32 tx_mask_inverted:1; | 353 | u32 tx_mask_normal:1; |
354 | u32 microsoft_gen1:1; | 354 | u32 microsoft_gen1:1; |
355 | u32 no_tx:1; | 355 | u32 no_tx:1; |
356 | } flags; | 356 | } flags; |
@@ -753,11 +753,11 @@ static int mceusb_set_tx_mask(void *priv, u32 mask) | |||
753 | { | 753 | { |
754 | struct mceusb_dev *ir = priv; | 754 | struct mceusb_dev *ir = priv; |
755 | 755 | ||
756 | if (ir->flags.tx_mask_inverted) | 756 | if (ir->flags.tx_mask_normal) |
757 | ir->tx_mask = mask; | ||
758 | else | ||
757 | ir->tx_mask = (mask != MCE_DEFAULT_TX_MASK ? | 759 | ir->tx_mask = (mask != MCE_DEFAULT_TX_MASK ? |
758 | mask ^ MCE_DEFAULT_TX_MASK : mask) << 1; | 760 | mask ^ MCE_DEFAULT_TX_MASK : mask) << 1; |
759 | else | ||
760 | ir->tx_mask = mask; | ||
761 | 761 | ||
762 | return 0; | 762 | return 0; |
763 | } | 763 | } |
@@ -1117,7 +1117,7 @@ static int __devinit mceusb_dev_probe(struct usb_interface *intf, | |||
1117 | enum mceusb_model_type model = id->driver_info; | 1117 | enum mceusb_model_type model = id->driver_info; |
1118 | bool is_gen3; | 1118 | bool is_gen3; |
1119 | bool is_microsoft_gen1; | 1119 | bool is_microsoft_gen1; |
1120 | bool tx_mask_inverted; | 1120 | bool tx_mask_normal; |
1121 | bool is_polaris; | 1121 | bool is_polaris; |
1122 | 1122 | ||
1123 | dev_dbg(&intf->dev, "%s called\n", __func__); | 1123 | dev_dbg(&intf->dev, "%s called\n", __func__); |
@@ -1126,7 +1126,7 @@ static int __devinit mceusb_dev_probe(struct usb_interface *intf, | |||
1126 | 1126 | ||
1127 | is_gen3 = mceusb_model[model].mce_gen3; | 1127 | is_gen3 = mceusb_model[model].mce_gen3; |
1128 | is_microsoft_gen1 = mceusb_model[model].mce_gen1; | 1128 | is_microsoft_gen1 = mceusb_model[model].mce_gen1; |
1129 | tx_mask_inverted = mceusb_model[model].tx_mask_inverted; | 1129 | tx_mask_normal = mceusb_model[model].tx_mask_normal; |
1130 | is_polaris = mceusb_model[model].is_polaris; | 1130 | is_polaris = mceusb_model[model].is_polaris; |
1131 | 1131 | ||
1132 | if (is_polaris) { | 1132 | if (is_polaris) { |
@@ -1193,7 +1193,7 @@ static int __devinit mceusb_dev_probe(struct usb_interface *intf, | |||
1193 | ir->dev = &intf->dev; | 1193 | ir->dev = &intf->dev; |
1194 | ir->len_in = maxp; | 1194 | ir->len_in = maxp; |
1195 | ir->flags.microsoft_gen1 = is_microsoft_gen1; | 1195 | ir->flags.microsoft_gen1 = is_microsoft_gen1; |
1196 | ir->flags.tx_mask_inverted = tx_mask_inverted; | 1196 | ir->flags.tx_mask_normal = tx_mask_normal; |
1197 | ir->flags.no_tx = mceusb_model[model].no_tx; | 1197 | ir->flags.no_tx = mceusb_model[model].no_tx; |
1198 | ir->model = model; | 1198 | ir->model = model; |
1199 | 1199 | ||