There are two Model for Mazda, one is for Mazda before 2011, the other is for Mazda after 2011.
Connector for Mazda before 2011:
Radio for Mazda before 2011:
NOTE for 2004 Mazda 6 or Mazda 2: The factory headunit requires a small modification to the circuit board (the electronic component – L716 needs jointing) in order to enable use of the external CD changer port.
Connector for Mazda after 2011:
Radio for Mazda after 2011: