If the selector lever will not move from P using the proper shift procedure, continue to hold down the brake pedal.

Take the vehicle to an Authorized Mazda Dealer to have the system checked.
Shift-Lock System
Manual Shift ModeM Position Switch Inspection [FS5 A EL]
1. Perform the following procedures.
a. Remove the battery cover..
b. Disconnect the negative battery cable.
c. Remove the console..
d. Disconnect the selector lever component connector.
2. Inspect the continuity between the selector lever component terminals A and
H.
If ...
Camshaft Position (CMP) Sensor Removal/Installation [Mzr 2.0, Mzr 2.5]
CAUTION:
When replacing the CMP sensor, make sure there is no foreign material on
it such as metal shavings. If it is installed with foreign material, the sensor
output signal will malfunction resulting from fluctuation in magnetic flux and
cause a deterioration in engine control.
...
Volume/Display/Sound Controls
Volume adjustment
Turn the commander switch volume dial.
The volume switch on the steering switch
can also be pressed.
Display setting
Select the icon on the home
screen to
display the Settings screen.
Select the tab to select the item
you
would like to change.
Display OFF/Cloc ...