It is a different story in the UK. If the goods become faulty within a reasonable period of time (usually one year from the date of purchase*) the vendor has a legal duty to repair the goods, or get it repaired, or replace the goods with the same make/model or of equivalent specification (or better).
Repairs should be completed within 28 days of the goods being put in the hands of the vendor.
If a repair cannot be carried out on the item, then a replacement should be given. If no replacement can be given then the vendor should refund the purchase price.
*The warranty period on goods purchased in the UK is normally one year, but can be less considering the price paid for the goods. For instance, if you purchased a pair of earphones for 50p, and they last three months before failing, then that can be deemed to have been value for money. On the other hand, if you buy an item such as a DVD burner, Portable CD player or even a joystick, it should be guaranteed for one full year.
This is basically the trading law within the UK.