set speaker pinmode