1. Remove the sunroof switch.
2. Inspect for continuity between the sunroof switch terminals using an ohmmeter.


Sunroof switch removal/installationMazda 6 Service Manual: Dtc clearing procedure
1. Start the on-board diagnostic test mode.
2. First press the POWER button, then simultaneously press AUDIO CONT button
for 2 seconds or more.
Caution
Before clearing the DTCs, be sure to enter all of them displayed
in the on-board diagnostic test mode in the Audio Repair Order Form. ...
Mazda 6 Service Manual: Bluetooth® Audio
Applicable Bluetooth® specification (Recommended)
Ver. 1.1/1.2/2.0 EDR/2.1
EDR/3.0 (conformity)
Response profile
A2DP (Advanced Audio Distribution Profile) Ver. 1.0/1.2
AVRCP (Audio/Video Remote Control Profile) Ver. 1.0/1.3/1.4
A2DP is a profile which transmits only audio to the Blue ...