I want to use XS1_PORT_1J as mute signal.
1. in file audiohw.xc i wrote:
Code: Select all
on tile[0] : out port MUTE_PIN = XS1_PORT_1J;
Compiling audiohw.xc
../src/extensions/audiohw.xc:11: error: `tile' undeclared here (not in a function)
../src/extensions/audiohw.xc:11: error: 'on' expression not of type tileref
Then I chage it to:
Code: Select all
//on tile[0] :
out port MUTE_PIN = XS1_PORT_1J;
Is it OK ?
2. in file audiohw.xc:
in function AudioHwInit() I make MUTE_PIN=1;
in function AudioHwConfig() I also make MUTE_PIN=1 (then set another pins according to samFreq, samRes ans dsdMode).
in file audiostream.xc:
in function UserAudioStreamStop() I make MUTE_PIN=1;
in function UserAudioStreamStart() I make MUTE_PIN=0;
So, only when the stream is start I clear the Mute signal.
Everything works fine in PCM, but in DSD - mute signal is still presents.
Is UserAudioStreamStart does not called in case of DSD ?
Where is better to clear the mute for DSD?
Thank you.